Skip to content
Advertisement

How to define specific fixed position of background image (or image) and then attach element on defined place?

I have an issue with one thing.
I have a map of world and I want to add functionality when a user clicks on one of the list elements (you can see 3 lists with different places on the image, for example, Paris Air Show) it would show me on the map. As you can see on image example
Is it possible to do? It should work on different devices, but I have no idea how to create that. Example

Advertisement

Answer

Thanks a lot for your help.
Here is a good solution, which works for me.
So I’ve created a map with areas and on those areas, I put coordinates of places and this map is attached to the image. Then I calculate a place using map.getBoundingClientRect()

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement