new PlaceMap(app, engine, options)
- Description:
PlaceMap controller
Parameters:
Name | Type | Description |
---|---|---|
app |
Simplicite.Ajax | Ajax service |
engine |
Simplicite.UI.Engine | Main contoller |
options |
Object | Options |
Methods
addCircle(params)
- Description:
Add a circle on map
Parameters:
Name | Type | Description |
---|---|---|
params |
Object | Parameters |
addMarker(params)
- Description:
Add a marker on map
Parameters:
Name | Type | Description |
---|---|---|
params |
Object | Parameters |
addPolyline(params)
- Description:
Add a polygon on map
Parameters:
Name | Type | Description |
---|---|---|
params |
Object | Parameters |
addRectangle(params)
- Description:
Add a rectangle on map
Parameters:
Name | Type | Description |
---|---|---|
params |
Object | Parameters |
clearMap()
- Description:
Clear all markers and shapes
display()
- Description:
Display a map with a marker
initGeocoder()
- Description:
Init the Geocoder
initMap(ctn)
- Description:
Init a map in the container
Parameters:
Name | Type | Description |
---|---|---|
ctn |
jQuery | string | Container |
load(cbk)
- Description:
Load the Javascript API
Parameters:
Name | Type | Description |
---|---|---|
cbk |
function | Onload callback |
localize(address, cbk, notify)
- Description:
Localize an address
Parameters:
Name | Type | Description |
---|---|---|
address |
Full textual address |
|
cbk |
Callback |
|
notify |
Optional message handler |
localizeAndDisplay(ctn, address, cbk, notify)
- Description:
Localize an address and display the map on marker
Parameters:
Name | Type | Description |
---|---|---|
ctn |
Container |
|
address |
Full textual address |
|
cbk |
Callback |
|
notify |
Optional message handler |
removeMarkers()
- Description:
Remove all markers
removeShapes()
- Description:
Remove all shapes
staticMap(p, cbk)
- Description:
Return a static map as img
Parameters:
Name | Type | Description |
---|---|---|
p |
Object | Options |
cbk |
function | Optional onload callback |