Skip to content

Commit

Permalink
Hide svg temaki icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalenkevich committed May 23, 2024
1 parent fb2de52 commit f7cba3b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/demo/map_styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,20 @@ export const MapTilerVectorTileStyles: DataTileStyles = {
maxzoom: 18,
minzoom: 12,
},
poiIconSvg: {
source: 'dataSource',
sourceLayer: 'poi_label',
styleLayerName: 'poiIconSvg',
show: false,
zIndex: 3,
feature: {
type: MapFeatureType.glyph,
name: ['$concat', 'temaki-', ['$get', 'properties.subclass']],
atlas: 'temakiSvg',
},
maxzoom: 18,
minzoom: 12,
},
poiLabel: {
source: 'dataSource',
sourceLayer: 'poi',
Expand Down Expand Up @@ -611,7 +625,7 @@ export const MapboxVectorTileStyles: DataTileStyles = {
source: 'dataSource',
sourceLayer: 'poi_label',
styleLayerName: 'poiIconSvg',
show: true,
show: false,
zIndex: 3,
feature: {
type: MapFeatureType.glyph,
Expand Down

0 comments on commit f7cba3b

Please sign in to comment.