cismet / carma

carma monorepo: cids architecture for reactive mapping applications
0 stars 1 forks source link

encode 3D URL compatible to 2D lat-lon-zoom #210

Open mxfh opened 1 month ago

mxfh commented 1 month ago

Describe Camera position relative in Heading/Pitch/Range to Cartographic Point with Height/Elevation.

Determine if Zoom@latitude can be encoded as range-Equivalent at known FOV of camera

first iteration would go for

lat,lng,zoom,heading,pitch,range.

where 2d only updates lat lng zoom

and 3d lat lng heading,pitch range

question if is loading a 2D url should retain last heading and pitch from 3d or drop it once in 2d. and if a 3d url should retain last zoom

otherwise one could use the presence of the zoom parameter if the view is 2d or 3d.

mxfh commented 1 month ago

Partial Urls should not be recovered for now. 3d mode should have an explicit tag/params, not be determined by presence of other parameters. url encoder/decoder should be moved from cesium to common lib