v2.0.0-beta.1
Pre-release
Pre-release
This release is the first release that supports Leaflet 1.0.0-beta.1.
Added
- New
featureLayer.resetFeatureStyle(id, style)
for reseting the styles on a specific feature to their original style.
Changed
- By default basemap layers
GrayLabels
,DarkGrayLabels
,OceansLabels
,ImageryLabels
,ImageryTransportation
,ShadedReliefLabels
,TerrainLabels
will now be rendered on top of polygons and polylines if the browser supports CSS Pointer Events. You can disable this behavior by passing{pane: "tilePane"}
in theL.esri.basemapLayer
options. - Now relies on the Leaflet 1.0.0-beta.1 release
- Rewritten build and test systems to rely on ES 2015 Modules specification
- More build and release automation
featureLayer.resetStyle
no longer takes and id and will reset the style of all features. Use the newfeatureLayer.resetFeatureStyle(id, style)
method.- Styling point feature layers using vector markers like
L.circleMarker
should now also use thestyle
option to set the styles of the vector markers as opposed to setting it in theL.circleMarker
options. This enables thesetStyle
,resetStyle
,setFeatureStyle
andresetFeatureStyle
options to work properly.
L.esri.featureLayer({
url: 'http://...',
// define how to convert your point into a layer
pointToLayer: function(latlng, feature){
return L.circleMarker(latlng);
},
// style that vector layer
style: {
radius: 10,
color: 'red'
}
})
Removed
- All alternate/compact builds have been removed. They will be replaced with a new system for generating custom builds soon.
L.esri.Request
has been removed. Please useL.esri.get
,L.esri.get.CORS
,L.esri.get.JSONP
,L.esri.post
orL.esri.request
directly.