Releases: Esri/esri-leaflet
Releases · Esri/esri-leaflet
1.0.1
v2.0.0-beta.6
Fixed
- Improved NationalGeographic and Gray attribution #612
- Fixed removing of
FeatureLayer
from maps (again)
v2.0.0-beta.5
Fixed
- Removed stray
console.log
statements - Added missing files to NPM
- Fixed removing of
FeatureLayer
from maps
v2.0.0-beta.4
Breaking
- Nested namespaces for
L.esri.Layers
,L.esri.Services
andL.esri.Tasks
have been removed for better compatibility with ES 2015 modules. This means you should now writeL.esri.query()
as opposed toL.esri.Tasks.query()
.
Changed
- Tests are now run against the minified production code for more safty.
Fixed
- Features no longer flicker when zooming in/out on
FeatureLayer
Added
- Various release process optimizations.
- Support for JSPM in package.json. Now you can
import featureLayer from 'esri-leaflet/src/Layers/FeatureLayer';
for more compact builds but be aware of caveats - Support for browserify in the package.json. Now you can
var featureLayer = require('esri-leaflet/src/Layers/FeatureLayer');
for more compact builds but be aware of caveats
v2.0.0-beta.3
Fixed
- Files not included in git tag.
v2.0.0-beta.1
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.
1.0.0
This represents the stable release of Esri Leaflet compatible with Leaflet 0.7.3. All future 1.0.X releases will be compatible with Leaflet 0.7.3 and contain only bug fixes. New features will only be added in Esri Leaflet 2.0.0 which will require Leaflet 1.0.0.
As this is a major release there are a number of breaking changes.
Also see the Esri Leaflet 1.0 announcement.
Breaking Changes
L.esri.Services.FeatureLayer
has been renamed toL.esri.Services.FeatureLayerService
. It should be initialized withL.esri.Services.featureLayerService(options)
.- All layers and tasks now have constructors that mimic service classes. this means they expect
url
s to supplied within an options object as opposed to being supplied as a raw string. ie.L.esri.featureLayer(yourUrl)
will now beL.esri.featureLayer({url: yourUrl}})
. This does not affectL.esri.basemapLayer
which still accepts akey
as it's first parameter. - Request callbacks across Esri Leaflet now can handle authentication errors by calling
error.authenticate(newToken)
as opposed to listening toauthenticationrequired
event and callinge.target.authenticate(newToken)
. This means that your callbacks may be called multiple times, once with an authentication failure and once with an authentication success. To avoid any side affects of this you shouldreturn
as early as possible after handling errors. It is recommended you adapt techniques from http://blog.timoxley.com/post/47041269194/avoid-else-return-early to handle these cases.
L.esri.Services.service({
url: 'http://logistics.arcgis.com/arcgis/rest/services/World/ServiceAreas/GPServer/GenerateServiceAreas',
token: 'badtoken'
}).metadata(function(error, response){
if(error && error.authenticate) {
// handle an authentication error, returning to stop execution of the rest of the function
error.authenticate('good token');
return;
}
if(error) {
// handle any other errors, returning to stop execution of the rest of the function
return;
}
// if you get here you are successful!
console.log(metadata);
});
Changes
- Added support for the
dynamicLayers
option toL.esri.DynamicMapLayer
#566 - Restored
bringToBack
andbringToFront
toL.esri.FeatureLayer
#479 load
event onL.esri.FeatureLayer
now fires at the proper time #545L.esri.DynamicMapLayer
andL.esri.ImageMapLayer
will now automatically use POST for large requests. #574L.esri.ImageMapLayer
now defaults to requestingjson
as opposed to an image to better handle authentication and large requests #574. If your Image Service does not support CORS you should set{f:'image'}
in your options.
Release Candidate 8
Breaking Changes
- CDN moved to JS Delivr http://www.jsdelivr.com/#!leaflet.esri. Old CDN versions will remain alive but no newer version will be published.
Changes
- Non standard scale levels from tile services published in web mercator are now remapped to the standard scale levels #548 #530
- Fixed a bug introduced in RC 7 where features would sometimes not draw #546 #536
load
event is now fired after all features are created, rather then when they are all received from the server #545- Properly handle using
L.CircleMarker
withL.esri.Layers.FeatureLayer
#534 - New
redraw
method onL.esri.Layers.FeatureLayer
for programatically redrawing features with their latest symbology. #550
Release Candidate 7
Breaking Changes
- DynamicMapLayer will now request
json
by default to better expose the authentication process. If you are using ArcGIS Server 10.0 or have disabled CORS on your server you will need to adduseCors: false
to your options.
Changes
- refactor of
FeatureLayer.resetStyle()
behavior. #488 - improvement of
DynamicMapLayer
image loading logic. #498 - Fixed bug in display of dynamic map services at world scale. #450
- Switched to protocol relative urls for google fonts #501 (thanks @whymarrh!)
- Added an
alt
tag to the Esri logo #490 - Improved a few regexes #494 & #487
- Trap error when
identifyFeatures.run()
doesn't return any results. #512 - Dynamically switch to a smaller Esri logo in smaller maps. #505
- Added a
deleteFeatures()
method to bothL.esri.Layers.FeatureLayer
andL.esri.Services.FeatureLayer
for dropping records in bulk. #510 - Improve logic of rendering simplified features with
L.esri.FeatureLayer
. #320 and #518 - Various doc improvements. #511 & #507 & #506 & #495
- Attribution for basemaps is now always requested with JSONP
Release Candidate 6
Breaking Changes
None
Changes
f:'json'
will now be used automatically when a proxy is set forL.esri.DynamicMapLayer
. #464- Callback functions will now only be run once when there is a CORS error. #465
- Layer ids will now be included with the GeoJSON response from
identify()
andL.esri.Tasks.Identify
. #443 - Bugfix for adding/removing certain basemap layers. #455