-
Notifications
You must be signed in to change notification settings - Fork 72
location search: zoom to : tilt in 45° #2713
Comments
Maybe some results from searh should have a pitch and rotate properties to position the camera well. |
Important for Thursday release. |
Something like:
Should be added here: https://github.com/geoadmin/mf-geoadmin3/blob/master/src/components/map/MapService.js#L1546-L1555 |
And ol3-cesium version must be updated to have openlayers/ol-cesium#284 |
Flying to a point or rectangle with a pitch is not supported by Cesium. Would it be possible to add this height to the search data (attrs) we receive from the server? An alternative would be to request the terrain tile containing the destination point and extract the height from it. But it would add a request and a delay. @davidoesch, what should we do? |
There is also the simple alternative of rotating around the destination point once the flyTo (nadir) is complete. Hard to say how it will feel for the user. |
-attributing this to search data: this will slow down the search or increase the index @gjn worth for the beta?
so solution: why not fly directly to destination and start rotating around the point until north orientation is reached? |
We have a height service which is pretty fast (one of our fastest services) which could be used to determine height for a given service. See http://api3.geo.admin.ch/services/sdiservices.html#height. It's already used in mf-geoadmin3 in the contextpopup (https://github.com/geoadmin/mf-geoadmin3/blob/master/src/components/contextpopup/ContextPopupDirective.js#L131) Note that this height service returns EPSG:21781 heights, not EPSG:4326 geoid heights though. To put height in sphinx index is possible. The question is where to get the height information from. Maybe the original data is containing the height. If not, we need to calculate it (either once during the data import or everytime during the index creation). I suspect this to be quite heavy process. @ltclm Does the original location data contain height information? |
the swisssearch results have different data sources:
as you can see, the data basis concerning 3d is incomplete. |
See also CesiumGS/cesium#2501 |
When choosing a result in swisssearch, eg creux du van
the camera position is looking into nadir
https://mf-geoadmin3.dev.bgdi.ch/?dev3d=true&topic=geol&lang=fr&bgLayer=ch.swisstopo.pixelkarte-farbe&lon=6.73053&lat=46.93696&elevation=2509&heading=360.000&pitch=-90.000&catalogNodes=1786,1787
expecting result when in 3D: pitch 45° to north
https://mf-geoadmin3.dev.bgdi.ch/?dev3d=true&topic=geol&lang=fr&bgLayer=ch.swisstopo.pixelkarte-farbe&lon=6.73067&lat=46.92857&elevation=2151&heading=359.347&pitch=-45.000&catalogNodes=1786,1787
The text was updated successfully, but these errors were encountered: