Page 1 of 1

Displaying feature Layers with Ajax Maps

Posted: Fri Mar 11, 2016 2:59 pm
by kgrudzinski
Hello,

I would like to display PTV_TruckAttributes feature layer using Ajax maps but I cannot find the information how to do it. The code browser sample uses LeafLet maps and I am unable to convert it to Ajax maps.
Thank you in advance.

K.

Re: Displaying feature Layers with Ajax Maps

Posted: Mon Mar 14, 2016 8:02 am
by AndreasJunghans
Hello,

it should work like this:

Code: Select all

var manager = map.getServerDrawnObjectManager();
manager.addPOICategory("featurelayer", "PTV_TruckAttributes");
"featurelayer" is a predefined data provider in AjaxMaps.

Regards,

Andreas

Re: Displaying feature Layers with Ajax Maps

Posted: Mon Mar 14, 2016 1:27 pm
by kgrudzinski
Yes, it works. Thank you for your help.

Regards,

K.

Re: Displaying feature Layers with Ajax Maps

Posted: Tue May 02, 2017 9:17 am
by Bernd Welter
http://127.0.0.1:50010/ajaxmaps/tutoria ... e%20Layers
Screenshot of feature layer sample displaying the TruckAttributes within AJAX maps.
Screenshot of feature layer sample displaying the TruckAttributes within AJAX maps.