Skip to content

Version 0.6.0

Compare
Choose a tag to compare
@neveldo neveldo released this 29 Sep 12:16
· 545 commits to master since this release

ChangeLog

Improvements

  • Added missing Michigan state on the USA map
  • New map of France with equirectangular projection for better cities location
  • Upgraded to version 2.1.2 of Raphael.js
  • Truely hide the elements when user clicks on the legend and hideElems.OnClick.opacity is set to 0
  • Squares and circles in the legend take account the scale of the map in order to draw them at the same scale
  • Newattribute 'data-id' added to plots and areas's nodes
  • New option 'display' that allows to display or hide a specific element from the legend
  • Improved event handling (with the new option 'eventHandlers'). You can now attach handlers to all events from jQuery.
  • Improved 'update' event that now allows to add or delete plot from the map, update text attributes (content, position, ...) and the contents of the tooltips
  • New option text.margin that allows to customize the margin between the plot and its associated label
  • Miscellaneous bug fixes

Incompatible changes with 0.5.1

  • Event handlers for plots and areas (previously set by options 'onclick', 'onmouseover' and 'onmouseout') now have to be defined with the option 'eventHandlers'. It contains the list of handlers (function(e, id, mapElem, textElem) { ...}) that will be called when events occur on elements. The key must match the event name (example : 'click', 'dblclick', ...). See documentation and examples for more information.
  • Parameters for the update event are now the followings : updatedOptions, newPlots, deletedPlots, and opt. Example : $(".container").trigger('update', [updatedOptions, newPlots, deletedPlots, opt]);. See documentation and examples for more information.
  • The options for the texts (previously text, textAttrs, textHoverAttrs and textPosition) are now the followings : text.content, text.attrs, text.attrsHover and text.position. See documentation and examples for more information.