Here Satellite images and PTV Truckattribute

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.

Here Satellite images and PTV Truckattribute

Postby steiner » Fri Nov 30, 2018 10:11 am

Hello,

we test the Here Satellite Images in our program. When i only activate the Here Satellite Images, it works fine. But when i activate the Featurelayer PTV_Truckattributes too, the background of the Truckattribute lies over the Here Satellite Images (see attachment).

Is there a posibility to deactivate (transparent) the background of the Truckattribute-Layer. I tried it with the profile silksand.ini, because the name of the featurelayer-profile is silkysand-fl-truckattributes.xml, but it doesn't work.

Thank you in advance
Best regards

Jürgen
Attachments
OnlyHere.jpg
Only Here Satellite Images activated
TruckAndHere.jpg
Here Satellite Images and Featurelayer PTV_Truckattribute activated
steiner
 
Posts: 7
Joined: Tue Mar 29, 2016 10:58 am

Re: Here Satellite images and PTV Truckattribute

Postby Bernd Welter » Fri Nov 30, 2018 1:34 pm

Hello Jürgen,

which API do you use?
Our .NET control or one of the web driven frameworks such as leaflet?

Depending on the used stack I'd forward your thread to the xServer.NET forum or the Webclients forum. Anyhow: In both cases I'd expect the same expert to answer.

Best regards,
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Re: Here Satellite images and PTV Truckattribute

Postby steiner » Mon Dec 03, 2018 12:53 pm

Hello Bernd,

we use the ajaxmaps-control Version 3.5.25.0
xlocate 1.24.0.3
xmap, xroute 1.24.0.4

Best regards,
Jürgen
steiner
 
Posts: 7
Joined: Tue Mar 29, 2016 10:58 am

Re: Here Satellite images and PTV Truckattribute

Postby Bernd Welter » Wed Dec 12, 2018 8:14 am

Good morning Jürgen,

I received an explanation from one of the experts - enriched by a statement by myself:
The described behaviour is caused by a technical restriction within FeatureLayers:
FeatureLayer lines will only be drawn if streets are visible. Therefore the Ajaxmap is implemented as follows: if a FeatureLayer is active use the Ajaxmaps background profile instead of the foreground profile (which does not display streets). This causes the side effect of the non transparent layer which overlays other layers, e.g. the satellite layer.

A potential resolution for this behaviour within xMap server itself would be to remove the dependency between visible streets and feature layer lines. I already asked Product Management whether this
- is fixed
- will be fixed (and when)
- won't be fixed (because Ajaxmaps are more and more replaced by xMap2+Leaflet)

Please be patient,
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Re: Here Satellite images and PTV Truckattribute

Postby steiner » Thu Dec 13, 2018 11:00 am

Hello Bernd,

thanks for the info.

I try to deactivate the Truckattribute-Layer, when the satellite-map is "on". But I have Problems, to get the click-Event from the Toolbar.

Best regards,
Jürgen
steiner
 
Posts: 7
Joined: Tue Mar 29, 2016 10:58 am

Re: Here Satellite images and PTV Truckattribute

Postby AndreasJunghans » Thu Dec 13, 2018 4:56 pm

Hi Jürgen,

you should be able to hook into the satellite layer and check when it's enabled/disabled (which happens in the end when you click on the toolbar buttons):

Code: Select all
        map.getLayer("sat").addEventListener("changeEnabled", function(evt) {
          alert("Enabled: " + map.getLayer("sat").getEnabled());
        });


Instead of "sat", use the name of your satellite layer. Instead of the alert, turn the feature layer on/off.

Regards,

Andreas
AndreasJunghans
 
Posts: 11
Joined: Tue May 13, 2014 3:28 pm

Re: Here Satellite images and PTV Truckattribute

Postby steiner » Mon Dec 17, 2018 9:49 am

Hello Andreas,

thanks for your sample, works fine.

Regards,
Jürgen
steiner
 
Posts: 7
Joined: Tue Mar 29, 2016 10:58 am


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