I'm using the following Wordpress and plugins combo.
- Wordpress 2.9.2
- Geo Mashup 1.3.3
- Geo Mashup Custom 1.0
What I want to achieve is when the user clicks on a marker it gets redirected to the blog post associated to it.
I added the following code in my custom.js.
GeoMashup.addAction('loadedMap', function( properties, marker ) {
GEvent.addListener(marker, "click", function() {
parent.location.href = properties.home_url + "?p=" + properties.open_object_id ;
});
});
With that code the map loads and redirects to the latest marker created on the map. I'm pretty sure I'm close to the final solution.
I guess i'm using the wrong action call. But I haven't been able to find what i'm looking for.
Any suggestions?