inlog-maps 2.0.0
A library for using generic layer maps
src/map.js
Map.loadGEOJson(data, options, eventClick)
Use this function to add GEOJSON to the currentMap
Parameters
Name | Type | Description | |
---|
data | object | Geojson | |
options | inlogMaps.GeoJsonOptions | | |
eventClick | any | is a function callback on click | |
Returns
Map.drawMarker(type, options, eventClick)
Use this function to draw markers in the currentMap
Parameters
Name | Type | Description | |
---|
type | string | | |
options | inlogMaps.MarkerOptions | | |
eventClick | any | is a function callback on click | |
Returns
Map.fitBoundsMarkers(type)
Use this function to fit bounds in the markers with the especified type
Parameters
Name | Type | Description | |
---|
type | string | | |
Returns
Map.drawCircleMarker(type, options, eventClick)
Use this function to draw circle markers in the currentMap
Parameters
Name | Type | Description | |
---|
type | string | | |
options | inlogMaps.CircleMarkerOptions | | |
eventClick | any | is a function callback on click | |
Returns
Use this function to show/hide markers from a specific type
Parameters
Name | Type | Description | |
---|
show | boolean | | |
type | string | | |
condition | any | toogle markers with the condition | |
Returns
Map.alterMarkerOptions(type, options, condition)
Use this function to alter marker style
Parameters
Name | Type | Description | |
---|
type | string | | |
options | inlogMaps.MarkerAlterOptions | | |
condition | any | alter markers with the condition | |
Returns
Map.removeMarkers(type, condition)
Remove markers from the map and from internal list
Parameters
Name | Type | Description | |
---|
type | string | | |
condition | any | remove markers with the condition | |
Returns
Map.drawPolygon(type, options, eventClick)
Use this function to draw polygons
Parameters
Name | Type | Description | |
---|
type | string | | |
options | inlogMaps.PolygonOptions | | |
eventClick | any | | |
Returns
Map.fitBoundsPolygon(type, condition)
Use this function to fit bounds of a polygon
Parameters
Name | Type | Description | |
---|
type | string | | |
condition | any | fit polygon bounds with the condition | |
Returns
Map.togglePolygons(show, type, condition)
Use this function to show/hide polygon from a especific type
Parameters
Name | Type | Description | |
---|
show | boolean | | |
type | string | | |
condition | any | toggle polygon with the condition | |
Returns
Map.alterPolygonOptions(type, options, condition)
Use this function to alter polygons options/style
Parameters
Name | Type | Description | |
---|
type | string | | |
options | inlogMaps.PolygonAlterOptions | | |
condition | any | alter polygon with the condition | |
Returns
Map.drawPolyline(type, options, eventClick)
Use this function to draw polylines on the currentMap
Parameters
Name | Type | Description | |
---|
type | string | | |
options | inlogMaps.PolylineOptions | | |
eventClick | any | | |
Returns
Map.drawPolylineWithNavigation(type, options)
Use this function to draw polylines with navigation on the currentMap
Parameters
Name | Type | Description | |
---|
type | string | | |
options | inlogMaps.PolylineOptions | | |
Returns
Map.addPolylinePath(type, position)
Use this function to add more paths to a polyline
Parameters
Name | Type | Description | |
---|
type | string | | |
position | Array.<number> | | |
Returns
Map.removePolylineHighlight()
Use this function to clear polyline selected from the currentMap
Returns
Map.togglePolyline(show, type, condition)
Use this function to toggle polylines
Parameters
Name | Type | Description | |
---|
show | boolean | | |
type | string | | |
condition | any | toggle polyline with the condition | |
Returns
Map.removePolyline(type, condition)
Use this function to remove polylines
Parameters
Name | Type | Description | |
---|
type | string | | |
condition | any | remove polyline with the condition | |
Returns
Map.alterPolylineOptions(type, options, condition)
Use this function to alter polyline options
Parameters
Name | Type | Description | |
---|
type | string | | |
options | inlogMaps.PolylineOptions | | |
condition | any | alter polyline with the condition | |
Returns
Map.drawCircle(type, options, eventClick)
Use this function to draw circles on the currentMap
Parameters
Name | Type | Description | |
---|
type | string | | |
options | inlogMaps.CircleOptions | | |
eventClick | any | | |
Returns
Map.toggleCircles(show, type, condition)
Use this function to show/hide circles from a especific type
Parameters
Name | Type | Description | |
---|
show | boolean | | |
type | string | | |
condition | any | toggle circles with the condition | |
Returns
Map.alterCircleOptions(type, options, condition)
Use this function to alter circle options
Parameters
Name | Type | Description | |
---|
type | string | | |
options | inlogMaps.CircleAlterOptions | | |
condition | any | alter circle with the condition | |
Returns
Use this function to draw popups on the currentMap
Parameters
Name | Type | Description | |
---|
type | string | | |
options | inlogMaps.PopupOptions | | |
Returns
Use this function to alter popups
Parameters
Name | Type | Description | |
---|
type | string | | |
options | inlogMaps.PopupOptions | | |
Returns
Map.addClickMap(eventClick)
Use this function to add event clicks on the currentMap
Parameters
Name | Type | Description | |
---|
eventClick | any | | |
Returns
Map.removeClickMap()
Use this function to remove event clicks from the currentMap
Returns
Documentation generated with doxdox.