Islandora-Labs / islandora_simple_map

Islandora module that adds a Google map to an object's display if the object's MODS datastream contains cartographic coordinates.
GNU General Public License v3.0
7 stars 7 forks source link

GeoJson breaks collection map markers #60

Open whikloj opened 5 years ago

whikloj commented 5 years ago

If you change the Output to use to pass co-ordinates to maps setting from Co-ordinates (default) to GeoJson and then view a collection map with multiple markers.

The map displays correctly but when you click on a marker you do not see the popup with the title and thumbnail image as well as the link back to the original image.

whikloj commented 5 years ago

This is due to all the new variables we are passing to the map for all the different types of points. It probably would have been better to keep all the points/layers together and pass a "type" parameter with each to decide how to process them.

This line defines multiple objects, which if you are using GeoJson means the site thinks you only have a single one.