maaash.jp

what I create

[as3][umap]地図の左上からのピクセル数を取得

memo

[as]package {
public class MyMarker extends Marker {
public function MyMarker(){}

// get x,y from left top of map
public function getXY():Point{
var mapBounds :Bounds = core.getBoundsXY();
var myBounds :Bounds = getBoundsXY();
return new Point(myBounds.min.x-mapBounds.min.x,myBounds.min.y-mapBounds.min.y);
}
}
}[/as]

Comments