A very basic marker class. Put a (custom) marker at a given location
Copyright © 2009, Open Source Geospatial Foundation This program is dual licensed under the GNU General Public License and Simplified BSD license. http://svn.osgeo.org- /mapbender- /trunk- /mapbender- /license- /license.txt
Marker | A very basic marker class. |
Functions | |
Mapbender. Marker | |
remove | Remove the marker from the map. |
Mapbender.Marker = function ( p, map )
p | a <Mapbender.Point> to specify the location |
map | a <Mapbender.Map> on which the point is rendered |
options.img.url | [optional] a link to a custom marker image |
options.img.offset | [optional] a <Mapbender.Point> specifying the offset, default is (0,0). Usually these values are below zero because the image has to be translated to top and left |
options.img.width | [optional] use this to resize the marker image width (height must also be specified) |
options.img.height | [optional] use this to resize the marker image height (width must also be specified) |
Mapbender.Marker = function ( p, map )
Remove the marker from the map.
this.remove = function ()