Moving content on the map basing on the current view


I have a map and want it to be more interactive. I put some clickable pins on it but I want them to show on the same place on the screen every time I move the map in any direction after clicking a button “Search in the area”. I was hoping it would work similar to google maps or AirBnb.

Any ideas on how to do it? I was trying to use variables but I’m not sure if it’s possible to get the X. Y coordinates of the current place where the map is.

Link to the prototype:

Link to the file: Map_Test_June.rp (4.2 MB)

You can capture the amount by which the panel is scrolled x and y and then use those to calculate where to move the markers to.

You might be better off wrapping the map and markers in a dynamic panel and drag the map around instead of scrolling. It might make the coordinate math a bit easier.