Page 1 of 1

display truck attributes layer with leaflet

Posted: Fri May 10, 2019 4:24 pm
by loic.caouen
Is there a simple a way to display truck attributes layer with leaflet on xMap 1 ?

With xMap 2 we just need this:

Code: Select all

	tileUrl = "http://xserver-2:50000/services/rest/XMap/tile/{z}/{x}/{y}?storedProfile=default&layers=PTV_TruckAttributes";
	new L.TileLayer(tileUrl, { minZoom: 1, maxZoom: 19 }).addTo(map);
Can we do the same with xMap 1?

Re: display truck attributes layer with leaflet

Posted: Mon May 13, 2019 6:42 am
by Joost
You need to configure the Featurelayer via snippet and add that to the layer requests. Have a look at https://svc-eu-n-test.cloud.ptvgroup.co ... flet/split for a working sample.

Re: display truck attributes layer with leaflet

Posted: Tue May 14, 2019 3:50 pm
by loic.caouen
Thanks for your help Joost.
I've found in the sample what I needed !