Android – in the skobbler API, what unit is annotation. Setoffset()

When setting a custom image for a map marker (annotation) on a skobbler map, you can use skannotation.seoffset (skscreenpoint) to set the offset of the image so that the marker can be correctly aligned with the exact position of GPS coordinates, but the document is not clear about what the measurement unit of skscreenpoint is or how to calculate the offset

Is the offset of dip, PX, or other values

Is there a built-in way to handle different screen densities used, or do I need to calculate values based on screen density?

resolvent:

Offset (in PX). For example, to set the anchor point from the center to the bottom of the annotation offset to half the height:

annotation.setOffset(new SKScreenPoint(0 /*x*/, annotation_height/2 /*y*/));

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>