Questions tagged [mapael]

jQuery Mapael is a jQuery plugin that allows you to display dynamic vector maps

jQuery Mapael is a jQuery plugin, based on raphael.js, that allows you to display dynamic vector maps.


Resources :


Related tags :

31 questions
0
votes
1 answer

mapael min/max values for fill color

I have an example using mapael where I set the fill color based on values from a table of state data. when the min/max are between 6 and 8 it works and when the values are between 400 and 500 it works but when they are between 5000 and 6000 all…
0
votes
1 answer

Jquery Mapael: How can I use HTML table data to replace this hard coded example?

Here is the hard coded code that works (only 2 states): var myAreas = []; myAreas = { "VA": { value: "6.3", tooltip: { content: "Virginia freq : 7.2" } }, "NC": { …
0
votes
1 answer

jQuery mapael dynamic plots

I searched the site but did not find'm looking for. I am taking the data via google analytics. I'm trying to create a dynamic plots. Where am I doing wrong? Thank you very much for the helpers. The coordinates of the json data are correct. The code…
0
votes
1 answer

Jquery-datatable script doesnt work after implemtation of Mapael Map

I’m trying to implement the following template for a world map : https://rawgit.com/neveldo/jQuery-Mapael/2.2.0/examples/basic/legend_plotted_cities_areas.html into a existing template with a jQuery datatables. But I've only managed to load one of…
Exchanger
  • 1
  • 3
0
votes
1 answer

Mapael size/resize issue in IE8

[Edit, found the issue...] (I know, why IE8, and jquery 1.12.4...I have to support it for a while yet) I want to display a US map at 400px wide with a few points on it. Using the latest Mapael (2.0.0) examples I modified the code below from the…
behaines
  • 21
  • 2
0
votes
1 answer

Rafael: Mapael: Update trigger doesn't work, and no errors are given

Based on this minimal example of Mapael (part of the relevant code is down here): $('#refresh').on('click', function() { // Update some plots and areas attributes ... var updatedOptions = {'areas' : {}, 'plots' : {}}; //…
The Quantum Physicist
  • 24,987
  • 19
  • 103
  • 189
0
votes
1 answer

mapael defaultArea tooltip current Area Name

how can i set up tooltip on defaultArea, with the name of the area. I would like to show the name of the current country for the area where the mouse is over. , defaultArea : { attrs : { fill: grey …
0
votes
1 answer

Accessing SVG data elements in jQuery

I am working with Mapael, a Raphael extension in order to create an interactive map of France. I would like fire off onClick events once the SVG paths are selected. I have been able to make this work, however I feel that I would have to write a lot…
alexc
  • 1,250
  • 2
  • 17
  • 44
0
votes
0 answers

Jquery Mapael : How to dynamically construct the list of areas?

currently, when you initialize the areas, you have to write something like : areas : { 'id1' : { ... },} My problem is that I would like to initialize it with a variable, but if I write : var myareas={} var myareas['id1']={...} areas:…
bhericher
  • 667
  • 4
  • 13
0
votes
1 answer

Mapael + Raphael, can't be initialized : "cannot read property of undefined"

I'm trying to set up a map using Rapheal (v2.1.4) and Mapael (v1.1.0) plugins but I get this error : Uncaught TypeError: Cannot read property 'x' of undefined I don't understand where my error is DOM:
Steph D
  • 1
  • 4
0
votes
1 answer

open modal inside Jquery

I have inherited a project and it needs some amendments but i can't work out everything that has been done an why. Basically it is a map that is split into regions. When you mouse over a region a the region changes colour and a tooltip pops up. This…
0
votes
1 answer

Mapael js disable zoom

So I am trying to disable the zoom option in my Map when a user clicks on a map region, using the event handlers it works well for the attributtes like color and so, but not working to disable the zoom. /* ... */ , defaultArea: { attrs : { …
user1765661
  • 585
  • 1
  • 7
  • 21
0
votes
1 answer

Jquery Mousewheel issue

I am using a svg map, where I want to be able to zoom in/out and pan around. Using the mousewheel plugin but getting an error: Error: Invalid value for attribute viewBox="NaN NaN NaN NaN" So the zoom is not working correctly, please have a…
user1765661
  • 585
  • 1
  • 7
  • 21
0
votes
1 answer

Raphael/Mapael slow on sorting plots

I'm using Raphael and Mapael to create a US map with points of different schools across the nation. Right now the functionality is working great if I only have a handful of points, however after I add all of my points (around 60) it slows way down…
Kristen Vogler
  • 357
  • 2
  • 14
0
votes
1 answer

JavaScript Object Within Another Object

I am using a jQuery plugin called Mapael and am attempting to do something rather simple. The "plots" object at the bottom of the function is going to add plot points to a map. The plot points are also objects. My goal is to dynamically generate…