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

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -