new Marker(x, y, i, s)
Create a Marker object on the map.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
x |
integer | The longitude of the point where the marker will be displayed. | ||
y |
integer | The latitude of the point where the marker will be displayed. | ||
i |
string |
<optional> |
"http://erozate.iutbayonne.univ-pau.fr/saddem/Tutorials/styles/images/marker-gold.png" | URL of the marker icon(.PNG or .JPG extensions). |
s |
integer |
<optional> |
15 | The size of the marker. |
Example
var carte = new WIND.Map("mymap", {'top': 10, 'left': 20, 'width': 600, 'height': 400, 'name': "carte", 'type': 'Google Street', 'longitude': -0.9331, 'latitude': 45.9236, 'zoom': 5, 'draggable': false, 'resizable' : false,'color': '#FF9900', 'border': '#FF9900 2px solid', 'header': false, 'removable': false, 'configurable': false,'zoomable':true});
var marqueur = new WIND.Map.Marker(-1.509136,43.478266);