Ember-Leaflet CartoDB.js layer component
{{cartodb-layer url='...'}}
This component only works when using ember-leaflet, so install that first.
ember install ember-leaflet-cartodb
Note: Example is using Ember 2.3's Contextual Components feature.
A layer that takes a CartoDB viz url and renders it on the map.
Takes a string
, in the following form:
http://documentation.cartodb.com/api/v2/viz/836e37ca-085a-11e4-8834-0edbca4b5057/viz.json
An action that is fired when clicking a layer that has interactivity. All arguments are the same as those of
Carto's featureClick
event. This only works if using a version of Leaflet less then 1.0, so update your bower.json
accordingly.
Disable the legend that comes from CartoDB. Defaults to true
(enabled).
Disable the infowindow that opens if interactivity is set on one of the sublayers.
Set the ordering of the layer compared to other layers used.
Change the SQL query used in the Carto Viz provided by url
.