I am currently marking a users location with:
var userLocationMarker = new Cesium.CircleGeometry({
center: ellipsoid.cartographicToCartesian(Cesium.Cartographic.fromDegrees(longitude, latitude)),
radius: 25000.0,
vertexFormat: Cesium.PerInstanceColorAppearance.VERTEX_FORMAT
});
var redCircleInstance = new Cesium.GeometryInstance({
geometry: userLocationMarker,
attributes: {
color: Cesium.ColorGeometryInstanceAttribute.fromColor(new Cesium.Color(Math.random() * 2, Math.random() * 2, Math.random() * 2, 1))
}
});
As of now, if I zoom in, the userLocationMarker maintains it's size. What I want it to do is shrink as I zoom in.
Is there a more appropriate way to tackle this?