Set ShapeCanvas.SetAnchor to bottom

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
Karol.Korol
Posts: 4
Joined: Tue Dec 06, 2016 1:59 pm

Set ShapeCanvas.SetAnchor to bottom

Post by Karol.Korol »

Hi,
I have a question: is there any way to set FrameworkElement anchor to CenterBottom?
In LocationAnchor we have only 5 options:

Code: Select all

public enum LocationAnchor
    {
        Center = 0,
        LeftTop = 1,
        RightTop = 2,
        RightBottom = 3,
        LeftBottom = 4
    }
But in my case none of above is suitable. I have marker similiart to google.
--
Best regards,
Karol Korol
.NET Developer
karol.korol@4ls.pl

4LS sp. z o.o.
Złotniki, ul.Obornicka 52
62-002 Suchy Las, PL
http://www.4ls.pl
User avatar
Oliver Heilig
Posts: 160
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Set ShapeCanvas.SetAnchor to bottom

Post by Oliver Heilig »

Hello Karol,

sorry there is no such option built-in. But you can set the Box of your icon accoringly. See http://devblog.ptvgroup.com/2013/08/08/ ... p-markers/
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

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

Re: Set ShapeCanvas.SetAnchor to bottom

Post by Oliver Heilig »

You can the the sources also here (ToursAndStopsMultiCanvas):

https://github.com/ptv-logistics/xservernet-bin
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

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