Releases: floledermann/mapmap.js
Releases · floledermann/mapmap.js
v0.2.8
New
- New method
Map.symbolizeAttribute()to assign any SVG attributes from data. - New method
Map.zOrder()to determine ordering of SVG elements - Symbol depictions in HTML legend are SVG based now, for flexibility and consistency.
- New attributes
reverse(boolean) andorder(function) in HTML legend options to control ordering of classes - Accessor functions for map panes (SVG (g)roup elements):
Map.getGeometryPane(),Map.getOverlayPane(),Map.getFixedPane(). - Accessor function for path generator (d3.geo.path):
Map.getPathGenerator()
Changes
Map.choropleth()is now deprecated - useMap.symbolize(mapmap.symbolize.choropleth(…))insteadMap.hoverInfo()shows up only if there is text to be shownMap.projection()now returns the projection if called without parameters- New option for
Map.geomtry():setExtent(default:true) to determine whether map extent should be set to geometries' extent on load Map.geometry()now also accepts single GeoJSON objects
Fixes
- Fix hoverInfo to hide properly on fast mouse movements
v0.2.7
- Internal changes to legend generation code to make it more versatile, improve labeling of ranges (#11, #22)
- Greatly improved handling of missing, empty or invalid values (#23)
- Optional generation of histogram in HTML legend
- Remove dead code for SVG legend, should be recreated in the future
- New metadata fields
valueUnit,undefinedLabelandundefinedColor(See documentation). - Improved positioning of hoverInfo (tooltips) when scrolled, fixed obscure Firefox bug for positioning them (#27).
- Warn if mapReduce transformation yielded no results
- Provide
activateanddeactivatefunctions for zoom behavior to style active element - Fix bug causing zoom behavior to fail if no hoverInfo was active (#18)
- Fix usage of
centeroption for zoom behavior - Output warning message if Promise is missing (e.g. IE) and needs to be polyfilled
v0.2.6
- Fix bug in
.hoverInfo()introduced in 0.2.5