Skip to content

Commit bb264d0

Browse files
committed
fix vector map labels opacity
1 parent 1460e0f commit bb264d0

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 4.0.2
2+
3+
Fix vector map labels
4+
5+
- Fix vector map labels not being rendered with 100% opacity
6+
17
# 4.0.1
28

39
Fix vectorserverUrl

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "osm-static-maps",
3-
"version": "4.0.1",
3+
"version": "4.0.2",
44
"description": "Create a static image of a map with the features you want",
55
"author": "Julian Perelli",
66
"contributors": [

src/template.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@
144144
{{#if vectorserverUrl}}
145145
var gl = L.mapboxGL({
146146
accessToken: '{{ vectorserverToken }}',
147-
style: '{{{ vectorserverUrl }}}'
147+
style: '{{{ vectorserverUrl }}}',
148+
fadeDuration: 0,
148149
});
149150
gl.addTo(map);
150151
var backgroundLayer = gl.getMapboxMap();

0 commit comments

Comments
 (0)