google maps api 3 - the anchor by default -
by default, anchor of icon created markerimage located along center point of bottom of icon. how indicate want use default value ?
var icon= new g.markerimage('images/house.png', new g.size(32, 32), new g.point(0,0), new g.point(16, 32));
or
var icon= new g.markerimage('images/house.png', new g.size(32, 32), new g.point(0,0), );
the anchor point optional can choose specify in constructor or not. you. either way should work.
Comments
Post a Comment