wordpress-geo-mashup icon indicating copy to clipboard operation
wordpress-geo-mashup copied to clipboard

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

Open GoogleCodeExporter opened this issue 11 years ago • 3 comments

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 [email protected] on 12 Sep 2013 at 10:21

GoogleCodeExporter avatar Apr 04 '15 17:04 GoogleCodeExporter

Here's a snippet.

That uses the javascript API.

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 [email protected] on 12 Sep 2013 at 6:35

  • Changed title: Add a behavior to visit the first post a location when the marker is clicked/selected
  • Changed state: Accepted
  • Added labels: Type-Enhancement

GoogleCodeExporter avatar Apr 04 '15 17:04 GoogleCodeExporter

Brilliant! It works! Thanks!

Great plugin. Keep up the good work!

Original comment by [email protected] on 15 Sep 2013 at 1:51

GoogleCodeExporter avatar Apr 04 '15 17:04 GoogleCodeExporter

Original comment by [email protected] on 15 Sep 2013 at 1:52

  • Changed title: Add a behavior to visit the first post at a location when the marker is clicked/selected

GoogleCodeExporter avatar Apr 04 '15 17:04 GoogleCodeExporter