Page 1 of 1
Here Satellite images and PTV Truckattribute
Posted: Fri Nov 30, 2018 10:11 am
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
Re: Here Satellite images and PTV Truckattribute
Posted: Fri Nov 30, 2018 1:34 pm
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
Re: Here Satellite images and PTV Truckattribute
Posted: Mon Dec 03, 2018 12:53 pm
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
Re: Here Satellite images and PTV Truckattribute
Posted: Wed Dec 12, 2018 8:14 am
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
Re: Here Satellite images and PTV Truckattribute
Posted: Thu Dec 13, 2018 11:00 am
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
Re: Here Satellite images and PTV Truckattribute
Posted: Thu Dec 13, 2018 4:56 pm
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
Re: Here Satellite images and PTV Truckattribute
Posted: Mon Dec 17, 2018 9:49 am
by steiner
Hello Andreas,
thanks for your sample, works fine.
Regards,
Jürgen
Re: Here Satellite images and PTV Truckattribute
Posted: Wed Oct 05, 2022 2:28 pm
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!