Maplibre

Latest version: v0.2.6

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 31 of 33

0.9.0

- `glyphs` URL now normalizes without the `/v4/` prefix for `mapbox://` urls. Legacy behavior for `mapbox://fontstacks` is still maintained ([1385](https://github.com/mapbox/mapbox-gl-js/issues/1385))
- Expose `geojson-vt` options for GeoJSON sources ([1271](https://github.com/mapbox/mapbox-gl-js/issues/1271))
- bearing snaps to "North" within a tolerance of 7 degrees ([1059](https://github.com/mapbox/mapbox-gl-js/issues/1059))
- Now you can directly mutate the minzoom and maxzoom layer properties with `map.setLayerZoomRange(layerId, minzoom, maxzoom)`
- Exposed `mapboxgl.Control`, a base class used by all UI controls
- Refactored handlers to be individually included in Map options, or enable/disable them individually at runtime, e.g. `map.scrollZoom.disable()`.
- New feature: Batch operations can now be done at once, improving performance for calling multiple style functions: ([1352](https://github.com/mapbox/mapbox-gl-js/pull/1352))

js
style.batch(function (s) {
s.addLayer({ id: "first", type: "symbol", source: "streets" });
s.addLayer({ id: "second", type: "symbol", source: "streets" });
s.addLayer({ id: "third", type: "symbol", source: "terrain" });
s.setPaintProperty("first", "text-color", "black");
s.setPaintProperty("first", "text-halo-color", "white");
});


- Improved documentation
- `featuresAt` performance improvements by exposing `includeGeometry` option
- Better label placement along lines ([1283](https://github.com/mapbox/mapbox-gl-js/pull/1283))
- Improvements to round linejoins on semi-transparent lines (mapbox/mapbox-gl-native[1771](https://github.com/mapbox/mapbox-gl-js/pull/1771))
- Round zoom levels for raster tile loading ([2a2aec](https://github.com/mapbox/mapbox-gl-js/commit/2a2aec44a39e11e73bdf663258bd6d52b83775f5))
- Sourcereload cannot be called if source is not loaded ([1198](https://github.com/mapbox/mapbox-gl-js/issues/1198))
- Events bubble to the canvas container for custom overlays ([1301](https://github.com/mapbox/mapbox-gl-js/pull/1301))
- Move handlers are now bound on mousedown and touchstart events
- map.featuresAt() now works across the dateline

0.8.1

- No code changes; released only to correct a build issue in 0.8.0.

0.8.0

Breaking changes

- `map.setView(latlng, zoom, bearing)` has been removed. Use
[`map.jumpTo(options)`](https://www.mapbox.com/mapbox-gl-js/api/#map/jumpto) instead:

js
map.setView([40, -74.5], 9); // 0.7.0 or earlier
map.jumpTo({ center: [40, -74.5], zoom: 9 }); // now


- [`map.easeTo`](https://www.mapbox.com/mapbox-gl-js/api/#map/easeto) and
[`map.flyTo`](https://www.mapbox.com/mapbox-gl-js/api/#map/flyto) now accept a single
options object rather than positional parameters:

js
map.easeTo([40, -74.5], 9, null, { duration: 400 }); // 0.7.0 or earlier
map.easeTo({ center: [40, -74.5], zoom: 9, duration: 400 }); // now


- `mapboxgl.Source` is no longer exported. Use `map.addSource()` instead. See the
[GeoJSON line](https://www.mapbox.com/mapbox-gl-js/example/geojson-line/) or
[GeoJSON markers](https://www.mapbox.com/mapbox-gl-js/example/geojson-markers/)
examples.
- `mapboxgl.util.supported()` moved to [`mapboxgl.supported()`](https://www.mapbox.com/mapbox-gl-js/api/#mapboxgl/supported).

UX improvements

- Add perspective rendering ([1049](https://github.com/mapbox/mapbox-gl-js/pull/1049))
- Better and faster labelling ([1079](https://github.com/mapbox/mapbox-gl-js/pull/1079))
- Add touch interactions support on mobile devices ([949](https://github.com/mapbox/mapbox-gl-js/pull/949))
- Viewport-relative popup arrows ([1065](https://github.com/mapbox/mapbox-gl-js/pull/1065))
- Normalize mousewheel zooming speed ([1060](https://github.com/mapbox/mapbox-gl-js/pull/1060))
- Add proper handling of GeoJSON features that cross the date line ([1275](https://github.com/mapbox/mapbox-gl-js/issues/1275))
- Sort overlapping symbols in the y direction ([470](https://github.com/mapbox/mapbox-gl-js/issues/470))
- Control buttons are now on a 30 pixel grid ([1143](https://github.com/mapbox/mapbox-gl-js/issues/1143))
- Improve GeoJSON processing performance

API Improvements

- Switch to JSDoc for documentation
- Bundling with browserify is now supported
- Validate incoming map styles ([1054](https://github.com/mapbox/mapbox-gl-js/pull/1054))
- Add `Map` `setPitch` `getPitch`
- Add `Map` `dblclick` event. ([1168](https://github.com/mapbox/mapbox-gl-js/issues/1168))
- Add `Map` `getSource` ([660a8c1](https://github.com/mapbox/mapbox-gl-js/commit/660a8c1e087f63282d24a30684d686523bce36cb))
- Add `Map` `setFilter` and `getFilter` ([985](https://github.com/mapbox/mapbox-gl-js/issues/985))
- Add `Map` `failIfMajorPerformanceCaveat` option ([1082](https://github.com/mapbox/mapbox-gl-js/pull/1082))
- Add `Map` `preserveDrawingBuffer` option ([1232](https://github.com/mapbox/mapbox-gl-js/pull/1232))
- Add `VideoSource` `getVideo()` ([1162](https://github.com/mapbox/mapbox-gl-js/issues/1162))
- Support vector tiles with extents other than 4096 ([1227](https://github.com/mapbox/mapbox-gl-js/pull/1227))
- Use a DOM hierarchy that supports evented overlays ([1217](https://github.com/mapbox/mapbox-gl-js/issues/1217))
- Pass `latLng` to the event object ([1068](https://github.com/mapbox/mapbox-gl-js/pull/1068))

UX Bugfixes

- Fix rendering glitch on iOS 8 ([750](https://github.com/mapbox/mapbox-gl-js/issues/750))
- Fix line triangulation errors ([1120](https://github.com/mapbox/mapbox-gl-js/issues/1120), [#992](https://github.com/mapbox/mapbox-gl-js/issues/992))
- Support unicode range 65280-65535 ([1108](https://github.com/mapbox/mapbox-gl-js/pull/1108))
- Fix cracks between fill patterns ([972](https://github.com/mapbox/mapbox-gl-js/issues/972))
- Fix angle of icons aligned with lines ([37a498a](https://github.com/mapbox/mapbox-gl-js/commit/37a498a7aa2c37d6b94611b614b4efe134e6dd59))
- Fix dashed line bug for overscaled tiles ([1132](https://github.com/mapbox/mapbox-gl-js/issues/1132))
- Fix icon artifacts caused by sprite neighbors ([1195](https://github.com/mapbox/mapbox-gl-js/pull/1195))

API Bugfixes

- Don't fire spurious `moveend` events on mouseup ([1107](https://github.com/mapbox/mapbox-gl-js/issues/1107))
- Fix a race condition in `featuresAt` ([1220](https://github.com/mapbox/mapbox-gl-js/pull/1220))
- Fix for brittle fontstack name convention ([1070](https://github.com/mapbox/mapbox-gl-js/pull/1070))
- Fix broken `Popup` `setHTML` ([1272](https://github.com/mapbox/mapbox-gl-js/issues/1272))
- Fix an issue with cross-origin image requests ([1269](https://github.com/mapbox/mapbox-gl-js/pull/1269))

0.7.0

Breaking

- Rename `Map` `hover` event to `mousemove`.
- Change `featuresAt` to return GeoJSON objects, including geometry ([1010](https://github.com/mapbox/mapbox-gl-js/issues/1010))
- Remove `Map` `canvas` and `container` properties, add `getCanvas` and `getContainer` methods instead

UX Improvements

- Improve line label density
- Add boxzoom interaction ([1038](https://github.com/mapbox/mapbox-gl-js/issues/1038))
- Add keyboard interaction ([1034](https://github.com/mapbox/mapbox-gl-js/pull/1034))
- Faster `GeoJSONSource` `setData` without flickering ([973](https://github.com/mapbox/mapbox-gl-js/issues/973))

API Improvements

- Add Popup component ([325](https://github.com/mapbox/mapbox-gl-js/issues/325))
- Add layer API ([1022](https://github.com/mapbox/mapbox-gl-js/issues/1022))
- Add filter API ([985](https://github.com/mapbox/mapbox-gl-js/issues/985))
- More efficient filter API ([1018](https://github.com/mapbox/mapbox-gl-js/issues/1018))
- Accept plain old JS object for `addSource` ([1021](https://github.com/mapbox/mapbox-gl-js/issues/1021))
- Reparse overscaled tiles

Bugfixes

- Fix `featuresAt` for LineStrings ([1006](https://github.com/mapbox/mapbox-gl-js/issues/1006))
- Fix `tileSize` argument to `GeoJSON` worker ([987](https://github.com/mapbox/mapbox-gl-js/issues/987))
- Remove extraneous files from the npm package ([1024](https://github.com/mapbox/mapbox-gl-js/issues/1024))
- Hide "improve map" link in print ([988](https://github.com/mapbox/mapbox-gl-js/issues/988))

0.6.0

Bugfixes

- Add wrapped padding to sprite for repeating images ([972](https://github.com/mapbox/mapbox-gl-js/issues/972))
- Clear color buffers before rendering ([966](https://github.com/mapbox/mapbox-gl-js/issues/966))
- Make line-opacity work with line-image ([970](https://github.com/mapbox/mapbox-gl-js/issues/970))
- event.toElement fallback for Firefox ([932](https://github.com/mapbox/mapbox-gl-js/issues/932))
- skip duplicate vertices at ends of lines ([776](https://github.com/mapbox/mapbox-gl-js/issues/776))
- allow characters outside \w to be used in token
- Clear old tiles when new GeoJSON is loaded ([905](https://github.com/mapbox/mapbox-gl-js/issues/905))

Improvements

- Added `map.setPaintProperty()`, `map.getPaintProperty()`, `map.setLayoutProperty()`, and `map.getLayoutProperty()`.
- Switch to ESLint and more strict code rules ([957](https://github.com/mapbox/mapbox-gl-js/pull/957))
- Grab 2x raster tiles if retina ([754](https://github.com/mapbox/mapbox-gl-js/issues/754))
- Support for mapbox:// style URLs ([875](https://github.com/mapbox/mapbox-gl-js/issues/875))

Breaking

- Updated to mapbox-gl-style-spec v7.0.0 ([Changelog](https://github.com/mapbox/mapbox-gl-style-spec/blob/a2b0b561ce16015a1ef400dc870326b1b5255091/CHANGELOG.md)). Styles are
now expected to be version 7. You can use the [gl-style-migrate](https://github.com/mapbox/mapbox-gl-style-lint#migrations)
utility to update existing styles.
- HTTP_URL and HTTPS_URL config options must no longer include a `/v4` path prefix.
- `addClass`, `removeClass`, `setClasses`, `hasClass`, and `getClasses` are now methods
on Map.
- `Stylecascade` is now private, pending a public style mutation API ([755](https://github.com/mapbox/mapbox-gl-js/pull/755)).
- The format for `featuresAt` results changed. Instead of result-per-geometry-cross-layer,
each result has a `layers` array with all layers that contain the feature. This avoids
duplication of geometry and properties in the result set.

0.5.2

Bugfixes

- Remove tiles for unused sources ([863](https://github.com/mapbox/mapbox-gl-js/issues/863))
- Fix fill pattern alignment

Improvements

- Add GeoJSONSource maxzoom option ([760](https://github.com/mapbox/mapbox-gl-js/issues/760))
- Return ref layers in featuresAt ([847](https://github.com/mapbox/mapbox-gl-js/issues/847))
- Return any extra layer keys provided in the stylesheet in featuresAt
- Faster protobuf parsing

Page 31 of 33

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.