New problem with links or popups on GeoJSON
-
Trying to get a map that displays multiple shapefiles to also make a popup for each one with a link in it. I’ve also tried hacking the plugin in a bit to make the shapefile link to another page when a given shape is clicked on, without success.
Working with this chunk to add shapes to the map:
$marker_text = '<h3>' . get_the_title() . '</h3><p><a href=\"' . get_the_permalink() . '\">Check out the neighborhood</a></p>'; echo do_shortcode('[leaflet-geojson src="' . $map_shape_file_url . '" fitbounds=true popup_property="' . $marker_text . '"]');
As far as I can tell from the output it’s as correct as I can get it, and the shapefiles appear on the map, but none does anything when clicked. Wondering if you have any insight…
Thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘New problem with links or popups on GeoJSON’ is closed to new replies.