Can we change the label color present on map ?

Within this forum we want to offer discussions all around our .NET based Map control including all .Net-language specific questions concerning calls of the xServer-API. Attention: xServer-relevant concepts can be found in further forums such as xRoute or xTour.
Post Reply
User avatar
webdirekt
Posts: 28
Joined: Wed Jul 15, 2015 10:18 am

Can we change the label color present on map ?

Post by webdirekt »

We are using the PTV wpf map in our application.

We are displaying the icons on map as displayed in screen_shot (IconsOnMap.png).

But issue is that, icon color and label color present on map are same, so its hard to see the icon as displayed in screen_shot (IssueWithIconColorAndMapLabelColor.png).

Questions :
--------------------------------------
1. Can we change the color of label displayed in map ?
2. If changing the color of label is not possible, then what would be the possible solutions ?

Thanks.
Attachments
IconsOnMap.png
IconsOnMap.png
IssueWithIconColorAndMapLabelColor.png
IssueWithIconColorAndMapLabelColor.png
IssueWithIconColorAndMapLabelColor.png (8.19 KiB) Viewed 6482 times
User avatar
Oliver Heilig
Posts: 154
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Can we change the label color present on map ?

Post by Oliver Heilig »

Hi,

first you can try another profile with slightly other label colors. I think gravelpit has some lighter colored labels

https://ptv-logistics.github.io/xserver ... xserver-1/

If you have a custom xServer installation you also could try to modify the render.ini in the conf folder of xMap. But this is a bit awkward an not very well documented.

Without modifications of the server an option could be the application of client-side filters. In HTML there are CSS filters to modify the display of content, which can also applied to maps: http://oliverheilig.github.io/leaflet.webkit-filter/. This is very useful for data visualizations http://176.95.37.29/3d-heatmap/.

Unfortunately this is not possible for xServer.NET (= WPF). What you can do there.
* Reduce the opacity of the basemap layers.
* Insert a semi-transparent panel on-top of the basemap-layers.
* Hook into the tile-proider API and implement a blending for the xMap-Images https://softwarebydefault.com/2013/03/1 ... -blending/

OK, the last solution is a bit difficult to implement, but i can give a sample for the panel option.

Oliver
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
User avatar
Oliver Heilig
Posts: 154
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Can we change the label color present on map ?

Post by Oliver Heilig »

So here another option:

The Control has a hitten Dimmer-Gadget. But you have to Build your own Control-Layout to activate it, and it only manipulated the color of the background tiles. You can test it here (Project CustomLayout):

https://github.com/ptv-logistics/xservernet-bin

Oli
Attachments
Dimmer.png
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
Post Reply