Page 1 of 1

XMapStyle

Posted: Thu Feb 15, 2018 8:11 am
by puissancei
Hello,

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

Xserver 1.22
Xserver .net 1.5

Thank you

Re: XMapStyle

Posted: Thu Feb 15, 2018 8:40 am
by Bernd Welter
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

Re: XMapStyle

Posted: Tue Feb 20, 2018 4:07 pm
by Oliver Heilig
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