Franson.Map.IMap(div)
- Parameters:
-
div <string|div>if passsed a div the div must have an.idproperty
Interface specification for the abstract Map interface.
Reference stub for creating a map interface compatible with GpsGate Server applications (v2.1.1+) Instantiated via the Custom Scripts plugin mechanism.
The interface is largely inspired by Google Maps since it is a proven and well documented technology for web-maps, thus
most tile based web maps should be possible to fit to it.
ref: Google Maps API Reference
Franson.Map.IMap(div)
div
<string|div>
if passsed a div the div must have an .id property
private
void
__connect__()
void
protected
void
_restoreState(state)
state
<object>
void
protected
object
_saveState()
object
void
addLayer(layer)
layer
<Franson.Map.ILayer>
void
void
checkResize()
void
void
clearLayers()
void
void
closeInfoWindow()
void
void
destroy()
void
Franson.Geo.Bounds
getBounds()
Franson.Geo.Bounds
integer
getBoundsZoomLevel(bounds)
bounds
<Franson.Geo.Bounds>
integer
LatLng
getCenter()
LatLng
DOM
getContainer()
DOM
Franson.Map.ILayer
getLayer(id)
id
<string>
Franson.Map.ILayer
Franson.Map.ILayer[]
getLayers()
Franson.Map.ILayer[]
NativeMapType
getNativeMap()
NativeMapType
Franson.Map.IProjection
getProjection()
Franson.Map.IProjection
Franson.Map.MapSurface
getSurface()
Franson.Map.MapSurface
void
openInfoWindow(latlng, node, [options])
latlng
<LatLng>
node
<DOM>
content DOM node
[options]
<object>
void
void
panBy(distance)
distance
<(w,h)>
.w and .h params default to 0, i.e you can supply only .w for example
void
void
panDirection(dx, dy)
dx
<integer>
dy
<integer>
void
void
removeLayer(layer)
layer
<Franson.Map.ILayer|string>
a layer object or a string (layer-id)
void
void
setCenter(center, [zoom])
center
<LatLng>
[zoom]
<number>
void
void
setZoom(zoom)
zoom
<integer>
void
onremovelayer
(
layer
)
layer
<Franson.Map.ILayer>
the removed layer