Skip to content Skip to sidebar Skip to footer

Jvectormap Markers

I'm using jvectormap to show the locations of alumni related to the business I work with. Is there a solution to add links to markers? By that I mean for each individual marker, I

Solution 1:

You can do this

onMarkerSelected: function(){
   // do what you need to do here.
}

Example is here: http://jvectormap.com/examples/regions-selection/

In your marker add the URL:

"US": {latLng: [38.90, -98.45], name: 'United States of America', weburl : "/blah/foo"}

then when you have your function:

onMarkerClick: function(events, index) {
    $(location).attr('href', markers[index].weburl);
}

markers being your array of markers.

Post a Comment for "Jvectormap Markers"