Normally people want to add multiple markers to a single map. In my case I'm attempting almost the opposite - create two maps from the same content type and using Leaflet assign each a unique marker to each. Try as I might I can't figure out how to do this. Instead, what happens is that both markers are displayed on either map (rather than one per map).
My current setup it like so -
- Has a geofield set to output Lat/ Long coordinates
- Two pages based on the above content type (let's call them Page Map A and Page Map B) each have a unique set of coordinates.
- Individual View block for Page Map A and also for Page Map B. These are set to output the geofield data
(I originally had one View block and I was hoping that splitting them in two would solve the issue. It didn't.)
- In blocks the View for Map A and the View for Map B is set to display only on their respective pages
Both of the Views are ordered by sort date (which might be the source of the problem) and only show 1 item. However, if only one item is set to show then it's always the marker for Page Map B that's displayed. Furthermore, if I increase the display to show 2 or more items then the popup text for both markers will only appear on Page Map B, and there are no popups for Page Map A.