CircleLayer #2931
Replies: 4 comments 2 replies
-
@mfazekas Is it bug, or i something missed ? |
Beta Was this translation helpful? Give feedback.
-
@Kovalskiii sorry I'm not sure, have you tried viewport as anchor? Have you tested in in Mapbox gl js? |
Beta Was this translation helpful? Give feedback.
-
@mfazekas Something wrong with circleTranslate style parameter, because if i do not use it, circle ramains on the coordinate, no mater i zoom in or out, but if i use circleTranslate with some offset, happens what i discribed previously. |
Beta Was this translation helpful? Give feedback.
-
@mfazekas Do i can to get points count from ShapeSource ref for every cluster ? In order to use View for showing points count text without SymbolLayer. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use CircleLayer with offeset for positioning under point count. But when i zoom out, Circle is moving left too, it is not fixed. How do i to can fix this behavior ?
<Mapbox.CircleLayer id="clusteredMarkerIconCircle" belowLayerID="clusteredMarkersIcon" filter={['has', 'point_count']} style={styles.clusteredMarkersIconCircle} />
<Mapbox.SymbolLayer id="clusteredMarkerCount" style={styles.markerCount} filter={['has', 'point_count']} />
markerCount: { textField: '{point_count}', textSize: 12, textPitchAlignment: 'map', textOffset: [2, -1.8], textColor: 'white', textAllowOverlap: true, },
markerCountCircle: { circleColor: '#8c4fef', circleRadius: 10, circleStrokeWidth: 1, circleStrokeColor: 'black', circleTranslateAnchor: 'map', circleTranslate: [24, -22] },
Beta Was this translation helpful? Give feedback.
All reactions