From the location of a marker on a map I conclude that the latituge/longitude position is at the bottom tip of the marker. (see image)
If i change now the imageasset the a new png then that position does not change, leading to an unwanted situation.
My ques
tion: Can the latitude/longitude position be moved to the center of the png?
Try
It can be repositioned when using an Android device.
Marker
The Marker
component indicates points on a Map
, such as buildings or other points of interest. Marker
s can be customized in many ways, such as using custom images from the app’s assets or by changing the Marker
FillColor
. Marker
s can also be created dynamically by calling the Map
’s CreateMarker
method and configured using the “Any Component” blocks.
Properties
AnchorHorizontal Sets or gets the horizontal offset of the Marker
center relative to its image. Valid values are: 1
(Left), 2
(Right), or 3
(Center).
AnchorVertical Sets or gets the vertical offset of the Marker
center relative to its image. Valid values are: 1
(Top), 2
(Center), or 3
(Bottom).
Have you tried using both AnchorHorizontal AND AnchorVertical?
Are you using a custom Marker png file other than the default Marker?
It appears you are using a custom Marker that may not be properly scaled or perhaps are you using the Marker on an ios device?
Many features of Maps do not yet work properly on an ios device.
Thank you TIMAI2 and SteveJG,
AnchorVertical to Center did what i needed.
Problem solved.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.