MichDe / wordpress-geo-mashup

Automatically exported from code.google.com/p/wordpress-geo-mashup
1 stars 0 forks source link

Add a behavior to visit the first post at a location when the marker is clicked/selected #672

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I created a contextual map to show posts of a certain category on a map. I 
would like the post to open directly when the user clicks on the marker on the 
map. How can I achieve this?

Geo-Mashup : Version 1.6.2
WordPpress version: WordPress 3.5.1

Thanks!

Original issue reported on code.google.com by ru...@rbijker.com on 12 Sep 2013 at 10:21

GoogleCodeExporter commented 9 years ago
Here's a snippet: https://gist.github.com/cyberhobo/5338358

That uses custom javascript: 
https://code.google.com/p/wordpress-geo-mashup/wiki/Documentation#Custom_JavaScr
ipt

I'll make this a feature request for an easier way. The biggest obstacle is how 
to handle multiple posts or other objects at the same location. The snippet 
opens the the first - that's probably good enough for most.

Original comment by dylankk...@gmail.com on 12 Sep 2013 at 6:35

GoogleCodeExporter commented 9 years ago
Brilliant! It works! Thanks!

Great plugin. Keep up the good work!

Original comment by ru...@rbijker.com on 15 Sep 2013 at 1:51

GoogleCodeExporter commented 9 years ago

Original comment by dylankk...@gmail.com on 15 Sep 2013 at 1:52