updateTrigger getRadius #5488
-
I'm trying to update radius for my GeoJsonLayer like so myGeoJsonLayer = new MapboxLayer({
id: 'my-gjson',
type: GeoJsonLayer,
data:out,
pointRadiusScale:1.0,
getRadius: 1700*(1/this.zoomRadius),
updateTriggers: {
getRadius:this.zoomRadius
},
getFillColor: f=> this.fillColorLayer(f.properties),
getLineColor: [255, 255, 255],
extruded:true,
pickable: true,
onClick: (info, event) => this.onclickPop(info,event),
}); But even if the zoomRadius change there is no visual change/update. I've checked the variable and it is updating when zooming. Is anything else that I should configure on top? Versions are: Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
What is your
You can also consider using pointRadiusUnits: 'pixels'. Update trigger is not needed unless |
Beta Was this translation helpful? Give feedback.
What is your
this.zoomRadius
?zoom
is logarithmic, i.e. the same meter radius looks twice as big from z to z+1.You can also consider using pointRadiusUnits: 'pixels'.
Update trigger is not needed unless
getRadius
is a function.