@@ -101,15 +101,15 @@ export function useMapIcons() {
101101 'maxzoom' : 24 ,
102102 'layout' : {
103103 'icon-image' : iconExpression ,
104- 'icon-size' : 0.057 ,
104+ 'icon-size' : 0.07125 ,
105105 'icon-allow-overlap' : false ,
106106 'icon-anchor' : 'bottom' ,
107107 'icon-offset' : [ 0 , 0 ] ,
108108 'symbol-sort-key' : [ '-' , 0 , [ 'coalesce' , [ 'get' , 'rating' ] , 0 ] ] ,
109109 'text-field' : [ 'get' , 'name' ] ,
110110 'text-font' : [ 'Mulish Regular' ] ,
111111 'text-anchor' : 'left' ,
112- 'text-offset' : [ 0.9 , - 0.9 ] ,
112+ 'text-offset' : [ 1.1 , - 1.1 ] ,
113113 'text-justify' : 'left' ,
114114 'text-size' : 14 ,
115115 'text-optional' : true , // Hide text if it collides, but keep the icon
@@ -136,7 +136,7 @@ export function useMapIcons() {
136136 'maxzoom' : 24 ,
137137 'layout' : {
138138 'icon-image' : 'active' ,
139- 'icon-size' : 0.0855 ,
139+ 'icon-size' : 0.107 ,
140140 'icon-allow-overlap' : true , // Always visible
141141 'icon-ignore-placement' : false , // Block other icons from rendering here
142142 'icon-anchor' : 'bottom' ,
@@ -145,7 +145,7 @@ export function useMapIcons() {
145145 'text-field' : [ 'get' , 'name' ] ,
146146 'text-font' : [ 'Mulish Regular' ] ,
147147 'text-anchor' : 'left' ,
148- 'text-offset' : [ 0.9 , - 0.9 ] ,
148+ 'text-offset' : [ 1.1 , - 1.1 ] ,
149149 'text-justify' : 'left' ,
150150 'text-size' : 16 ,
151151 'text-allow-overlap' : true , // Always show text
@@ -288,8 +288,8 @@ export function useMapIcons() {
288288 const iconSizeExpression = [
289289 'case' ,
290290 [ 'in' , [ 'get' , 'uuid' ] , [ 'literal' , uuids ] ] ,
291- 0.0855 ,
292- 0.057 ,
291+ 0.107 ,
292+ 0.07125 ,
293293 ]
294294 map . setLayoutProperty ( 'location-icon' , 'icon-size' , iconSizeExpression as any )
295295
@@ -324,7 +324,7 @@ export function useMapIcons() {
324324 else {
325325 // Reset to normal styling
326326 map . setLayoutProperty ( 'location-icon' , 'icon-image' , buildIconExpression ( ) as any )
327- map . setLayoutProperty ( 'location-icon' , 'icon-size' , 0.057 )
327+ map . setLayoutProperty ( 'location-icon' , 'icon-size' , 0.07125 )
328328 map . setLayoutProperty ( 'location-icon' , 'symbol-sort-key' , [ '-' , 0 , [ 'coalesce' , [ 'get' , 'rating' ] , 0 ] ] as any )
329329 map . setLayoutProperty ( 'location-icon' , 'text-size' , 14 )
330330 map . setPaintProperty ( 'location-icon' , 'text-color' , buildColorExpression ( ) as any )
0 commit comments