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.
Post Reply
steiner
Posts: 15
Joined: Tue Mar 29, 2016 10:58 am
Contact:

Here Satellite images and PTV Truckattribute

Post by steiner »

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
Only Here Satellite Images activated
Only Here Satellite Images activated
Here Satellite Images and Featurelayer PTV_Truckattribute activated
Here Satellite Images and Featurelayer PTV_Truckattribute activated
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Here Satellite images and PTV Truckattribute

Post by Bernd Welter »

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
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:
steiner
Posts: 15
Joined: Tue Mar 29, 2016 10:58 am
Contact:

Re: Here Satellite images and PTV Truckattribute

Post by steiner »

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
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Here Satellite images and PTV Truckattribute

Post by Bernd Welter »

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
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:
steiner
Posts: 15
Joined: Tue Mar 29, 2016 10:58 am
Contact:

Re: Here Satellite images and PTV Truckattribute

Post by steiner »

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

Re: Here Satellite images and PTV Truckattribute

Post by AndreasJunghans »

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
steiner
Posts: 15
Joined: Tue Mar 29, 2016 10:58 am
Contact:

Re: Here Satellite images and PTV Truckattribute

Post by steiner »

Hello Andreas,

thanks for your sample, works fine.

Regards,
Jürgen
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Here Satellite images and PTV Truckattribute

Post by Bernd Welter »

Just learned that HERE has changed the Authentication Method.
Therefore please consider this article: ttps://xserver.ptvgroup.com/forum/viewtopic.php?f=56&t=1636
Good moment to switch to PTV Developer Maps API!
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