Skip to content

Releases: Esri/esri-leaflet

1.0.1

02 Nov 18:30
Compare
Choose a tag to compare

Fixed

  • Ensure that we never try to remove the Esri logo from a map twice #667

v2.0.0-beta.6

23 Sep 18:49
Compare
Choose a tag to compare

Fixed

  • Improved NationalGeographic and Gray attribution #612
  • Fixed removing of FeatureLayer from maps (again)

v2.0.0-beta.5

28 Jul 16:42
Compare
Choose a tag to compare
v2.0.0-beta.5 Pre-release
Pre-release

Fixed

  • Removed stray console.log statements
  • Added missing files to NPM
  • Fixed removing of FeatureLayer from maps

v2.0.0-beta.4

24 Jul 17:55
Compare
Choose a tag to compare
v2.0.0-beta.4 Pre-release
Pre-release

Breaking

  • Nested namespaces for L.esri.Layers, L.esri.Services and L.esri.Tasks have been removed for better compatibility with ES 2015 modules. This means you should now write L.esri.query() as opposed to L.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

20 Jul 03:22
Compare
Choose a tag to compare
v2.0.0-beta.3 Pre-release
Pre-release

Fixed

  • Files not included in git tag.

v2.0.0-beta.1

20 Jul 00:53
Compare
Choose a tag to compare
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 the L.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 new featureLayer.resetFeatureStyle(id, style) method.
  • Styling point feature layers using vector markers like L.circleMarker should now also use the style option to set the styles of the vector markers as opposed to setting it in the L.circleMarker options. This enables the setStyle, resetStyle, setFeatureStyle and resetFeatureStyle 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 use L.esri.get, L.esri.get.CORS, L.esri.get.JSONP, L.esri.post or L.esri.request directly.

1.0.0

10 Jul 18:49
Compare
Choose a tag to compare

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 to L.esri.Services.FeatureLayerService. It should be initialized with L.esri.Services.featureLayerService(options).
  • All layers and tasks now have constructors that mimic service classes. this means they expect urls to supplied within an options object as opposed to being supplied as a raw string. ie. L.esri.featureLayer(yourUrl) will now be L.esri.featureLayer({url: yourUrl}}). This does not affect L.esri.basemapLayer which still accepts a key as it's first parameter.
  • Request callbacks across Esri Leaflet now can handle authentication errors by calling error.authenticate(newToken) as opposed to listening to authenticationrequired event and calling e.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 should return 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 to L.esri.DynamicMapLayer #566
  • Restored bringToBack and bringToFront to L.esri.FeatureLayer #479
  • load event on L.esri.FeatureLayer now fires at the proper time #545
  • L.esri.DynamicMapLayer and L.esri.ImageMapLayer will now automatically use POST for large requests. #574
  • L.esri.ImageMapLayer now defaults to requesting json 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

01 Jun 20:24
Compare
Choose a tag to compare
Release Candidate 8 Pre-release
Pre-release

Breaking Changes

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 with L.esri.Layers.FeatureLayer #534
  • New redraw method on L.esri.Layers.FeatureLayer for programatically redrawing features with their latest symbology. #550

Release Candidate 7

01 May 19:01
Compare
Choose a tag to compare
Release Candidate 7 Pre-release
Pre-release

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 add useCors: 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 both L.esri.Layers.FeatureLayer and L.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

05 Mar 22:04
Compare
Choose a tag to compare
Release Candidate 6 Pre-release
Pre-release

Breaking Changes

None

Changes

  • f:'json' will now be used automatically when a proxy is set for L.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() and L.esri.Tasks.Identify. #443
  • Bugfix for adding/removing certain basemap layers. #455