diff --git a/dc.leaflet.js b/dc.leaflet.js index b3d18ef4..809554c2 100644 --- a/dc.leaflet.js +++ b/dc.leaflet.js @@ -72,14 +72,14 @@ dc_leaflet.leafletBase = function(_chart) { if (_defaultCenter && _defaultZoom) { _map.setView(_chart.toLocArray(_defaultCenter), _defaultZoom); } + + _chart.tiles()(_map); + + _chart._postRender(); } else console.warn("WARNING: Leaflet map already rendered."); - _chart.tiles()(_map); - - _chart._postRender(); - return _chart._doRedraw(); }; diff --git a/dc.leaflet.js.map b/dc.leaflet.js.map index fe8169d2..4d244a9e 100644 --- a/dc.leaflet.js.map +++ b/dc.leaflet.js.map @@ -1 +1 @@ -{"version":3,"sources":["src/banner.js","src/core.js","src/leafletBase.js","src/legend.js","src/markerChart.js","src/choroplethChart.js","src/footer.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC;AACxC,CAAC,GAAG,CAAC,MAAM,EAAE;;ACDb,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAClB,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpB,EAAE;;ACFF,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;AAC3C,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,GAAG;AAClD;AACA,IAAI,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG;AACvD;AACA,IAAI,GAAG,CAAC,IAAI,CAAC;AACb;AACA,IAAI,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC;AAC1B,IAAI,GAAG,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AI,CAAC,CAAC;AACZ,QAAQ,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,EAAE;AAC1C,IAAI,CAAC;AACL,CAAC;AACD,IAAI","file":"dc.leaflet.js","sourcesContent":["(function() { function _dc_leaflet(dc) {\n'use strict';\n","var dc_leaflet = {\n version: '0.2.2'\n};\n","dc_leaflet.leafletBase = function(_chart) {\n _chart = dc.marginMixin(dc.baseChart(_chart));\n\n _chart.margins({left:0, top:0, right:0, bottom:0});\n\n var _map;\n\n var _mapOptions=false;\n var _defaultCenter=false;\n var _defaultZoom=false;\n\n var _cachedHandlers = {};\n\n var _createLeaflet = function(root) {\n // append sub-div if not there, to allow client to put stuff (reset link etc.)\n // in main div. might also use relative positioning here, for now assume\n // appending will put in right position\n var child_div = root.selectAll('div.dc-leaflet')\n .data([0]).enter()\n .append('div').attr('class', 'dc-leaflet')\n .style('width', _chart.effectiveWidth() + \"px\")\n .style('height', _chart.effectiveHeight() + \"px\");\n\n return L.map(child_div.node(),_mapOptions);\n };\n\n var _tiles=function(map) {\n L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {\n attribution: '© OpenStreetMap contributors'\n }).addTo(map);\n };\n\n _chart.createLeaflet = function(_) {\n if(!arguments.length) {\n return _createLeaflet;\n }\n _createLeaflet = _;\n return _chart;\n };\n\n _chart._doRender = function() {\n if(! _chart.map()){\n _map = _createLeaflet(_chart.root());\n for(var ev in _cachedHandlers)\n _map.on(ev, _cachedHandlers[ev]);\n\n if (_defaultCenter && _defaultZoom) {\n _map.setView(_chart.toLocArray(_defaultCenter), _defaultZoom);\n }\n }\n else\n console.warn(\"WARNING: Leaflet map already rendered.\");\n\n _chart.tiles()(_map);\n\n _chart._postRender();\n\n return _chart._doRedraw();\n };\n\n _chart._doRedraw = function() {\n return _chart;\n };\n\n _chart._postRender = function() {\n return _chart;\n };\n\n _chart.mapOptions = function(_) {\n if (!arguments.length) {\n return _mapOptions;\n }\n _mapOptions = _;\n return _chart;\n };\n\n _chart.center = function(_) {\n if (!arguments.length) {\n return _defaultCenter;\n }\n _defaultCenter = _;\n return _chart;\n };\n\n _chart.zoom = function(_) {\n if (!arguments.length) {\n return _defaultZoom;\n }\n _defaultZoom = _;\n return _chart;\n };\n\n _chart.tiles = function(_) {\n if (!arguments.length) {\n return _tiles;\n }\n _tiles = _;\n return _chart;\n };\n\n _chart.map = function() {\n return _map;\n };\n\n _chart.toLocArray = function(value) {\n if (typeof value === \"string\") {\n // expects '11.111,1.111'\n value = value.split(\",\");\n }\n // else expects [11.111,1.111]\n return value;\n };\n\n // combine Leaflet events into d3 & dc events\n dc.override(_chart, 'on', function(event, callback) {\n var leaflet_events = ['zoomend', 'moveend'];\n if(leaflet_events.indexOf(event) >= 0) {\n if(_map) {\n _map.on(event, callback);\n }\n else {\n _cachedHandlers[event] = callback;\n }\n return this;\n }\n else return _chart._on(event, callback);\n });\n\n return _chart;\n};\n","//Legend code adapted from http://leafletjs.com/examples/choropleth.html\ndc_leaflet.legend = function() {\n var _parent, _legend = {};\n var _leafletLegend = null;\n var _position = 'bottomleft';\n\n _legend.parent = function (parent) {\n if(!arguments.length)\n return _parent;\n _parent = parent;\n return this;\n };\n\n function _LegendClass() {\n return L.Control.extend({\n options: {position: _position},\n onAdd: function (map) {\n this._div = L.DomUtil.create('div', 'info legend');\n map.on('moveend',this._update,this);\n this._update();\n return this._div;\n },\n _update: function () {\n if (_parent.colorDomain()) { // check because undefined for marker charts\n var minValue = _parent.colorDomain()[0],\n maxValue = _parent.colorDomain()[1],\n palette = _parent.colors().range(),\n colorLength = _parent.colors().range().length,\n delta = (maxValue - minValue)/colorLength,\n i;\n\n // define grades for legend colours\n // based on equation in dc.js colorCalculator (before version based on colorMixin)\n var grades = [];\n grades[0] = Math.round(minValue);\n for (i= 1; i < colorLength; i++) {\n grades[i] = Math.round((0.5 + (i - 1)) * delta + minValue);\n }\n\n var div = L.DomUtil.create('div', 'info legend');\n // loop through our density intervals and generate a label with a colored\n // square for each interval\n this._div.innerHTML = \"\"; //reset so that legend is not plotted multiple times\n for (i = 0; i < grades.length; i++) {\n this._div.innerHTML +=\n ' ' +\n grades[i] + (grades[i + 1] ? '–' + grades[i + 1] + '
' : '+');\n }\n }\n }\n });\n }\n\n _legend.LegendClass = function(LegendClass) {\n if(!arguments.length)\n return _LegendClass;\n _LegendClass = LegendClass;\n return _legend;\n };\n\n _legend.render = function () {\n // unfortunately the dc.js legend has no concept of redraw, it's always render\n if(!_leafletLegend) {\n // fetch the legend class creator, invoke it\n var Legend = _legend.LegendClass()();\n // and constuct that class\n _leafletLegend = new Legend();\n _leafletLegend.addTo(_parent.map());\n }\n\n return _legend.redraw();\n };\n\n _legend.redraw = function () {\n _leafletLegend._update();\n return _legend;\n };\n\n _legend.leafletLegend = function () {\n return _leafletLegend;\n };\n\n _legend.position = function (position) {\n if(!arguments.length) return _position;\n _position = position;\n return _legend;\n };\n\n return _legend;\n};\n","dc_leaflet.markerChart = function(parent, chartGroup) {\n var _chart = dc_leaflet.leafletBase({});\n\n var _renderPopup = true;\n var _cluster = false; // requires leaflet.markerCluster\n var _clusterOptions=false;\n var _rebuildMarkers = false;\n var _brushOn = true;\n var _filterByArea = false;\n\n var _filter;\n var _innerFilter=false;\n var _zooming=false;\n var _layerGroup = false;\n var _markerList = [];\n var _currentGroups=false;\n\n _chart.renderTitle(true);\n\n var _location = function(d) {\n return _chart.keyAccessor()(d);\n };\n\n var _marker = function(d,map) {\n var marker = new L.Marker(_chart.toLocArray(_chart.locationAccessor()(d)),{\n title: _chart.renderTitle() ? _chart.title()(d) : '',\n alt: _chart.renderTitle() ? _chart.title()(d) : '',\n icon: _icon(),\n clickable: _chart.renderPopup() || (_chart.brushOn() && !_filterByArea),\n draggable: false\n });\n return marker;\n };\n\n var _icon = function(d,map) {\n return new L.Icon.Default();\n };\n\n var _popup = function(d,marker) {\n return _chart.title()(d);\n };\n\n _chart._postRender = function() {\n if (_chart.brushOn()) {\n if (_filterByArea) {\n _chart.filterHandler(doFilterByArea);\n }\n\n _chart.map().on('zoomend moveend', zoomFilter, this );\n if (!_filterByArea)\n _chart.map().on('click', zoomFilter, this );\n _chart.map().on('zoomstart', zoomStart, this);\n }\n\n if (_cluster) {\n _layerGroup = new L.MarkerClusterGroup(_clusterOptions?_clusterOptions:null);\n }\n else {\n _layerGroup = new L.LayerGroup();\n }\n _chart.map().addLayer(_layerGroup);\n };\n\n _chart._doRedraw = function() {\n var groups = _chart._computeOrderedGroups(_chart.data()).filter(function (d) {\n return _chart.valueAccessor()(d) !== 0;\n });\n if (_currentGroups && _currentGroups.toString() === groups.toString()) {\n return;\n }\n _currentGroups=groups;\n\n if (_rebuildMarkers) {\n _markerList=[];\n }\n _layerGroup.clearLayers();\n\n var addList=[];\n groups.forEach(function(v,i) {\n var key = _chart.keyAccessor()(v);\n var marker = null;\n if (!_rebuildMarkers && key in _markerList) {\n marker = _markerList[key];\n }\n else {\n marker = createmarker(v,key);\n }\n if (!_chart.cluster()) {\n _layerGroup.addLayer(marker);\n }\n else {\n addList.push(marker);\n }\n });\n\n if (_chart.cluster() && addList.length > 0) {\n _layerGroup.addLayers(addList);\n }\n };\n\n _chart.locationAccessor = function(_) {\n if (!arguments.length) {\n return _location;\n }\n _location= _;\n return _chart;\n };\n\n _chart.marker = function(_) {\n if (!arguments.length) {\n return _marker;\n }\n _marker= _;\n return _chart;\n };\n\n _chart.icon = function(_) {\n if (!arguments.length) {\n return _icon;\n }\n _icon= _;\n return _chart;\n };\n\n _chart.popup = function(_) {\n if (!arguments.length) {\n return _popup;\n }\n _popup= _;\n return _chart;\n };\n\n _chart.renderPopup = function(_) {\n if (!arguments.length) {\n return _renderPopup;\n }\n _renderPopup = _;\n return _chart;\n };\n\n\n _chart.cluster = function(_) {\n if (!arguments.length) {\n return _cluster;\n }\n _cluster = _;\n return _chart;\n };\n\n _chart.clusterOptions = function(_) {\n if (!arguments.length) {\n return _clusterOptions;\n }\n _clusterOptions = _;\n return _chart;\n };\n\n _chart.rebuildMarkers = function(_) {\n if (!arguments.length) {\n return _rebuildMarkers;\n }\n _rebuildMarkers = _;\n return _chart;\n };\n\n _chart.brushOn = function(_) {\n if (!arguments.length) {\n return _brushOn;\n }\n _brushOn = _;\n return _chart;\n };\n\n _chart.filterByArea = function(_) {\n if (!arguments.length) {\n return _filterByArea;\n }\n _filterByArea = _;\n return _chart;\n };\n\n _chart.markerGroup = function() {\n return _layerGroup;\n };\n\n var createmarker = function(v,k) {\n var marker = _marker(v);\n marker.key = k;\n if (_chart.renderPopup()) {\n marker.bindPopup(_chart.popup()(v,marker));\n }\n if (_chart.brushOn() && !_filterByArea) {\n marker.on(\"click\",selectFilter);\n }\n _markerList[k]=marker;\n return marker;\n };\n\n var zoomStart = function(e) {\n _zooming=true;\n };\n\n var zoomFilter = function(e) {\n if (e.type === \"moveend\" && (_zooming || e.hard)) {\n return;\n }\n _zooming=false;\n\n if (_filterByArea) {\n var filter;\n if (_chart.map().getCenter().equals(_chart.center()) && _chart.map().getZoom() === _chart.zoom()) {\n filter = null;\n }\n else {\n filter = _chart.map().getBounds();\n }\n dc.events.trigger(function () {\n _chart.filter(null);\n if (filter) {\n _innerFilter=true;\n _chart.filter(filter);\n _innerFilter=false;\n }\n dc.redrawAll(_chart.chartGroup());\n });\n } else if (_chart.filter() && (e.type === \"click\" ||\n (_markerList.indexOf(_chart.filter()) !== -1 &&\n !_chart.map().getBounds().contains(_markerList[_chart.filter()].getLatLng())))) {\n dc.events.trigger(function () {\n _chart.filter(null);\n if (_renderPopup) {\n _chart.map().closePopup();\n }\n dc.redrawAll(_chart.chartGroup());\n });\n }\n };\n\n var doFilterByArea = function(dimension, filters) {\n _chart.dimension().filter(null);\n if (filters && filters.length>0) {\n _chart.dimension().filterFunction(function(d) {\n if (!(d in _markerList)) {\n return false;\n }\n var locO = _markerList[d].getLatLng();\n return locO && filters[0].contains(locO);\n });\n if (!_innerFilter && _chart.map().getBounds().toString !== filters[0].toString()) {\n _chart.map().fitBounds(filters[0]);\n }\n }\n };\n\n var selectFilter = function(e) {\n if (!e.target) return;\n var filter = e.target.key;\n dc.events.trigger(function () {\n _chart.filter(filter);\n dc.redrawAll(_chart.chartGroup());\n });\n };\n\n return _chart.anchor(parent, chartGroup);\n};\n","dc_leaflet.choroplethChart = function(parent, chartGroup) {\n var _chart = dc.colorChart(dc_leaflet.leafletBase({}));\n\n var _geojsonLayer = false;\n var _dataMap = [];\n\n var _geojson = false;\n var _renderPopup = true;\n var _brushOn = true;\n var _featureOptions = {\n 'fillColor':'black',\n 'color':'gray',\n 'opacity':0.4,\n 'fillOpacity':0.6,\n 'weight':1\n };\n\n var _featureKey = function(feature) {\n return feature.key;\n };\n\n var _featureStyle = function(feature) {\n var options = _chart.featureOptions();\n if (options instanceof Function) {\n options=options(feature);\n }\n options = JSON.parse(JSON.stringify(options));\n var v = _dataMap[_chart.featureKeyAccessor()(feature)];\n if (v && v.d) {\n options.fillColor=_chart.getColor(v.d,v.i);\n if (_chart.filters().indexOf(v.d.key) !== -1) {\n options.opacity=0.8;\n options.fillOpacity=1;\n }\n }\n return options;\n };\n\n var _popup = function(d,feature) {\n return _chart.title()(d);\n };\n\n _chart._postRender = function() {\n _geojsonLayer=L.geoJson(_chart.geojson(),{\n style: _chart.featureStyle(),\n onEachFeature: processFeatures\n });\n _chart.map().addLayer(_geojsonLayer);\n };\n\n dc.override(_chart, '_doRedraw', function() {\n _geojsonLayer.clearLayers();\n _dataMap=[];\n _chart._computeOrderedGroups(_chart.data()).forEach(function (d, i) {\n _dataMap[_chart.keyAccessor()(d)] = {'d':d,'i':i};\n });\n _geojsonLayer.addData(_chart.geojson());\n return _chart.__doRedraw();\n });\n\n _chart.geojson = function(_) {\n if (!arguments.length) {\n return _geojson;\n }\n _geojson = _;\n return _chart;\n };\n\n _chart.featureOptions = function(_) {\n if (!arguments.length) {\n return _featureOptions;\n }\n _featureOptions = _;\n return _chart;\n };\n\n _chart.featureKeyAccessor = function(_) {\n if (!arguments.length) {\n return _featureKey;\n }\n _featureKey= _;\n return _chart;\n };\n\n _chart.featureStyle = function(_) {\n if (!arguments.length) {\n return _featureStyle;\n }\n _featureStyle= _;\n return _chart;\n };\n\n _chart.popup = function(_) {\n if (!arguments.length) {\n return _popup;\n }\n _popup= _;\n return _chart;\n };\n\n _chart.renderPopup = function(_) {\n if (!arguments.length) {\n return _renderPopup;\n }\n _renderPopup = _;\n return _chart;\n };\n\n _chart.brushOn = function(_) {\n if (!arguments.length) {\n return _brushOn;\n }\n _brushOn = _;\n return _chart;\n };\n\n var processFeatures = function (feature, layer) {\n var v = _dataMap[_chart.featureKeyAccessor()(feature)];\n if (v && v.d) {\n layer.key=v.d.key;\n if (_chart.renderPopup())\n layer.bindPopup(_chart.popup()(v.d,feature));\n if (_chart.brushOn())\n layer.on(\"click\",selectFilter);\n }\n };\n\n var selectFilter = function(e) {\n if (!e.target) {\n return;\n }\n var filter = e.target.key;\n dc.events.trigger(function () {\n _chart.filter(filter);\n dc.redrawAll(_chart.chartGroup());\n });\n };\n\n return _chart.anchor(parent, chartGroup);\n};\n","dc_leaflet.d3 = d3;\ndc_leaflet.crossfilter = crossfilter;\ndc_leaflet.dc = dc;\n\nreturn dc_leaflet;\n}\n if (typeof define === 'function' && define.amd) {\n define([\"dc\"], _dc_leaflet);\n } else if (typeof module == \"object\" && module.exports) {\n var _dc = require('dc');\n module.exports = _dc_leaflet(_dc);\n } else {\n this.dc_leaflet = _dc_leaflet(dc);\n }\n}\n)();\n"]} \ No newline at end of file +{"version":3,"sources":["src/banner.js","src/core.js","src/leafletBase.js","src/legend.js","src/markerChart.js","src/choroplethChart.js","src/footer.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC;AACxC,CAAC,GAAG,CAAC,MAAM,EAAE;;ACDb,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAClB,IAAI,OAA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,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AACrD,QAAQ,MAAM,GAAG,EAAE,GAAG,CAAC,WAAW,EAAE;AACpC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;AAC7D,QAAQ,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,GAAG;AAChC,QAAQ,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE;AAC1C,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;AACZ,QAAQ,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,EAAE;AAC1C,IAAI,CAAC;AACL,CAAC;AACD,IAAI","file":"dc.leaflet.js","sourcesContent":["(function() { function _dc_leaflet(dc) {\n'use strict';\n","var dc_leaflet = {\n version: '0.2.2'\n};\n","dc_leaflet.leafletBase = function(_chart) {\n _chart = dc.marginMixin(dc.baseChart(_chart));\n\n _chart.margins({left:0, top:0, right:0, bottom:0});\n\n var _map;\n\n var _mapOptions=false;\n var _defaultCenter=false;\n var _defaultZoom=false;\n\n var _cachedHandlers = {};\n\n var _createLeaflet = function(root) {\n // append sub-div if not there, to allow client to put stuff (reset link etc.)\n // in main div. might also use relative positioning here, for now assume\n // appending will put in right position\n var child_div = root.selectAll('div.dc-leaflet')\n .data([0]).enter()\n .append('div').attr('class', 'dc-leaflet')\n .style('width', _chart.effectiveWidth() + \"px\")\n .style('height', _chart.effectiveHeight() + \"px\");\n\n return L.map(child_div.node(),_mapOptions);\n };\n\n var _tiles=function(map) {\n L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {\n attribution: '© OpenStreetMap contributors'\n }).addTo(map);\n };\n\n _chart.createLeaflet = function(_) {\n if(!arguments.length) {\n return _createLeaflet;\n }\n _createLeaflet = _;\n return _chart;\n };\n\n _chart._doRender = function() {\n if(! _chart.map()){\n _map = _createLeaflet(_chart.root());\n for(var ev in _cachedHandlers)\n _map.on(ev, _cachedHandlers[ev]);\n\n if (_defaultCenter && _defaultZoom) {\n _map.setView(_chart.toLocArray(_defaultCenter), _defaultZoom);\n }\n \n _chart.tiles()(_map);\n \n _chart._postRender();\n }\n else\n console.warn(\"WARNING: Leaflet map already rendered.\");\n\n return _chart._doRedraw();\n };\n\n _chart._doRedraw = function() {\n return _chart;\n };\n\n _chart._postRender = function() {\n return _chart;\n };\n\n _chart.mapOptions = function(_) {\n if (!arguments.length) {\n return _mapOptions;\n }\n _mapOptions = _;\n return _chart;\n };\n\n _chart.center = function(_) {\n if (!arguments.length) {\n return _defaultCenter;\n }\n _defaultCenter = _;\n return _chart;\n };\n\n _chart.zoom = function(_) {\n if (!arguments.length) {\n return _defaultZoom;\n }\n _defaultZoom = _;\n return _chart;\n };\n\n _chart.tiles = function(_) {\n if (!arguments.length) {\n return _tiles;\n }\n _tiles = _;\n return _chart;\n };\n\n _chart.map = function() {\n return _map;\n };\n\n _chart.toLocArray = function(value) {\n if (typeof value === \"string\") {\n // expects '11.111,1.111'\n value = value.split(\",\");\n }\n // else expects [11.111,1.111]\n return value;\n };\n\n // combine Leaflet events into d3 & dc events\n dc.override(_chart, 'on', function(event, callback) {\n var leaflet_events = ['zoomend', 'moveend'];\n if(leaflet_events.indexOf(event) >= 0) {\n if(_map) {\n _map.on(event, callback);\n }\n else {\n _cachedHandlers[event] = callback;\n }\n return this;\n }\n else return _chart._on(event, callback);\n });\n\n return _chart;\n};\n","//Legend code adapted from http://leafletjs.com/examples/choropleth.html\ndc_leaflet.legend = function() {\n var _parent, _legend = {};\n var _leafletLegend = null;\n var _position = 'bottomleft';\n\n _legend.parent = function (parent) {\n if(!arguments.length)\n return _parent;\n _parent = parent;\n return this;\n };\n\n function _LegendClass() {\n return L.Control.extend({\n options: {position: _position},\n onAdd: function (map) {\n this._div = L.DomUtil.create('div', 'info legend');\n map.on('moveend',this._update,this);\n this._update();\n return this._div;\n },\n _update: function () {\n if (_parent.colorDomain()) { // check because undefined for marker charts\n var minValue = _parent.colorDomain()[0],\n maxValue = _parent.colorDomain()[1],\n palette = _parent.colors().range(),\n colorLength = _parent.colors().range().length,\n delta = (maxValue - minValue)/colorLength,\n i;\n\n // define grades for legend colours\n // based on equation in dc.js colorCalculator (before version based on colorMixin)\n var grades = [];\n grades[0] = Math.round(minValue);\n for (i= 1; i < colorLength; i++) {\n grades[i] = Math.round((0.5 + (i - 1)) * delta + minValue);\n }\n\n var div = L.DomUtil.create('div', 'info legend');\n // loop through our density intervals and generate a label with a colored\n // square for each interval\n this._div.innerHTML = \"\"; //reset so that legend is not plotted multiple times\n for (i = 0; i < grades.length; i++) {\n this._div.innerHTML +=\n ' ' +\n grades[i] + (grades[i + 1] ? '–' + grades[i + 1] + '
' : '+');\n }\n }\n }\n });\n }\n\n _legend.LegendClass = function(LegendClass) {\n if(!arguments.length)\n return _LegendClass;\n _LegendClass = LegendClass;\n return _legend;\n };\n\n _legend.render = function () {\n // unfortunately the dc.js legend has no concept of redraw, it's always render\n if(!_leafletLegend) {\n // fetch the legend class creator, invoke it\n var Legend = _legend.LegendClass()();\n // and constuct that class\n _leafletLegend = new Legend();\n _leafletLegend.addTo(_parent.map());\n }\n\n return _legend.redraw();\n };\n\n _legend.redraw = function () {\n _leafletLegend._update();\n return _legend;\n };\n\n _legend.leafletLegend = function () {\n return _leafletLegend;\n };\n\n _legend.position = function (position) {\n if(!arguments.length) return _position;\n _position = position;\n return _legend;\n };\n\n return _legend;\n};\n","dc_leaflet.markerChart = function(parent, chartGroup) {\n var _chart = dc_leaflet.leafletBase({});\n\n var _renderPopup = true;\n var _cluster = false; // requires leaflet.markerCluster\n var _clusterOptions=false;\n var _rebuildMarkers = false;\n var _brushOn = true;\n var _filterByArea = false;\n\n var _filter;\n var _innerFilter=false;\n var _zooming=false;\n var _layerGroup = false;\n var _markerList = [];\n var _currentGroups=false;\n\n _chart.renderTitle(true);\n\n var _location = function(d) {\n return _chart.keyAccessor()(d);\n };\n\n var _marker = function(d,map) {\n var marker = new L.Marker(_chart.toLocArray(_chart.locationAccessor()(d)),{\n title: _chart.renderTitle() ? _chart.title()(d) : '',\n alt: _chart.renderTitle() ? _chart.title()(d) : '',\n icon: _icon(),\n clickable: _chart.renderPopup() || (_chart.brushOn() && !_filterByArea),\n draggable: false\n });\n return marker;\n };\n\n var _icon = function(d,map) {\n return new L.Icon.Default();\n };\n\n var _popup = function(d,marker) {\n return _chart.title()(d);\n };\n\n _chart._postRender = function() {\n if (_chart.brushOn()) {\n if (_filterByArea) {\n _chart.filterHandler(doFilterByArea);\n }\n\n _chart.map().on('zoomend moveend', zoomFilter, this );\n if (!_filterByArea)\n _chart.map().on('click', zoomFilter, this );\n _chart.map().on('zoomstart', zoomStart, this);\n }\n\n if (_cluster) {\n _layerGroup = new L.MarkerClusterGroup(_clusterOptions?_clusterOptions:null);\n }\n else {\n _layerGroup = new L.LayerGroup();\n }\n _chart.map().addLayer(_layerGroup);\n };\n\n _chart._doRedraw = function() {\n var groups = _chart._computeOrderedGroups(_chart.data()).filter(function (d) {\n return _chart.valueAccessor()(d) !== 0;\n });\n if (_currentGroups && _currentGroups.toString() === groups.toString()) {\n return;\n }\n _currentGroups=groups;\n\n if (_rebuildMarkers) {\n _markerList=[];\n }\n _layerGroup.clearLayers();\n\n var addList=[];\n groups.forEach(function(v,i) {\n var key = _chart.keyAccessor()(v);\n var marker = null;\n if (!_rebuildMarkers && key in _markerList) {\n marker = _markerList[key];\n }\n else {\n marker = createmarker(v,key);\n }\n if (!_chart.cluster()) {\n _layerGroup.addLayer(marker);\n }\n else {\n addList.push(marker);\n }\n });\n\n if (_chart.cluster() && addList.length > 0) {\n _layerGroup.addLayers(addList);\n }\n };\n\n _chart.locationAccessor = function(_) {\n if (!arguments.length) {\n return _location;\n }\n _location= _;\n return _chart;\n };\n\n _chart.marker = function(_) {\n if (!arguments.length) {\n return _marker;\n }\n _marker= _;\n return _chart;\n };\n\n _chart.icon = function(_) {\n if (!arguments.length) {\n return _icon;\n }\n _icon= _;\n return _chart;\n };\n\n _chart.popup = function(_) {\n if (!arguments.length) {\n return _popup;\n }\n _popup= _;\n return _chart;\n };\n\n _chart.renderPopup = function(_) {\n if (!arguments.length) {\n return _renderPopup;\n }\n _renderPopup = _;\n return _chart;\n };\n\n\n _chart.cluster = function(_) {\n if (!arguments.length) {\n return _cluster;\n }\n _cluster = _;\n return _chart;\n };\n\n _chart.clusterOptions = function(_) {\n if (!arguments.length) {\n return _clusterOptions;\n }\n _clusterOptions = _;\n return _chart;\n };\n\n _chart.rebuildMarkers = function(_) {\n if (!arguments.length) {\n return _rebuildMarkers;\n }\n _rebuildMarkers = _;\n return _chart;\n };\n\n _chart.brushOn = function(_) {\n if (!arguments.length) {\n return _brushOn;\n }\n _brushOn = _;\n return _chart;\n };\n\n _chart.filterByArea = function(_) {\n if (!arguments.length) {\n return _filterByArea;\n }\n _filterByArea = _;\n return _chart;\n };\n\n _chart.markerGroup = function() {\n return _layerGroup;\n };\n\n var createmarker = function(v,k) {\n var marker = _marker(v);\n marker.key = k;\n if (_chart.renderPopup()) {\n marker.bindPopup(_chart.popup()(v,marker));\n }\n if (_chart.brushOn() && !_filterByArea) {\n marker.on(\"click\",selectFilter);\n }\n _markerList[k]=marker;\n return marker;\n };\n\n var zoomStart = function(e) {\n _zooming=true;\n };\n\n var zoomFilter = function(e) {\n if (e.type === \"moveend\" && (_zooming || e.hard)) {\n return;\n }\n _zooming=false;\n\n if (_filterByArea) {\n var filter;\n if (_chart.map().getCenter().equals(_chart.center()) && _chart.map().getZoom() === _chart.zoom()) {\n filter = null;\n }\n else {\n filter = _chart.map().getBounds();\n }\n dc.events.trigger(function () {\n _chart.filter(null);\n if (filter) {\n _innerFilter=true;\n _chart.filter(filter);\n _innerFilter=false;\n }\n dc.redrawAll(_chart.chartGroup());\n });\n } else if (_chart.filter() && (e.type === \"click\" ||\n (_markerList.indexOf(_chart.filter()) !== -1 &&\n !_chart.map().getBounds().contains(_markerList[_chart.filter()].getLatLng())))) {\n dc.events.trigger(function () {\n _chart.filter(null);\n if (_renderPopup) {\n _chart.map().closePopup();\n }\n dc.redrawAll(_chart.chartGroup());\n });\n }\n };\n\n var doFilterByArea = function(dimension, filters) {\n _chart.dimension().filter(null);\n if (filters && filters.length>0) {\n _chart.dimension().filterFunction(function(d) {\n if (!(d in _markerList)) {\n return false;\n }\n var locO = _markerList[d].getLatLng();\n return locO && filters[0].contains(locO);\n });\n if (!_innerFilter && _chart.map().getBounds().toString !== filters[0].toString()) {\n _chart.map().fitBounds(filters[0]);\n }\n }\n };\n\n var selectFilter = function(e) {\n if (!e.target) return;\n var filter = e.target.key;\n dc.events.trigger(function () {\n _chart.filter(filter);\n dc.redrawAll(_chart.chartGroup());\n });\n };\n\n return _chart.anchor(parent, chartGroup);\n};\n","dc_leaflet.choroplethChart = function(parent, chartGroup) {\n var _chart = dc.colorChart(dc_leaflet.leafletBase({}));\n\n var _geojsonLayer = false;\n var _dataMap = [];\n\n var _geojson = false;\n var _renderPopup = true;\n var _brushOn = true;\n var _featureOptions = {\n 'fillColor':'black',\n 'color':'gray',\n 'opacity':0.4,\n 'fillOpacity':0.6,\n 'weight':1\n };\n\n var _featureKey = function(feature) {\n return feature.key;\n };\n\n var _featureStyle = function(feature) {\n var options = _chart.featureOptions();\n if (options instanceof Function) {\n options=options(feature);\n }\n options = JSON.parse(JSON.stringify(options));\n var v = _dataMap[_chart.featureKeyAccessor()(feature)];\n if (v && v.d) {\n options.fillColor=_chart.getColor(v.d,v.i);\n if (_chart.filters().indexOf(v.d.key) !== -1) {\n options.opacity=0.8;\n options.fillOpacity=1;\n }\n }\n return options;\n };\n\n var _popup = function(d,feature) {\n return _chart.title()(d);\n };\n\n _chart._postRender = function() {\n _geojsonLayer=L.geoJson(_chart.geojson(),{\n style: _chart.featureStyle(),\n onEachFeature: processFeatures\n });\n _chart.map().addLayer(_geojsonLayer);\n };\n\n dc.override(_chart, '_doRedraw', function() {\n _geojsonLayer.clearLayers();\n _dataMap=[];\n _chart._computeOrderedGroups(_chart.data()).forEach(function (d, i) {\n _dataMap[_chart.keyAccessor()(d)] = {'d':d,'i':i};\n });\n _geojsonLayer.addData(_chart.geojson());\n return _chart.__doRedraw();\n });\n\n _chart.geojson = function(_) {\n if (!arguments.length) {\n return _geojson;\n }\n _geojson = _;\n return _chart;\n };\n\n _chart.featureOptions = function(_) {\n if (!arguments.length) {\n return _featureOptions;\n }\n _featureOptions = _;\n return _chart;\n };\n\n _chart.featureKeyAccessor = function(_) {\n if (!arguments.length) {\n return _featureKey;\n }\n _featureKey= _;\n return _chart;\n };\n\n _chart.featureStyle = function(_) {\n if (!arguments.length) {\n return _featureStyle;\n }\n _featureStyle= _;\n return _chart;\n };\n\n _chart.popup = function(_) {\n if (!arguments.length) {\n return _popup;\n }\n _popup= _;\n return _chart;\n };\n\n _chart.renderPopup = function(_) {\n if (!arguments.length) {\n return _renderPopup;\n }\n _renderPopup = _;\n return _chart;\n };\n\n _chart.brushOn = function(_) {\n if (!arguments.length) {\n return _brushOn;\n }\n _brushOn = _;\n return _chart;\n };\n\n var processFeatures = function (feature, layer) {\n var v = _dataMap[_chart.featureKeyAccessor()(feature)];\n if (v && v.d) {\n layer.key=v.d.key;\n if (_chart.renderPopup())\n layer.bindPopup(_chart.popup()(v.d,feature));\n if (_chart.brushOn())\n layer.on(\"click\",selectFilter);\n }\n };\n\n var selectFilter = function(e) {\n if (!e.target) {\n return;\n }\n var filter = e.target.key;\n dc.events.trigger(function () {\n _chart.filter(filter);\n dc.redrawAll(_chart.chartGroup());\n });\n };\n\n return _chart.anchor(parent, chartGroup);\n};\n","dc_leaflet.d3 = d3;\ndc_leaflet.crossfilter = crossfilter;\ndc_leaflet.dc = dc;\n\nreturn dc_leaflet;\n}\n if (typeof define === 'function' && define.amd) {\n define([\"dc\"], _dc_leaflet);\n } else if (typeof module == \"object\" && module.exports) {\n var _dc = require('dc');\n module.exports = _dc_leaflet(_dc);\n } else {\n this.dc_leaflet = _dc_leaflet(dc);\n }\n}\n)();\n"]} \ No newline at end of file diff --git a/dc.leaflet.min.js b/dc.leaflet.min.js index d777b2a5..540ab224 100644 --- a/dc.leaflet.min.js +++ b/dc.leaflet.min.js @@ -17,5 +17,5 @@ * limitations under the License. */ -!function(){function a(a){"use strict";var b={version:"0.2.2"};return b.leafletBase=function(b){b=a.marginMixin(a.baseChart(b)),b.margins({left:0,top:0,right:0,bottom:0});var c,d=!1,e=!1,f=!1,g={},h=function(a){var c=a.selectAll("div.dc-leaflet").data([0]).enter().append("div").attr("class","dc-leaflet").style("width",b.effectiveWidth()+"px").style("height",b.effectiveHeight()+"px");return L.map(c.node(),d)},i=function(a){L.tileLayer("http://{s}.tile.osm.org/{z}/{x}/{y}.png",{attribution:'© OpenStreetMap contributors'}).addTo(a)};return b.createLeaflet=function(a){return arguments.length?(h=a,b):h},b._doRender=function(){if(b.map())console.warn("WARNING: Leaflet map already rendered.");else{c=h(b.root());for(var a in g)c.on(a,g[a]);e&&f&&c.setView(b.toLocArray(e),f)}return b.tiles()(c),b._postRender(),b._doRedraw()},b._doRedraw=function(){return b},b._postRender=function(){return b},b.mapOptions=function(a){return arguments.length?(d=a,b):d},b.center=function(a){return arguments.length?(e=a,b):e},b.zoom=function(a){return arguments.length?(f=a,b):f},b.tiles=function(a){return arguments.length?(i=a,b):i},b.map=function(){return c},b.toLocArray=function(a){return"string"==typeof a&&(a=a.split(",")),a},a.override(b,"on",function(a,d){var e=["zoomend","moveend"];return e.indexOf(a)>=0?(c?c.on(a,d):g[a]=d,this):b._on(a,d)}),b},b.legend=function(){function a(){return L.Control.extend({options:{position:e},onAdd:function(a){return this._div=L.DomUtil.create("div","info legend"),a.on("moveend",this._update,this),this._update(),this._div},_update:function(){if(b.colorDomain()){var a,c=b.colorDomain()[0],d=b.colorDomain()[1],e=b.colors().range(),f=b.colors().range().length,g=(d-c)/f,h=[];for(h[0]=Math.round(c),a=1;f>a;a++)h[a]=Math.round((.5+(a-1))*g+c);{L.DomUtil.create("div","info legend")}for(this._div.innerHTML="",a=0;a '+h[a]+(h[a+1]?"–"+h[a+1]+"
":"+")}}})}var b,c={},d=null,e="bottomleft";return c.parent=function(a){return arguments.length?(b=a,this):b},c.LegendClass=function(b){return arguments.length?(a=b,c):a},c.render=function(){if(!d){var a=c.LegendClass()();d=new a,d.addTo(b.map())}return c.redraw()},c.redraw=function(){return d._update(),c},c.leafletLegend=function(){return d},c.position=function(a){return arguments.length?(e=a,c):e},c},b.markerChart=function(c,d){var e=b.leafletBase({}),f=!0,g=!1,h=!1,i=!1,j=!0,k=!1,l=!1,m=!1,n=!1,o=[],p=!1;e.renderTitle(!0);var q=function(a){return e.keyAccessor()(a)},r=function(a){var b=new L.Marker(e.toLocArray(e.locationAccessor()(a)),{title:e.renderTitle()?e.title()(a):"",alt:e.renderTitle()?e.title()(a):"",icon:s(),clickable:e.renderPopup()||e.brushOn()&&!k,draggable:!1});return b},s=function(){return new L.Icon.Default},t=function(a){return e.title()(a)};e._postRender=function(){e.brushOn()&&(k&&e.filterHandler(x),e.map().on("zoomend moveend",w,this),k||e.map().on("click",w,this),e.map().on("zoomstart",v,this)),n=g?new L.MarkerClusterGroup(h?h:null):new L.LayerGroup,e.map().addLayer(n)},e._doRedraw=function(){var a=e._computeOrderedGroups(e.data()).filter(function(a){return 0!==e.valueAccessor()(a)});if(!p||p.toString()!==a.toString()){p=a,i&&(o=[]),n.clearLayers();var b=[];a.forEach(function(a){var c=e.keyAccessor()(a),d=null;d=!i&&c in o?o[c]:u(a,c),e.cluster()?b.push(d):n.addLayer(d)}),e.cluster()&&b.length>0&&n.addLayers(b)}},e.locationAccessor=function(a){return arguments.length?(q=a,e):q},e.marker=function(a){return arguments.length?(r=a,e):r},e.icon=function(a){return arguments.length?(s=a,e):s},e.popup=function(a){return arguments.length?(t=a,e):t},e.renderPopup=function(a){return arguments.length?(f=a,e):f},e.cluster=function(a){return arguments.length?(g=a,e):g},e.clusterOptions=function(a){return arguments.length?(h=a,e):h},e.rebuildMarkers=function(a){return arguments.length?(i=a,e):i},e.brushOn=function(a){return arguments.length?(j=a,e):j},e.filterByArea=function(a){return arguments.length?(k=a,e):k},e.markerGroup=function(){return n};var u=function(a,b){var c=r(a);return c.key=b,e.renderPopup()&&c.bindPopup(e.popup()(a,c)),e.brushOn()&&!k&&c.on("click",y),o[b]=c,c},v=function(){m=!0},w=function(b){if("moveend"!==b.type||!m&&!b.hard)if(m=!1,k){var c;c=e.map().getCenter().equals(e.center())&&e.map().getZoom()===e.zoom()?null:e.map().getBounds(),a.events.trigger(function(){e.filter(null),c&&(l=!0,e.filter(c),l=!1),a.redrawAll(e.chartGroup())})}else e.filter()&&("click"===b.type||-1!==o.indexOf(e.filter())&&!e.map().getBounds().contains(o[e.filter()].getLatLng()))&&a.events.trigger(function(){e.filter(null),f&&e.map().closePopup(),a.redrawAll(e.chartGroup())})},x=function(a,b){e.dimension().filter(null),b&&b.length>0&&(e.dimension().filterFunction(function(a){if(!(a in o))return!1;var c=o[a].getLatLng();return c&&b[0].contains(c)}),l||e.map().getBounds().toString===b[0].toString()||e.map().fitBounds(b[0]))},y=function(b){if(b.target){var c=b.target.key;a.events.trigger(function(){e.filter(c),a.redrawAll(e.chartGroup())})}};return e.anchor(c,d)},b.choroplethChart=function(c,d){var e=a.colorChart(b.leafletBase({})),f=!1,g=[],h=!1,i=!0,j=!0,k={fillColor:"black",color:"gray",opacity:.4,fillOpacity:.6,weight:1},l=function(a){return a.key},m=function(a){var b=e.featureOptions();b instanceof Function&&(b=b(a)),b=JSON.parse(JSON.stringify(b));var c=g[e.featureKeyAccessor()(a)];return c&&c.d&&(b.fillColor=e.getColor(c.d,c.i),-1!==e.filters().indexOf(c.d.key)&&(b.opacity=.8,b.fillOpacity=1)),b},n=function(a){return e.title()(a)};e._postRender=function(){f=L.geoJson(e.geojson(),{style:e.featureStyle(),onEachFeature:o}),e.map().addLayer(f)},a.override(e,"_doRedraw",function(){return f.clearLayers(),g=[],e._computeOrderedGroups(e.data()).forEach(function(a,b){g[e.keyAccessor()(a)]={d:a,i:b}}),f.addData(e.geojson()),e.__doRedraw()}),e.geojson=function(a){return arguments.length?(h=a,e):h},e.featureOptions=function(a){return arguments.length?(k=a,e):k},e.featureKeyAccessor=function(a){return arguments.length?(l=a,e):l},e.featureStyle=function(a){return arguments.length?(m=a,e):m},e.popup=function(a){return arguments.length?(n=a,e):n},e.renderPopup=function(a){return arguments.length?(i=a,e):i},e.brushOn=function(a){return arguments.length?(j=a,e):j};var o=function(a,b){var c=g[e.featureKeyAccessor()(a)];c&&c.d&&(b.key=c.d.key,e.renderPopup()&&b.bindPopup(e.popup()(c.d,a)),e.brushOn()&&b.on("click",p))},p=function(b){if(b.target){var c=b.target.key;a.events.trigger(function(){e.filter(c),a.redrawAll(e.chartGroup())})}};return e.anchor(c,d)},b.d3=d3,b.crossfilter=crossfilter,b.dc=a,b}if("function"==typeof define&&define.amd)define(["dc"],a);else if("object"==typeof module&&module.exports){var b=require("dc");module.exports=a(b)}else this.dc_leaflet=a(dc)}(); +!function(){function a(a){"use strict";var b={version:"0.2.2"};return b.leafletBase=function(b){b=a.marginMixin(a.baseChart(b)),b.margins({left:0,top:0,right:0,bottom:0});var c,d=!1,e=!1,f=!1,g={},h=function(a){var c=a.selectAll("div.dc-leaflet").data([0]).enter().append("div").attr("class","dc-leaflet").style("width",b.effectiveWidth()+"px").style("height",b.effectiveHeight()+"px");return L.map(c.node(),d)},i=function(a){L.tileLayer("http://{s}.tile.osm.org/{z}/{x}/{y}.png",{attribution:'© OpenStreetMap contributors'}).addTo(a)};return b.createLeaflet=function(a){return arguments.length?(h=a,b):h},b._doRender=function(){if(b.map())console.warn("WARNING: Leaflet map already rendered.");else{c=h(b.root());for(var a in g)c.on(a,g[a]);e&&f&&c.setView(b.toLocArray(e),f),b.tiles()(c),b._postRender()}return b._doRedraw()},b._doRedraw=function(){return b},b._postRender=function(){return b},b.mapOptions=function(a){return arguments.length?(d=a,b):d},b.center=function(a){return arguments.length?(e=a,b):e},b.zoom=function(a){return arguments.length?(f=a,b):f},b.tiles=function(a){return arguments.length?(i=a,b):i},b.map=function(){return c},b.toLocArray=function(a){return"string"==typeof a&&(a=a.split(",")),a},a.override(b,"on",function(a,d){var e=["zoomend","moveend"];return e.indexOf(a)>=0?(c?c.on(a,d):g[a]=d,this):b._on(a,d)}),b},b.legend=function(){function a(){return L.Control.extend({options:{position:e},onAdd:function(a){return this._div=L.DomUtil.create("div","info legend"),a.on("moveend",this._update,this),this._update(),this._div},_update:function(){if(b.colorDomain()){var a,c=b.colorDomain()[0],d=b.colorDomain()[1],e=b.colors().range(),f=b.colors().range().length,g=(d-c)/f,h=[];for(h[0]=Math.round(c),a=1;f>a;a++)h[a]=Math.round((.5+(a-1))*g+c);{L.DomUtil.create("div","info legend")}for(this._div.innerHTML="",a=0;a '+h[a]+(h[a+1]?"–"+h[a+1]+"
":"+")}}})}var b,c={},d=null,e="bottomleft";return c.parent=function(a){return arguments.length?(b=a,this):b},c.LegendClass=function(b){return arguments.length?(a=b,c):a},c.render=function(){if(!d){var a=c.LegendClass()();d=new a,d.addTo(b.map())}return c.redraw()},c.redraw=function(){return d._update(),c},c.leafletLegend=function(){return d},c.position=function(a){return arguments.length?(e=a,c):e},c},b.markerChart=function(c,d){var e=b.leafletBase({}),f=!0,g=!1,h=!1,i=!1,j=!0,k=!1,l=!1,m=!1,n=!1,o=[],p=!1;e.renderTitle(!0);var q=function(a){return e.keyAccessor()(a)},r=function(a){var b=new L.Marker(e.toLocArray(e.locationAccessor()(a)),{title:e.renderTitle()?e.title()(a):"",alt:e.renderTitle()?e.title()(a):"",icon:s(),clickable:e.renderPopup()||e.brushOn()&&!k,draggable:!1});return b},s=function(){return new L.Icon.Default},t=function(a){return e.title()(a)};e._postRender=function(){e.brushOn()&&(k&&e.filterHandler(x),e.map().on("zoomend moveend",w,this),k||e.map().on("click",w,this),e.map().on("zoomstart",v,this)),n=g?new L.MarkerClusterGroup(h?h:null):new L.LayerGroup,e.map().addLayer(n)},e._doRedraw=function(){var a=e._computeOrderedGroups(e.data()).filter(function(a){return 0!==e.valueAccessor()(a)});if(!p||p.toString()!==a.toString()){p=a,i&&(o=[]),n.clearLayers();var b=[];a.forEach(function(a){var c=e.keyAccessor()(a),d=null;d=!i&&c in o?o[c]:u(a,c),e.cluster()?b.push(d):n.addLayer(d)}),e.cluster()&&b.length>0&&n.addLayers(b)}},e.locationAccessor=function(a){return arguments.length?(q=a,e):q},e.marker=function(a){return arguments.length?(r=a,e):r},e.icon=function(a){return arguments.length?(s=a,e):s},e.popup=function(a){return arguments.length?(t=a,e):t},e.renderPopup=function(a){return arguments.length?(f=a,e):f},e.cluster=function(a){return arguments.length?(g=a,e):g},e.clusterOptions=function(a){return arguments.length?(h=a,e):h},e.rebuildMarkers=function(a){return arguments.length?(i=a,e):i},e.brushOn=function(a){return arguments.length?(j=a,e):j},e.filterByArea=function(a){return arguments.length?(k=a,e):k},e.markerGroup=function(){return n};var u=function(a,b){var c=r(a);return c.key=b,e.renderPopup()&&c.bindPopup(e.popup()(a,c)),e.brushOn()&&!k&&c.on("click",y),o[b]=c,c},v=function(){m=!0},w=function(b){if("moveend"!==b.type||!m&&!b.hard)if(m=!1,k){var c;c=e.map().getCenter().equals(e.center())&&e.map().getZoom()===e.zoom()?null:e.map().getBounds(),a.events.trigger(function(){e.filter(null),c&&(l=!0,e.filter(c),l=!1),a.redrawAll(e.chartGroup())})}else e.filter()&&("click"===b.type||-1!==o.indexOf(e.filter())&&!e.map().getBounds().contains(o[e.filter()].getLatLng()))&&a.events.trigger(function(){e.filter(null),f&&e.map().closePopup(),a.redrawAll(e.chartGroup())})},x=function(a,b){e.dimension().filter(null),b&&b.length>0&&(e.dimension().filterFunction(function(a){if(!(a in o))return!1;var c=o[a].getLatLng();return c&&b[0].contains(c)}),l||e.map().getBounds().toString===b[0].toString()||e.map().fitBounds(b[0]))},y=function(b){if(b.target){var c=b.target.key;a.events.trigger(function(){e.filter(c),a.redrawAll(e.chartGroup())})}};return e.anchor(c,d)},b.choroplethChart=function(c,d){var e=a.colorChart(b.leafletBase({})),f=!1,g=[],h=!1,i=!0,j=!0,k={fillColor:"black",color:"gray",opacity:.4,fillOpacity:.6,weight:1},l=function(a){return a.key},m=function(a){var b=e.featureOptions();b instanceof Function&&(b=b(a)),b=JSON.parse(JSON.stringify(b));var c=g[e.featureKeyAccessor()(a)];return c&&c.d&&(b.fillColor=e.getColor(c.d,c.i),-1!==e.filters().indexOf(c.d.key)&&(b.opacity=.8,b.fillOpacity=1)),b},n=function(a){return e.title()(a)};e._postRender=function(){f=L.geoJson(e.geojson(),{style:e.featureStyle(),onEachFeature:o}),e.map().addLayer(f)},a.override(e,"_doRedraw",function(){return f.clearLayers(),g=[],e._computeOrderedGroups(e.data()).forEach(function(a,b){g[e.keyAccessor()(a)]={d:a,i:b}}),f.addData(e.geojson()),e.__doRedraw()}),e.geojson=function(a){return arguments.length?(h=a,e):h},e.featureOptions=function(a){return arguments.length?(k=a,e):k},e.featureKeyAccessor=function(a){return arguments.length?(l=a,e):l},e.featureStyle=function(a){return arguments.length?(m=a,e):m},e.popup=function(a){return arguments.length?(n=a,e):n},e.renderPopup=function(a){return arguments.length?(i=a,e):i},e.brushOn=function(a){return arguments.length?(j=a,e):j};var o=function(a,b){var c=g[e.featureKeyAccessor()(a)];c&&c.d&&(b.key=c.d.key,e.renderPopup()&&b.bindPopup(e.popup()(c.d,a)),e.brushOn()&&b.on("click",p))},p=function(b){if(b.target){var c=b.target.key;a.events.trigger(function(){e.filter(c),a.redrawAll(e.chartGroup())})}};return e.anchor(c,d)},b.d3=d3,b.crossfilter=crossfilter,b.dc=a,b}if("function"==typeof define&&define.amd)define(["dc"],a);else if("object"==typeof module&&module.exports){var b=require("dc");module.exports=a(b)}else this.dc_leaflet=a(dc)}(); //# sourceMappingURL=dc.leaflet.min.js.map \ No newline at end of file diff --git a/dc.leaflet.min.js.map b/dc.leaflet.min.js.map index 3dc9cd0f..3c819bb9 100644 --- a/dc.leaflet.min.js.map +++ b/dc.leaflet.min.js.map @@ -1 +1 @@ -{"version":3,"file":"dc.leaflet.min.js","sources":["dc.leaflet.js"],"names":["_dc_leaflet","dc","dc_leaflet","version","leafletBase","_chart","marginMixin","baseChart","margins","left","top","right","bottom","_map","_mapOptions","_defaultCenter","_defaultZoom","_cachedHandlers","_createLeaflet","root","child_div","selectAll","data","enter","append","attr","style","effectiveWidth","effectiveHeight","L","map","node","_tiles","tileLayer","attribution","addTo","createLeaflet","_","arguments","length","_doRender","console","warn","ev","on","setView","toLocArray","tiles","_postRender","_doRedraw","mapOptions","center","zoom","value","split","override","event","callback","leaflet_events","indexOf","this","_on","legend","_LegendClass","Control","extend","options","position","_position","onAdd","_div","DomUtil","create","_update","_parent","colorDomain","i","minValue","maxValue","palette","colors","range","colorLength","delta","grades","Math","round","innerHTML","_legend","_leafletLegend","parent","LegendClass","render","Legend","redraw","leafletLegend","markerChart","chartGroup","_renderPopup","_cluster","_clusterOptions","_rebuildMarkers","_brushOn","_filterByArea","_innerFilter","_zooming","_layerGroup","_markerList","_currentGroups","renderTitle","_location","d","keyAccessor","_marker","marker","Marker","locationAccessor","title","alt","icon","_icon","clickable","renderPopup","brushOn","draggable","Icon","Default","_popup","filterHandler","doFilterByArea","zoomFilter","zoomStart","MarkerClusterGroup","LayerGroup","addLayer","groups","_computeOrderedGroups","filter","valueAccessor","toString","clearLayers","addList","forEach","v","key","createmarker","cluster","push","addLayers","popup","clusterOptions","rebuildMarkers","filterByArea","markerGroup","k","bindPopup","selectFilter","e","type","hard","getCenter","equals","getZoom","getBounds","events","trigger","redrawAll","contains","getLatLng","closePopup","dimension","filters","filterFunction","locO","fitBounds","target","anchor","choroplethChart","colorChart","_geojsonLayer","_dataMap","_geojson","_featureOptions","fillColor","color","opacity","fillOpacity","weight","_featureKey","feature","_featureStyle","featureOptions","Function","JSON","parse","stringify","featureKeyAccessor","getColor","geoJson","geojson","featureStyle","onEachFeature","processFeatures","addData","__doRedraw","layer","d3","crossfilter","define","amd","module","exports","_dc","require"],"mappings":";;;;;;;;;;;;;;;;;;;CAkBA,WAAc,QAASA,GAAYC,GACnC,YAEA,IAAIC,IACAC,QAAS,QA4nBb,OAznBAD,GAAWE,YAAc,SAASC,GAC9BA,EAASJ,EAAGK,YAAYL,EAAGM,UAAUF,IAErCA,EAAOG,SAASC,KAAK,EAAGC,IAAI,EAAGC,MAAM,EAAGC,OAAO,GAE/C,IAAIC,GAEAC,GAAY,EACZC,GAAe,EACfC,GAAa,EAEbC,KAEAC,EAAiB,SAASC,GAI1B,GAAIC,GAAYD,EAAKE,UAAU,kBACtBC,MAAM,IAAIC,QACZC,OAAO,OAAOC,KAAK,QAAS,cAC1BC,MAAM,QAASrB,EAAOsB,iBAAmB,MACzCD,MAAM,SAAUrB,EAAOuB,kBAAoB,KAEpD,OAAOC,GAAEC,IAAIV,EAAUW,OAAOjB,IAG9BkB,EAAO,SAASF,GAChBD,EAAEI,UAAU,2CACRC,YAAa,6EACdC,MAAML,GAmGb,OAhGAzB,GAAO+B,cAAgB,SAASC,GAC5B,MAAIC,WAAUC,QAGdrB,EAAiBmB,EACVhC,GAHIa,GAMfb,EAAOmC,UAAY,WACf,GAAKnC,EAAOyB,MAURW,QAAQC,KAAK,8CAVC,CACd7B,EAAOK,EAAeb,EAAOc,OAC7B,KAAI,GAAIwB,KAAM1B,GACVJ,EAAK+B,GAAGD,EAAI1B,EAAgB0B,GAE5B5B,IAAkBC,GAClBH,EAAKgC,QAAQxC,EAAOyC,WAAW/B,GAAiBC,GAUxD,MAJAX,GAAO0C,QAAQlC,GAEfR,EAAO2C,cAEA3C,EAAO4C,aAGlB5C,EAAO4C,UAAY,WACf,MAAO5C,IAGXA,EAAO2C,YAAc,WAC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fvL,EAAOmM,aAAe,SAASnK,GAC3B,MAAKC,WAAUC,QAGfuJ,EAAezJ,EACRhC,GAHIyL,GAMfzL,EAAOgJ,MAAQ,SAAShH,GACpB,MAAKC,WAAUC,QAGfwF,EAAQ1F,EACDhC,GAHI0H,GAMf1H,EAAOqH,YAAc,SAASrF,GAC1B,MAAKC,WAAUC,QAGf2D,EAAe7D,EACRhC,GAHI6F,GAMf7F,EAAOsH,QAAU,SAAStF,GACtB,MAAKC,WAAUC,QAGf+D,EAAWjE,EACJhC,GAHIiG,EAMf,IAAIoG,GAAkB,SAAUb,EAASgB,GACrC,GAAI9D,GAAIqC,EAAS/K,EAAO+L,qBAAqBP,GACzC9C,IAAKA,EAAEhC,IACP8F,EAAM7D,IAAID,EAAEhC,EAAEiC,IACV3I,EAAOqH,eACPmF,EAAMlD,UAAUtJ,EAAOgJ,QAAQN,EAAEhC,EAAE8E,IACnCxL,EAAOsH,WACPkF,EAAMjK,GAAG,QAAQgH,KAIzBA,EAAe,SAASC,GACxB,GAAKA,EAAEkB,OAAP,CAGA,GAAItC,GAASoB,EAAEkB,OAAO/B,GACtB/I,GAAGmK,OAAOC,QAAQ,WACdhK,EAAOoI,OAAOA,GACdxI,EAAGqK,UAAUjK,EAAO4F,iBAI5B,OAAO5F,GAAO2K,OAAOtF,EAAQO,IAGjC/F,EAAW4M,GAAKA,GAChB5M,EAAW6M,YAAcA,YACzB7M,EAAWD,GAAKA,EAETC,EAEH,GAAsB,kBAAX8M,SAAyBA,OAAOC,IACvCD,QAAQ,MAAOhN,OACZ,IAAqB,gBAAVkN,SAAsBA,OAAOC,QAAS,CACpD,GAAIC,GAAMC,QAAQ,KAClBH,QAAOC,QAAUnN,EAAYoN,OAE7BxJ,MAAK1D,WAAaF,EAAYC"} \ No newline at end of file +{"version":3,"file":"dc.leaflet.min.js","sources":["dc.leaflet.js"],"names":["_dc_leaflet","dc","dc_leaflet","version","leafletBase","_chart","marginMixin","baseChart","margins","left","top","right","bottom","_map","_mapOptions","_defaultCenter","_defaultZoom","_cachedHandlers","_createLeaflet","root","child_div","selectAll","data","enter","append","attr","style","effectiveWidth","effectiveHeight","L","map","node","_tiles","tileLayer","attribution","addTo","createLeaflet","_","arguments","length","_doRender","console","warn","ev","on","setView","toLocArray","tiles","_postRender","_doRedraw","mapOptions","center","zoom","value","split","override","event","callback","leaflet_events","indexOf","this","_on","legend","_LegendClass","Control","extend","options","position","_position","onAdd","_div","DomUtil","create","_update","_parent","colorDomain","i","minValue","maxValue","palette","colors","range","colorLength","delta","grades","Math","round","innerHTML","_legend","_leafletLegend","parent","LegendClass","render","Legend","redraw","leafletLegend","markerChart","chartGroup","_renderPopup","_cluster","_clusterOptions","_rebuildMarkers","_brushOn","_filterByArea","_innerFilter","_zooming","_layerGroup","_markerList","_currentGroups","renderTitle","_location","d","keyAccessor","_marker","marker","Marker","locationAccessor","title","alt","icon","_icon","clickable","renderPopup","brushOn","draggable","Icon","Default","_popup","filterHandler","doFilterByArea","zoomFilter","zoomStart","MarkerClusterGroup","LayerGroup","addLayer","groups","_computeOrderedGroups","filter","valueAccessor","toString","clearLayers","addList","forEach","v","key","createmarker","cluster","push","addLayers","popup","clusterOptions","rebuildMarkers","filterByArea","markerGroup","k","bindPopup","selectFilter","e","type","hard","getCenter","equals","getZoom","getBounds","events","trigger","redrawAll","contains","getLatLng","closePopup","dimension","filters","filterFunction","locO","fitBounds","target","anchor","choroplethChart","colorChart","_geojsonLayer","_dataMap","_geojson","_featureOptions","fillColor","color","opacity","fillOpacity","weight","_featureKey","feature","_featureStyle","featureOptions","Function","JSON","parse","stringify","featureKeyAccessor","getColor","geoJson","geojson","featureStyle","onEachFeature","processFeatures","addData","__doRedraw","layer","d3","crossfilter","define","amd","module","exports","_dc","require"],"mappings":";;;;;;;;;;;;;;;;;;;CAkBA,WAAc,QAASA,GAAYC,GACnC,YAEA,IAAIC,IACAC,QAAS,QA4nBb,OAznBAD,GAAWE,YAAc,SAASC,GAC9BA,EAASJ,EAAGK,YA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G,EAMf,IAAIoG,GAAkB,SAAUb,EAASgB,GACrC,GAAI9D,GAAIqC,EAAS/K,EAAO+L,qBAAqBP,GACzC9C,IAAKA,EAAEhC,IACP8F,EAAM7D,IAAID,EAAEhC,EAAEiC,IACV3I,EAAOqH,eACPmF,EAAMlD,UAAUtJ,EAAOgJ,QAAQN,EAAEhC,EAAE8E,IACnCxL,EAAOsH,WACPkF,EAAMjK,GAAG,QAAQgH,KAIzBA,EAAe,SAASC,GACxB,GAAKA,EAAEkB,OAAP,CAGA,GAAItC,GAASoB,EAAEkB,OAAO/B,GACtB/I,GAAGmK,OAAOC,QAAQ,WACdhK,EAAOoI,OAAOA,GACdxI,EAAGqK,UAAUjK,EAAO4F,iBAI5B,OAAO5F,GAAO2K,OAAOtF,EAAQO,IAGjC/F,EAAW4M,GAAKA,GAChB5M,EAAW6M,YAAcA,YACzB7M,EAAWD,GAAKA,EAETC,EAEH,GAAsB,kBAAX8M,SAAyBA,OAAOC,IACvCD,QAAQ,MAAOhN,OACZ,IAAqB,gBAAVkN,SAAsBA,OAAOC,QAAS,CACpD,GAAIC,GAAMC,QAAQ,KAClBH,QAAOC,QAAUnN,EAAYoN,OAE7BxJ,MAAK1D,WAAaF,EAAYC"} \ No newline at end of file diff --git a/src/leafletBase.js b/src/leafletBase.js index 8c4683b5..3b0cd4d8 100644 --- a/src/leafletBase.js +++ b/src/leafletBase.js @@ -47,14 +47,14 @@ dc_leaflet.leafletBase = function(_chart) { if (_defaultCenter && _defaultZoom) { _map.setView(_chart.toLocArray(_defaultCenter), _defaultZoom); } + + _chart.tiles()(_map); + + _chart._postRender(); } else console.warn("WARNING: Leaflet map already rendered."); - _chart.tiles()(_map); - - _chart._postRender(); - return _chart._doRedraw(); }; diff --git a/web/js/dc.leaflet.js b/web/js/dc.leaflet.js index b3d18ef4..809554c2 100644 --- a/web/js/dc.leaflet.js +++ b/web/js/dc.leaflet.js @@ -72,14 +72,14 @@ dc_leaflet.leafletBase = function(_chart) { if (_defaultCenter && _defaultZoom) { _map.setView(_chart.toLocArray(_defaultCenter), _defaultZoom); } + + _chart.tiles()(_map); + + _chart._postRender(); } else console.warn("WARNING: Leaflet map already rendered."); - _chart.tiles()(_map); - - _chart._postRender(); - return _chart._doRedraw(); };