A WebGL interactive maps library
Published Node.js and peer-dependency requirements.
No declared requirement changes.
21 Jul 2017 · Newest first
Last checked
Checking sources…
Showing 1 of 1 releases. Full release notes.
Signals highlight changes worth reviewing. They cannot determine whether your application is affected.
GeolocateControl breaking changes #4479
watchPosition has been replaced with trackUserLocationjumpTo (not animated) to fitBounds (animated). An effect of this is the map pitch is no longer reset, although the bearing is still reset to 0.maxZoom can be controlled via the new fitBoundsOptions option (defaults to 15).Markers at their center by default #4751 @andrewharveysignificantRotateThreshold for the TouchZoomRotateHandler #4971, @dagjomarGeolocateControl #4479, @andrewharvey
showUserLocation to draw a "dot" as a Marker on the map at the user's locationtrackUserLocation. When in active lock the camera will update to follow the user location, however if the camera is changed by the API or UI then the control will enter the background state where it won't update the camera to follow the user location.fitBoundsOptions to control the camera operationtrackuserlocationstart and trackuserlocationend eventsLngLat.toBounds method to extend a point location by a given radius to a LngLatBounds objectpackage.json #4809, @tomscholzline-width #4773text-anchor #4997text-justify #5000maxTileCacheSize option #4778, @jczaplewicon-pitch-alignment and circle-pitch-alignment properties #4869 FullscreenControl on unsupported devices #4838, @stepankuzminloadData to the same worker every time #4877load #4870LogoControl logic to update correctly, and hide the <div> instead of removing it from the DOM when it is not needed #4842GeoJSONSource#serialize to include all optionsGlyphSource#getSimpleGlyphs#4992setStyle to reload raster tiles #4852Map#queryRenderedFeatures would error when returning no results #4993Map#areTilesLoaded would always be false on sourcedata events for reloading tiles #4987package.json #4819 @tomscholzMap#getMaxBounds method #4890, @andrewharvey @lamuertepeludalocalIdeographFontFamily) to use TinySDF to avoid loading expensive CJK glyphs #4895config.API_URL includes a path prepend it to the request URL #4995supercluster version to expose cluster_id property on clustered sources #5002