-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow to load 3dtiles tileset via viewer parameters #8055
Comments
Something i thought about, so far in georchestra's geonetwork 4 and in datahub we use an url template such as Because in the 3dtiles case, we will want to open the dataset in the cesium view, eg So my question is, when using the "generic" handler such as |
Recently we included an improvement in MapStore to persist the visualization mode 2D or 3D in the saved map and contextually we removed the map libraries (leaflet, openlayers or cesium) from the pathname. The current pathname
Yes, we are thinking to add a check in the |
Oh great news, that will simplify things since by essence some maps only make sense in 3d mode, others might make only sense in 2d mode and some in both.. so it's a good idea to add that to the map itself.
perfect then, thanks ! |
I've slightly tested #9021 here with http://localhost:8081/#/viewer/config?actions=[{%22type%22:%22CATALOG:ADD_LAYERS_FROM_CATALOGS%22,%22layers%22:[%22Domerat%22],%22sources%22:[{%22type%22:%223dtiles%22,%22url%22:%22https://3d.craig.fr/datasets/Domerat_bati3d/3dtiles/tileset.json%22,%22title%22:%22Domerat%22}]}] and here's what i see:
same thing, also working fine with http://3d.craig.fr/datasets/Aurillac/bati_avec_tecture/tileset.json (plain http), but this time as expected the dataset is on the ground with the default ellipsoid terrain. also tested the shorter form without specifying the layer title but the dataset url twice (eg http://localhost:8081/#/viewer/config?actions=[{"type":"CATALOG:ADD_LAYERS_FROM_CATALOGS","layers":["http://3d.craig.fr/datasets/Aurillac/3dtiles/tileset.json"],"sources":[{"type":"3dtiles","url":"http://3d.craig.fr/datasets/Aurillac/3dtiles/tileset.json"}]}]) - a layer named '3dtiles' is added to the map, and i can correctly zoom on it. i've also tested directly loading cesium using http://localhost:8081/#/viewer/cesium/config?actions=[{"type":"CATALOG:ADD_LAYERS_FROM_CATALOGS","layers":["Domerat"],"sources":[{"type":"3dtiles","url":"https://3d.craig.fr/datasets/Domerat_bati3d/3dtiles/tileset.json","title":"Domerat"}]}] and with this url (i guess now unsupported?):
so globally, this seems to work fine in the general case, great stuff. Thinking out loud, the behaviour isnt 100% consistent with the |
It could a possibility of course but not as part of this issue because it is not strictly related and we risk to add more logic than expected. We should open a new issue for this to keep track for the future. |
Co-authored-by: Lorenzo Natali <lorenzo.natali@geosolutionsgroup.com>
…ters (geosolutions-it#9021) Co-authored-by: Lorenzo Natali <lorenzo.natali@geosolutionsgroup.com>
Description
right now as documented on
https://mapstore.readthedocs.io/en/latest/developer-guide/map-query-parameters/#add-layers only wms/wmts/wfs is supported, would be nice to be able to load 3dtiles tilesets the same way, eg
?actions=[{"type":"CATALOG:ADD_LAYERS_FROM_CATALOGS","layers":["XXX?"],"sources":[{"type":"3dtiles","url":"https://url/to/tileset.json"}]}]
The text was updated successfully, but these errors were encountered: