gis - Cesium - Placing billboards/map pins on polygons with extrudedHeight set -


i have had lot of difficulty trying map pin display consistently on polygons have heights extruded. in app, extruding heights of buildings based on arbitrary value.

later, upon selecting them, add billboard supplied custom image of map pin.

//get position of selected entity , add billboard @ same position  var mpos = pcoords.positions[0];  var selectedpin = viewer.entities.add({      name : 'selboutique',     position : mpos,     billboard : {         image : './img/marker.png',         verticalorigin : cesium.verticalorigin.bottom,         eyeoffset: new cesium.cartesian3(0, 4, 0)     }  }); 

i setting vertical origin bottom, in order keep display consistent, , have been experimenting offset in order find setting works buildings of various heights in 3d view.

are there other factors should considering when trying achieve position these pins never blocked buildings of differing heights? attempted set value of offset dynamically based on building's height. perhaps play more in meantime.

screenshots:

angled view screenshot

top view screnshot

modify pin's actual position height of building. essentially, position pin @ center of roof of building, not ground floor of it. then, turn off eyeoffset, keep verticalorigin.bottom setting.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -