Релизы MapGL API | 2GIS Documentation

Релизы MapGL API

There are two ways to choose MapGL version:

  1. (recommended) major version: https://mapgl.2gis.com/api/js/v1
  2. fixed version: https://mapgl.2gis.com/api/js/v1.21.0

Major version guarantees to have stable API (breaking changes will land into the next major version). It is updated regularly with new features, bug fixes and performance improvements.

Fixed version does not have any updates. That's why it has a short support period of 3 months after a new version is released. We guarantee that the version will be working during the support period. The only reason to choose fixed version is when you need Subresource Integrity (SRI). Because of short support period you have to update the version regularly.

URL: https://mapgl.2gis.com/api/js/v1.21.0

SRI: sha512-GAvJNerUh+ol9KA53/80cc6U0FmKjQCrj+lgs5el4hyhXxXsY4tnR7z9fi/jJPAFBo+Io4ERbMK3kJHnyKxKhQ==

Release Date: 26.11.2021

  • Added the new userData field in all user object init options, for example PolygonOptions. This field will be available on the user object instance as public userData field.
  • Added the new DynamicObjectPointerEvent type, object with this type will be available in the object event listeners.
  • Added the new options minZoom and maxZoom in RasterTileSource init options.
  • Added the new option maxZoom in GeoJsonSource init options.
  • Fixed bug with GeoJsonSource objects rendering when minzoom of object style layer exceeds 15 zoom level.
  • Fixed bug with polygon stroke and 3d-buildings. Now the stroke of the polygon will always be flush with the fill of the polygon.
  • Fixed bug with Raster tile layer blurring.

URL: https://mapgl.2gis.com/api/js/v1.20.1

SRI: sha512-s5KTXMHjo1Sm+KwK1syPrTBXepoKI+gbOlS5yL5sw2/25yoBNEC1vBFuyz3Ndi9K3l0yjvD1VPvJcwNvftXU5g==

Release Date: 27.10.2021

Support End Date: 26.02.2021

  • Fixed bug when fonts were not loaded for Marker and Label objects when text contains glyphs from different font ranges.

URL: https://mapgl.2gis.com/api/js/v1.20.0

SRI: sha512-aoRcJOEtebfqz6AipxW7tpGj0/KaV7khfuXC8GnH4KLu0GXbtYkbjNvQ1Yjxd9p3GAFDVJ9NB4cbSMzfc8vsoQ==

Release Date: 27.10.2021

Support End Date: 27.01.2022

  • Added the ability to display raster tiles. See example for details.
  • Fixed bug when styleload event emits before a style load.
  • Fixed bug when fonts were not loaded for Marker and Label objects.

URL: https://mapgl.2gis.com/api/js/v1.19.1

SRI: sha512-DYBXOQk0rZiONLLZW5h1eGNrTaRzbmvwNetqZZEkc0weTUds0AMkqndrMpLeIqOKVO2EG7Jnkap1hbMHhu7Gvg==

Release Date: 15.10.2021

Support End Date: 27.01.2022

  • Added a component for sending statistics of showing commercial POI on the map.
  • Changed the format of the sessionId option to UUIDv4.

URL: https://mapgl.2gis.com/api/js/v1.19.0

SRI: sha512-i3ILrBG98MBnxfDS0zbhCDEi5O27fZwSF/N0grj25CI/mBh7/FAqCYK7X62suBfayUMgGrefD2yEqx9R1KukNQ==

Release Date: 07.10.2021

Support End Date: 15.01.2022

  • Now an unhandled promise rejection does not occur when a new style applies immediately after map initialization.
  • Now we add commercial POI to the map of clients, which use the free plan. This change affects only new clients but not current users.

URL: https://mapgl.2gis.com/api/js/v1.18.0

SRI: sha512-xmpA+KCoI7wV6za0gBZcKttZxFHlZMIdaAsO0BYi8D+XHR91jpxY133CpJ7rBWuEhV68VKdzisoPQEgMeMH8Yw==

Release Date: 01.10.2021

Support End Date: 07.01.2022

URL: https://mapgl.2gis.com/api/js/v1.17.0

SRI: sha512-Or6MZSa3uNrVaYw+SnG0pPGwzbRCYaDQ3yD4Da9D1LJ9F1HKufrczoWjiSTIC3RfCwZRydxKFv9HXoC/ewfZnw==

Release Date: 15.09.2021

Support End Date: 01.01.2022

  • Fixed bug with incorrect rendering of multipolygons in Floors.
  • Added the ability to set the rotation of the Marker icon.
  • Fixed bug with incorrect anti-aliasing of polygons at map zoom 6 and less.

URL: https://mapgl.2gis.com/api/js/v1.16.0

SRI: sha512-lyHeuthUnt2HH+aZXSsz6qGnMYrx2tB1iUWsLMmIoTYHi/pzCwkrObq6M8Mk/phxcEvhMfuPgBFed0mKMFzwHg==

Release Date: 06.09.2021

Support End Date: 15.12.2021

  • Added topCenter, bottomCenter, centerLeft and centerRight options to ControlPosition.

URL: https://mapgl.2gis.com/api/js/v1.15.2

SRI: sha512-ViTbW2+FDsBV5cT5oiAuFZ2Gkx4bFhWQRx4YrYvPBGB9cu1xPvaKCvoLJP7i2NDENNsFKJgcI0X6EJYLf822KQ==

Release Date: 25.08.2021

Support End Date: 06.12.2021

  • Fixed bug where the map center was changed with the pinch-to-zoom gesture at map maximum zoom.
  • In case of the requested style is absent on the style server, fallback to the previous/default style will be used.

URL: https://mapgl.2gis.com/api/js/v1.15.1

SRI: sha512-Km3AV8WI4Pz7dwqV0yU/WRWCkI7xgoKinnR7IMC5LvJ/AYT+pcUMUXaFsge2uYrvqXOooGa9Z/luyDzLAcS1nw==

Release Date: 17.08.2021

Support End Date: 25.11.2021

  • Fixed a bug when polygons became non-interactive after creating them in large quantities.
  • Fixed a bug with gaps in traffic lines.
  • Fixed a bug when labels from one GeoJsonSource remove labels from another forever.

URL: https://mapgl.2gis.com/api/js/v1.15.0

SRI: sha512-x1k9eH56m3nXWqLToQCysWKGsWFmeSFDmeLK7ggzGApuqkUlrntp0J/r/TZWp4zSDGK3db4v5sUiIFxC9AXokw==

Release Date: 29.07.2021

Support End Date: 17.11.2021

  • Added a new class GeoJsonSource to show GeoJSON data on the map.

URL: https://mapgl.2gis.com/api/js/v1.14.1

SRI: sha512-dRBf5t1rtyCqNsUYodb+XUIgnH1xQW3gQSMjsfCsAzxSH9CJ9Rq8zBJYloNb3qQwUPGG6/MxThFr7f9NuQMZUA==

Release Date: 01.07.2021

Support End Date: 29.10.2021

  • Fixed bug, when red lines appearing on map with empty or erroneous style.
  • Fixed incorrect drawing of traffic lines.

URL: https://mapgl.2gis.com/api/js/v1.14.0

SRI: sha512-JJaXd91lTYiDaLszyuaGrny42Q4/W17sxCkD1bFtBc006/kD9TA7/LNR0RBdqOVlq4FNJj1YxBlQSlTRHuoBTw==

Release Date: 23.06.2021

Support End Date: 01.10.2021

URL: https://mapgl.2gis.com/api/js/v1.13.0

SRI: sha512-AD8uQ7zAaFGEGedY7Vy4QRssgHYt5MFtSKgXU+zFMVhWLTJcnuf5vr9NC9f/tn1IWGMIxDDy4J6D8watGG++oQ==

Release Date: 21.05.2021

Support End Date: 23.09.2021

Release Date: 16.04.2021

Support End Date: 21.08.2021

  • Fixed bug with traffic styles in editor.

Release Date: 09.04.2021

Support End Date: 16.07.2021

  • Internal changes and bug fixes that do not affect the operation of the map engine.

Release Date: 05.04.2021

Support End Date: 09.07.2021

Release Date: 29.03.2021

Support End Date: 05.07.2021

  • getContainer method now returns HTML Element provided by user.

Release Date: 25.03.2021

Support End Date: 29.06.2021

  • Added the getContainer method.
  • Added more descriptions for types and interfaces in methods used to work with floors.

Release Date: 22.03.2021

Support End Date: 25.06.2021

  • Internal changes and bug fixes that do not affect the operation of the map engine.
  • Fixed a bug with the map container selection on long tap on iOS.

Release Date: 12.03.2021

Support End Date: 22.06.2021

  • Internal changes that do not affect the operation of the map engine

Release Date: 03.03.2021

Support End Date: 12.06.2021

  • You can pass InterpolateExpression to width, width2 and width3 params in PolylineOptions
  • Fixed a bug with road render in some rare cases.

Release Date: 01.03.2021

Support End Date: 03.06.2021

Release Date: 24.02.2021

Support End Date: 01.06.2021

Release Date: 02.02.2021

Support End Date: 24.05.2021

  • Fixed a bug in the fitBounds method, when rotation has negative value or rotation has not be considered.

Release Date: 29.01.2021

Support End Date: 02.05.2021

  • Added a new method fitBounds to pan and zoom the map to contain its visible area within the specified geographical bounds.
  • Added a new method isSupported which checks whether the current browser supports MapGL.
  • Added a new method notSupportedReason which checks whether the current browser supports MapGL and which returns the reason in a string.

Release Date: 24.12.2020

Support End Date: 29.04.2021

  • Fixed a bug where the inertia of the map doesn't work if a styleZoom was set

Release Date: 22.12.2020

Support End Date: 24.03.2021

  • Fixed the map center changing behavior by setting different zoom types. If a styleZoom option was set, the map style zoom doesn't change while map dragging. Conversely, if a zoom option was set — the map zoom doesn't change, but the style zoom does.

Release Date: 18.12.2020

Support End Date: 22.03.2021

  • Added a new map option styleZoom. This option allows you to set the same zoom that is used in the style settings. The styleZoom and zoom options set the same map scale but in different projections.
  • Added a new method setLanguage to change the desired map language. The map will try to set the language if it possible.
  • Added a new method getLanguage, which returns the desired map language.
  • Fixed a bug with touch events that leads to the exception with undefined.

Release Date: 10.12.2020

Support End Date: 18.03.2021

  • Added a new method setStyleById to change the map style by its ID. 🎉
  • Added a new map option defaultBackgroundColor. This option allows you to set the default background color while style is loading.
  • Added a new map option style that takes a style ID. The map will be initialized with the specified style.

Release Date: 1.12.2020

Support End Date: 10.03.2021

  • Internal changes that do not affect the operation of the map engine

Release Date: 09.11.2020

Support End Date: 1.03.2021

  • Internal changes that do not affect the operation of the map engine

Release Date: 22.10.2020

Support End Date: 09.02.2021

  • Added a new method setStyleZoom. It sets the map style zoom.
  • Added a new map option maxBounds. It restricts map to specified bounding box.

Release Date: 07.10.2020

Support End Date: 22.01.2021

  • Added stable fix for missing rerender (IOS 14 and other)

Release Date: 22.09.2020

Support End Date: 07.01.2021

  • Added patch for missing rerender on IOS 14

Release Date: 18.09.2020

Support End Date: 22.12.2020

Release Date: 26.08.2020

Support End Date: 18.12.2020

  • Added the new relativeAnchor and offset options to the LabelOptions. Use these options for the Label placement instead an anchor option, which is deprecated now.
  • Supported the new label placement options in the Marker object.

Release Date: 04.08.2020

Support End Date: 26.11.2020

Release Date: 21.07.2020

Support End Date: 04.11.2020

There are no any release notes. This is the first release with a fixed version.

  • New option disableZoomOnScroll was added to the Map options. This option disable zoom on scroll, when a mouse cursor is above the map container.
  • New method setSelectedObjects was added to the Map. This method allows to select any object on the map.