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.

Displaying feature Layers with Ajax Maps

Postby kgrudzinski » Fri Mar 11, 2016 2:59 pm

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

Re: Displaying feature Layers with Ajax Maps

Postby AndreasJunghans » Mon Mar 14, 2016 8:02 am

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

Re: Displaying feature Layers with Ajax Maps

Postby kgrudzinski » Mon Mar 14, 2016 1:27 pm

Yes, it works. Thank you for your help.

Regards,

K.
kgrudzinski
 
Posts: 12
Joined: Fri Feb 19, 2016 10:56 am

Re: Displaying feature Layers with Ajax Maps

Postby Bernd Welter » Tue May 02, 2017 9:17 am

http://127.0.0.1:50010/ajaxmaps/tutoria ... e%20Layers

Ajax TruckAttributes.PNG
Screenshot of feature layer sample displaying the TruckAttributes within AJAX maps.
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1623
Joined: Mon Apr 14, 2014 10:28 am


Return to PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)

cron