XMapStyle

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.

XMapStyle

Postby puissancei » Thu Feb 15, 2018 8:11 am

Hello,

I don't understand why this.XMapStyle = "Gravelpit" (or other value) has no effect.

Xserver 1.22
Xserver .net 1.5

Thank you
puissancei
 
Posts: 46
Joined: Wed Jul 05, 2017 10:27 am

Re: XMapStyle

Postby Bernd Welter » Thu Feb 15, 2018 8:40 am

Hello Michel,

I forwarded your topic to Oliver, usually he answers quite fast.

As a temporary workaround I can offer this:
Change the default profile on the server which means you set the map.profile (and restart the xMap afterwards)
# The map profile contains visualization parameters such as colors etc.
# If empty the engine's default is used
#
#map.profile=
map.profile=gravelpit.ini

in the conf files

  • xmap-ajax-av.properties
  • xmap-ajax-fg.properties
  • xmap-ajax-bg.properties
  • xmap-ajax-ov.properties

At least this will show you the result of the desired style but of course this is less flexible than the feature you asked for.

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

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

Re: XMapStyle

Postby Oliver Heilig » Tue Feb 20, 2018 4:07 pm

Hi Michel,

the XMapStyle must be an appropriate style with an -fg and -bg profile. What should work out-of-the box is

default, silkysand, sandbox and gravelpit

I've tested the sample "FormsMapVB" at

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

to change the style at runtime, and it works as expected:

Code: Select all
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        FormsMap1.XMapStyle = "gravelpit"
End Sub


Can you reproduce this?
Oli
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

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


Return to PTV xServer.NET (Admin=OH)