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.

Set ShapeCanvas.SetAnchor to bottom

Postby Karol.Korol » Thu Jun 22, 2017 6:46 am

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

Re: Set ShapeCanvas.SetAnchor to bottom

Postby Oliver Heilig » Thu Jun 22, 2017 6:52 am

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: 127
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany

Re: Set ShapeCanvas.SetAnchor to bottom

Postby Oliver Heilig » Thu Jun 22, 2017 6:55 am

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/
User avatar
Oliver Heilig
 
Posts: 127
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany


Return to PTV xServer.NET (Admin=OH)

cron