3D Cesium

59 views
Skip to first unread message
Assigned to stefan...@geosolutionsgroup.com by lorenzo...@geosolutionsgroup.com

Reda Mrini Derhmira

unread,
Oct 16, 2022, 9:07:43 PM10/16/22
to mapstore-users
Hi guys, how can I add layers like  this one 
Clipboard01.jpg

Reda Mrini Derhmira

unread,
Oct 16, 2022, 9:10:37 PM10/16/22
to mapstore-users
and I already got my DEM and I visualise it in Cesium
tif4.png
tif5.png

Stefano Bovio

unread,
Oct 17, 2022, 3:54:04 AM10/17/22
to mapstor...@googlegroups.com
Hi,
here you can find the available configuration to add a cesium terrain in MapStore
https://docs.mapstore.geosolutionsgroup.com/en/latest/developer-guide/maps-configuration/#terrain

You will need to update the localConfig.json file including one of the following configuration in the Map plugin:

provider cesium is using the CesiumTerrainProvider class

{
    "name": "Map",
    "cfg": {
        "additionalLayers": [
            {
                "type": "terrain",
                "provider": "cesium",
                "url": "https://terrain-provider-service-url/?key={apiKey}",
                "visibility": true,
                "options": {

                }
            }
        ]
    }
}


or the wms provider is using a properly configured wms layer from a geoserver

{
    "name": "Map",
    "cfg": {
        "additionalLayers": [
            {
                "type": "terrain",
                "provider": "wms",
                "url": "https://host-sample/geoserver/wms",
                "name": "workspace:layername",
                "littleEndian": false,
                "visibility": true,
                "crs": "CRS:84",
                "version": "1.3.0"
            }
        ]
    }
}

Hope this helps,

Stefano


On Mon, Oct 17, 2022 at 3:07 AM Reda Mrini Derhmira <redam...@gmail.com> wrote:
Hi guys, how can I add layers like  this one 

--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstore-users/c32f733d-ba68-463d-9f2a-ef6ccf8ffbe9n%40googlegroups.com.


--

Regards,

Stefano Bovio

==

GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

==

Stefano Bovio

Frontend Software Engineer


GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  333 8128928


https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

-------------------------------------------------------


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

Reda Mrini Derhmira

unread,
Oct 19, 2022, 11:46:11 AM10/19/22
to mapstore-users
hello 
{
    "name": "Map",
    "cfg": {
       "additionalLayers": [
            {
                "type": "terrain",
                "provider": "wms",
                "url": "https://http://localhost:8082/geoserver/wms",
                "name": "apprentissage:zone17",
                "littleEndian": false,
                "visibility": true,
                "crs": "EPSG:4326"
      }
               
        ]
    }
}
this is what I should add in the localConfig.json but I don't know where exaclty
localConfig.json
Message has been deleted

Reda Mrini Derhmira

unread,
Oct 23, 2022, 6:08:58 PM10/23/22
to mapstore-users
hello 
is there a problem

localConfig.json
Reply all
Reply to author
Forward
0 new messages