Beta 5
Pre-release
Pre-release
patrickarlt
released this
17 Jun 19:39
·
1443 commits
to master
since this release
Checkout the new Esri Leaflet website
Breaking Changes
Oceans
no longer contains map labels, labels have been added as another keyOceansLabels
.L.esri.FeatureLayer
no longer inherits fromL.GeoJSON
and as a result no longer hasgetBounds
,bringToBack
orbringToFront
oraddData
methods.- L.esri.Util.geojsonBounds has been removed. If you need to get the bounding box of a GeoJSON object please use Terraformer or
L.GeoJSON
. - Many other utility methods have been removed. If you were using methods in the
L.esri.Util
namespace please check that they exist. - Layers no longer fire a
metadata
event. They now have ametadata
method that can be used to get layer metadata. If you need to convert extents into L.LatLngBounds you can useL.esri.Util.extentToBounds
. L.esri.DynamicMapLayer
no longer inherits fromL.ImageOverlay
as a result thesetUrl
method no longer exists.- You can no longer pass a
cluster
object toL.esri.ClusteredFeatureLayer
, instead pass any options you want to pass toL.MarkerClusterGroup
directly toL.esri.ClusteredFeatureLayer
. - You can no long pass a string for the
layerDefs
option onL.esri.DynamicMapLayer
. Layer definitions should now be passed as an object like{'0':'STATE_NAME='Kansas' and POP2007>25000'}
- You can no longer pass a string for the
layers
option onL.esri.DynamicMapLayer
you can now only pass an array of layer ids that will be shown like[0,1,2]
. - The
createMarker
method onL.esri.ClusteredFeatureLayer
has been renamed topointToLayer
.
Changes
- Added
OceansLabels
toL.esri.BasemapLayer
. Oceans
has switched to the new Ocean basemap with out labels.L.esri.FeatureLayer
has been refactored into several classes.L.esri.FeatureGrid
andL.esri.FeatureManager
now handle loading and querying features from the service.L.esri.ClusteredFeatureLayer
andL.esri.HeatMapFeatureLayer
now inherit fromL.
L.esri.FeatureManager` so they share many new methods and options.L.esri.FeatureLayer
,L.esri.ClusteredFeatureLayer
andL.esri.HeatMapFeatureLayer
now support time enabled service viafrom
,to
,timeFields
andtimeFilterMode
options andsetTimeRange(from, to)
andgetTimeRange()
methods.L.esri.FeatureLayer
,L.esri.ClusteredFeatureLayer
andL.esri.HeatMapFeatureLayer
now supportwhere
options and have new methods forsetWhere()
andgetWhere()
to perform filtering.L.esri.FeatureLayer
now supports generalizing polygon and polyline features on the service side for performance using the newsimplifyFactor
option.- Don't throw errors when
L.esri.BasemapLayer
is added to maps without an attribution control. If you do not add attribution you must handle adding attribution your self to the map. - Remove rbush. Switch to tracking feature ids with the cell key system.
- Remove
L.esri.Util.geojsonBounds
as it was only being used to create bounds and envelopes for rbush. - add
bindPopup
method toL.esri.DynamicMapLayer
. - add
getTimeRange
andsetTimeRange
methodsL.esri.DynamicMapLayer
. - New
L.esri.Services
namespace to handle generic abstraction of interacting with ArcGIS Online and ArcGIS server services. - new
L.esri.Services.Service
base class that can be used for interacting with any service. AllL.esri.Layers
classes now usesL.esri.Services.Service
internally for their API requests. This class also abstracts authentication and proxying. - new
L.esri.Services.FeatureLayer
class for interacting with the Feature Layer API. - new
L.esri.Services.MapService
class for interacting with the Map Server API. - new
L.esri.Tasks
namespace for tasks that map to individual API methods. - new
L.esri.Tasks.Query
class for interacting with the Feature Layer query API. - new
L.esri.Tasks.Identify
class for interacting with Map Servers that support identify.