Questions tagged [jvectormap]

jVectorMap is a jQuery plugin employed to show vector maps and visualize data on HTML pages.

jVectorMap is a jQuery plugin employed to show vector maps and visualize data on HTML pages. It uses SVG in all modern browsers like Firefox 3 or 4, Safari, Chrome, Opera, IE9, while legacy support for older versions of IE from 6 to 8 is provided with VML.

http://jvectormap.com/

425 questions
15
votes
2 answers

javascript, jQuery - check if value exists in array

Is there a better way to check multiple items match a variable in if statement I have 3 if statements and i need to see if a item matches an array/variable named code. There are a lot of items to compare against the code array/variable so i am…
Aaron
  • 525
  • 2
  • 9
  • 22
15
votes
2 answers

How to generate a new map for jvectormap jquery plugin?

I want to know how to create or generate a map for jquery plugin jvectormap http://jvectormap.com/ The project has several maps: http://jvectormap.com/maps/ but I need I map with Australia and new Zeland divided by states. In the documentation in…
pahko
  • 2,580
  • 4
  • 22
  • 25
13
votes
2 answers

Load another jvectormap on region click

I'm trying to load the specific region map onRegionClick. However it seems as though the region is loading after the change is made. Here's my code: function switchMap(code) { $.getScript('maps/'+ code +'.js'); $('#map').vectorMap({map:…
nontoxicjon
  • 143
  • 1
  • 2
  • 9
13
votes
1 answer

jvectormap: How to implement HTML instead of simple string in the markers label/tooltip?

I've just implemented the jQuery plugin jvectormap, for the use of a world map. Everything's working perfectly, except this maybe.. I added a few markers and have been trying to implement HTML to the markers label/tooltip. So instead of just…
James Cazzetta
  • 3,122
  • 6
  • 32
  • 54
11
votes
3 answers

jVectorMap custom zoom buttons

With jVectorMap is it possible to hide zoom buttons and call Zoom In/Out using their API? I've checked the API documentation and couldn't find any methods, causing the map re-zoom.
user1514042
  • 1,899
  • 7
  • 31
  • 57
10
votes
1 answer

D3 DataMaps (or jvectormap): How to put a custom object on map by coords

For example I want to add a custom html object to wold map by gps coords (lat, lng) - like pulsating dot done with css or any other(js?) marker animation