Skip to content

Latest commit

 

History

History
151 lines (132 loc) · 14.6 KB

CHANGELOG.md

File metadata and controls

151 lines (132 loc) · 14.6 KB

ChangeLog

Change log for jQuery-Mapael

2.1.0 - March 13, 2017

  • Feature : Allow to add custom CSS class to areas, plotted points and links (neveldo)
  • Bugfix : Fix load for CommonJS (neveldo)
  • Bugfix : Restaure 'mousewheel' event propagation (neveldo)
  • Bugfix : Fix elements hidding through clicks on legend items when some values are straddling two different slices in hideMapElems() function (neveldo)
  • Bugfix : Prevent to move the clicked element instead of dragging the map (behaviour seen with Firefox) (neveldo)
  • Bugfix : Fix destroy() in order to empty map and legends containers instead of the main container (neveldo)
  • Feature : Add toFront option available on area/plot/link options when triggering (neveldo)
  • Feature : Add redrawOnResize option (neveldo)
  • Improve updateElem() performance (neveldo)
  • Bugfix : Fix namespaces for events bindings (neveldo)
  • Feature : Added plotsOn option to add points on areas' centers (Licht-T)
  • Bugfix : Fix Western Sahara's code in world map (dragoscirjan)

2.0.0 - June 12, 2016

  • Feature : Update jQuery to v3.0.0 and Raphael.js to v2.2.0 (neveldo)
  • Feature : Add tooltip.offset.left and tooltip.offset.top options to set a custom offset between the cursor and the tooltip (neveldo)
  • Bugfix : Prevent from updating unneeded areas, plots and links in the 'update' event (neveldo)
  • Feature : Allow transformations on SVG plotted points (neveldo)
  • Bugfix : Fix updateElem() function for SVG elements (bbox object undefined) (neveldo)
  • Feature : Add new minLevel option (billyrennekamp)
  • Bugfix : Fix the flicker on mouseover between text and area (billyrennekamp)
  • Feature : margin option now accept an object in order to fine tune x and y offset of text position (neveldo)
  • Bugfix : initElem : setHover only if attrsHover set (Indigo744)
  • Feature : Allow zoom trigger with no level set (Indigo744)
  • Feature : Relative zoom for onZoom (Indigo744)
  • Misc : Add Mercator and Miller world map (Indigo744)
  • Feature : Legends are redrawn on resize (Indigo744)
  • Feature : Expand zoom buttons functionality (Indigo744)
  • Feature : Add checkForRaphaelBBoxBug() function in order to check for a known bug from Raphael.js when creating a paper in an hidden container (Indigo744)
  • Feature : Add 'showElementsInRange' event to filter the elements to show on the map depending on values intervals (Indigo744)
  • Refactoring : Move default options inside prototype to allow overriding (Indigo744)
  • Refactoring : Refactored internal structure of the plugin (Indigo744)
  • Misc : Add many new code examples (Indigo744)
  • Misc : Add unit tests (Indigo744)
  • Refactoring : Provide new update event signature (Indigo744)
  • Bugfix : Fix leaking when removing plots/links (Indigo744)
  • Feature : tooltip.content accept function (Indigo744)
  • Bugfix : handleClickOnLegendElem take into account other legends (Indigo744)
  • Bugfix : Set default size when no size is set on slices (Indigo744)
  • Bugfix : Fix target for zoom related events 'mousewheel', 'touchstart' and 'touchmove' (neveldo)
  • Feature : Delete all plots/links in 'update' event (Indigo744)
  • Refactoring : Set legend slice max value inclusive (Indigo744)
  • Bugfix : hide/show elements only on current map (Indigo744)
  • Feature : Allow to update legend in the update event (Indigo744)
  • Feature : Add AMD and CommonJS compatibility to mapael and mapel maps (neveldo)
  • Feature : Add animDuration option to 'zoom' event and set it to 0 by default for initial zoom (neveldo)
  • Refactoring : Remove map.tooltip.target option (neveldo)
  • Feature : Add tooltip.overflow.right and tooltip.overflow.bottom options to allow tooltip overflow from the container (neveldo)
  • Bugfix : Fix raphael.safari() call with laster version of Raphael.js (Indigo744)
  • Bugfix : Fix legend display when no title is defined (Indigo744)
  • Refactoring : Tooltip position is computed as absolute instead of Fix (Indigo744)
  • Bugfix : Fix IE8 js error on map update (Indigo744)
  • Feature : Add legend.(area|plot).hideElemsOnClick.animDuration option (Indigo744)
  • Bugfix : Fix current zoomX and zommY values set in container’ data. (neveldo)

1.1.0 - August 31, 2015

Minor version release.

New features

  • Add support for animated zoom through the new option map.zoom.animDuration (200 by default, set to 0 in order to disable it). The option map.zoom.animEasing allows to set the easing function to animate the zoom action
  • Panning is now allowed through touch event (it can be disabled through the option map.zoom.touch)
  • Zooming is now allowed through pinch touch event (it can also be disabled through the option map.zoom.touch)
  • In addition to 'circle', 'square' and 'image' plotted point types, the new 'svg' type allows to add SVG paths on the map
  • Links can now be updated through the 'update' event : they can be edited or deleted and new links can be Add to the map
  • New legend.exclusive option allows the user to activate only one item from the legend at a time
  • New ‘clicked’ option in order to initialize the legend item in the 'clicked' state on the map load
  • Add hook 'beforeInit' hook that is called right after the initialization of the areas
  • New map.tooltip.target option allows to specify a container where to append the tooltip div
  • The new option 'cssClass' allows to set additional CSS class(es) the tooltip for a specific area or a plotted point
  • Add events afterZoom and ‘afterPanning’

Bugfixes & other

  • Upgrade Raphael.js dependency to v2.1.4
  • Fix horizontal legend display with squares
  • Fix tooltip position

1.0.1 - May 17, 2015

Bugfix version release.

  • Fix undeclared variable in drawLegend function. IE >10 wasn't able to display the map legend.

1.0.0 - January 4, 2015

Major version release with breaking change.

New features

  • You can now add curved links between two cities, between two points defined by a latitude and a longitude, or between two points defined by a x and y coordinates
  • jQuery Mapael now handles multiple criteria legends. Each point or each area can be associated with one or several values
  • You can use non-vector images in order to plot locations on your map.Moreover, non-vector images can be used in the legends
  • The legend can be displayed horizontally or vertically
  • The jQuery mousewheel is now fully integrated with jQuery mapael and zoom on mousewheel features have been improved. Zoom is now focused on the cursor position
  • The target of each link on the map can be specified
  • You can define each slice of a legend with a single value or with a minimum and a maximum values
  • You can display a map with an initial zoom level that is focused on a particular location
  • Dependencies are now included through Bower packages manager.
  • Mapael allows users to set specific attributes for the elements in the legend independently from the attributes for the matching elements on the map
  • A new tutorial that explain how to create a map for jQuery Mapael is now available. It comes with some useful online tools.

Breaking changes

Here are the changes that are not compatible with the 0.7.1:

  • If you have overloaded $.fn.mapael.defaultOptions, note that the default Mapael options (previously stored in $.fn.mapael.defaultOptions) are now stored in two different variables : $.fn.mapael.defaultOptions and $.fn.mapael.legendDefaultOptions . The last one is specific to legends options.
  • Legends 'display' option is now set to true by default instead of false

0.7.1 - January 23, 2014

Bugfix version release:

  • Fix legend colorisation with zero values in slices definition
  • Don't animate areas and plots in the legend on mouse hover
  • afterUpdate call : Fix undefined opt

0.7.0 - November 17, 2013

Improvements

  • Improve zooming feature. You can now trigger a 'zoom' event on the container (required parameter : level, optional parameters : x, y in order to zoom on a specific area). The current zoom level is now stored as data. Example of use : http://jsfiddle.net/neveldo/RahvT/
  • Add two new hooks in order to allow custom processing on map initialization and map update ('update' event) : afterInit and afterUpdate. Here is an example with the afterInit() hook : http://jsfiddle.net/neveldo/8Ke69/
  • Add labelAttrsHover option for the plots and areas legend that allows to customize the attributes of the labels in the legend on mouse hover.
  • prevent the tooltip to overflow from the container
  • 'update' event' now allows to update attrsHover for plots and area (bugfix)

0.6.0 - September 29, 2013

Improvements

  • Add missing Michigan state on the USA map
  • New map of France with equirectangular projection for better cities location
  • Upgrade 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' Add to plots and areas's nodes
  • New option 'display' that allows to display or hide a specific element from the legend
  • Improve event handling (with the new option 'eventHandlers'). You can now attach handlers to all events from jQuery.
  • Improve '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.

0.5.1 - August 24, 2013

Fourth version

0.4.0 - July 29, 2013

Third version

0.3.0 - July 15, 2013

Second version

0.2.2 - July 2, 2013

First version