Skip to content

Commit

Permalink
fix vector map labels opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
jperelli committed Aug 27, 2024
1 parent 1460e0f commit bb264d0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 4.0.2

Fix vector map labels

- Fix vector map labels not being rendered with 100% opacity

# 4.0.1

Fix vectorserverUrl
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "osm-static-maps",
"version": "4.0.1",
"version": "4.0.2",
"description": "Create a static image of a map with the features you want",
"author": "Julian Perelli",
"contributors": [
Expand Down
3 changes: 2 additions & 1 deletion src/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@
{{#if vectorserverUrl}}
var gl = L.mapboxGL({
accessToken: '{{ vectorserverToken }}',
style: '{{{ vectorserverUrl }}}'
style: '{{{ vectorserverUrl }}}',
fadeDuration: 0,
});
gl.addTo(map);
var backgroundLayer = gl.getMapboxMap();
Expand Down

0 comments on commit bb264d0

Please sign in to comment.