Hello all!
I have markers that are placed by default in the center of a feature.
This is how I get that point:
MultipolygonShape polygonShape =
new
MultipolygonShape(feature.GetWellKnownBinary());
returnValue = polygonShape.GetCenterPoint();
I also have a TextStyle created for the feature’s names.
TextStyle aux = TextStyles.CreateSimpleTextStyle(
“ermtregionname”
,
“Arial”
, 9, DrawingFontStyles.Regular,
GeoColor.StandardColors.Black,
0, -12);
aux.BestPlacement =
true
;
So, the problem is that those two are overlapping. My guess is that the TextStyle uses the same method to calculate the position. The text and the marker are contained by different Overlays.
I think the way to go is using the ExtentHelper to move my marker a little bit… but I’m not sure how to accomplish that.
Thanks in advance!
Juan.