Skip to content

Releases: openlayers/ol-mapbox-style

v6.0.1

06 Feb 18:34
98f4df0
Compare
Choose a tag to compare
  • Fixed legacy build (olms.js)

v6.0.0

05 Feb 19:02
c435a3f
Compare
Choose a tag to compare

Breaking changes

Module paths

ol-mapbox-style now ships with transpiled modules in the dist/ folder, and sources in the src/ folder. Previously, all modules were provided in the root directory.

When upgrading, the import paths need to be checked. For example,

import stylefunction from 'ol-mapbox-style/stylefunction';

needs to be changed to

import stylefunction from 'ol-mapbox-style/dist/stylefunction';

Other changes

  • Allow mapbox:// urls for all layer types, not just vector

v5.0.2

09 Oct 14:12
74503dd
Compare
Choose a tag to compare
  • Update dependencies
  • Use ol@6.0.1
  • Do not fail when icons come from an expression
  • Only set the maxResolution on a new view, instead of the whole resolutions array

v5.0.0-beta.2

15 May 15:42
Compare
Choose a tag to compare
v5.0.0-beta.2 Pre-release
Pre-release
  • More efficient midpoint rendering
  • Only include style spec once
  • Trim the label-field string
  • Round text size to integer pixels

v5.0.0-beta.1

12 May 15:29
849c11e
Compare
Choose a tag to compare
v5.0.0-beta.1 Pre-release
Pre-release
  • Requires ol@6
  • Uses new OpenLayers z-index ordering for decluttered content
  • Support for the text-rotation-alignment property
  • Better max-angle handling in combination with text-letter-spacing

v4.3.0

11 Apr 10:35
c207882
Compare
Choose a tag to compare
  • Load Google fonts with the correct weight and style
  • Support for the text-max-angle layout property
  • More efficient color handling without cache
  • Improve text wrapping for to avoid short lines
  • Apply default resolutions (Mapbox zoom levels) to the view
  • Do not create layers for unsupported layer types
  • Support for the text-translate paint property
  • Improve performance for circle styles

v4.2.1

12 Mar 18:51
3e8b79e
Compare
Choose a tag to compare

4.2.1

  • Smarter text wrapping. We now try to distribute text more evenly across lines
  • Take letter spacing into account for calculating line breaks
  • Add support for the text-line-height layout property
  • Respect text halo for text anchor
  • Fix how we interpret the text-halo-width paint property
  • Respect tileSize for TileJSON when specified in the style doc

v4.1.0

06 Mar 18:07
469c3eb
Compare
Choose a tag to compare

v4.1.0 brings a few performance improvements and bug fixes:

  • More efficient font caching
  • Always stroke polygons to be in line with the style spec
  • Stroke polygons without drawing the outline a 2nd time
  • Do not cache transparent colors, making hiding features more efficient
  • Fix background opacity
  • Respect minzoom from TileJSON sources, avoiding underzooming which can lead to loading thousands of tiles

v4.0.0

28 Feb 14:11
fc28c68
Compare
Choose a tag to compare

Breaking changes

Zoom handling

The way how we handle zoom, minzoom and maxzoom throughout the library has been reworked:

  • When ol-mapbox-style creates an ol/View instance, it will be configured with the zoom level range that mapbox-gl uses. When updating from previous versions, you will notice that the zoom levels of the OpenLayers view will now match those in the Mapbox Style object. Previously OpenLayers zoom levels were higher by 1.
  • When a Mapbox Style object is configured with a zoom, the zoom level will now be interpreted like in mapbox-gl, i.e. you will be zoomed in one level deeper than before the update.
  • minzoom and maxzoom on a Mapbox Style layer were previously determined by the tile size of the underlying source. For raster sources with a tile size of 256, this means that minzoom and maxzoom are zoomed in one level deeper than before the update. For sources with a tile size of 512, nothing changes.
  • minzoom and maxzoom on a Mapbox Style source now influence the ol/tilegrid/TileGrid that ol-mapbox-style creates for a source in a different way. The resolutions will always match mapbox-gl default zoom levels.
  • minzoom and maxzoom on Mapbox Style layers no longer influences whether the ol/layer/Layer instance is set visible at a certain resolution. Instead, the layer's maxResolution and minResolution are set.

Other changes

  • Add support for text-letter-spacing

v2.6.1

11 Aug 22:51
Compare
Choose a tag to compare
  • Performance improvements