Displaying feature Layers with Ajax Maps

This forum deals with any kind of web based client technology, whether it is the well known java script based Ajax servlet or the upcoming approaches such as Leaflet, OpenLayers and so on.
Post Reply
kgrudzinski
Posts: 12
Joined: Fri Feb 19, 2016 10:56 am

Displaying feature Layers with Ajax Maps

Post 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.
AndreasJunghans
Posts: 13
Joined: Tue May 13, 2014 3:28 pm

Re: Displaying feature Layers with Ajax Maps

Post 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
kgrudzinski
Posts: 12
Joined: Fri Feb 19, 2016 10:56 am

Re: Displaying feature Layers with Ajax Maps

Post by kgrudzinski »

Yes, it works. Thank you for your help.

Regards,

K.
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Displaying feature Layers with Ajax Maps

Post 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.
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply