Class IMapper
IMapper class
--This class could be considered a concrete implementation class
Defined in: locationbox_3d_main.js.
Constructor Attributes | Constructor Name and Description |
---|---|
IMapper()
Create a new ILayer instance.
|
Method Attributes | Method Name and Description |
---|---|
addCustomMarker(id, lat, lon, imgUrl)
Add custom marker
|
|
flyToCoordinate(lat, lon)
Move to given coordinate
|
|
initMap(lat, lon, wdth, hght, divid)
Initialize the IMapper object
|
|
Remove custom marker
|
Method Detail
addCustomMarker(id, lat, lon, imgUrl)
Add custom marker
- Parameters:
- {int} id
- Id of custom marker
- {double} lat
- The latitude value of center coordinate of the map
- {double} lon
- The longitude value of center coordinate of the map
- {string} imgUrl
- The Url of custom marker's image
flyToCoordinate(lat, lon)
Move to given coordinate
- Parameters:
- {double} lat
- The latitude value of center coordinate of the map
- {double} lon
- The longitude value of center coordinate of the map
initMap(lat, lon, wdth, hght, divid)
Initialize the IMapper object
- Parameters:
- {double} lat
- The latitude value of center coordinate of the map
- {double} lon
- The longitude value of center coordinate of the map
- {int} wdth
- The width of div
- {int} hght
- The height of div
- {String} divid
- The div to set the map. If it is null or not specified then it is set as "map".
removeCustomMarker(id)
Remove custom marker
- Parameters:
- {int} id
- Id of custom marker