New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@inlog/inlog-maps

Package Overview
Dependencies
Maintainers
3
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inlog/inlog-maps

A library for using generic layer maps

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
increased by41.67%
Maintainers
3
Weekly downloads
 
Created
Source

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
NameTypeDescription
dataobjectGeojson 
optionsinlogMaps.GeoJsonOptions 
eventClickanyis a function callback on click 
Returns
  • Void
Map.drawMarker(type, options, eventClick)

Use this function to draw markers in the currentMap

Parameters
NameTypeDescription
typestring 
optionsinlogMaps.MarkerOptions 
eventClickanyis a function callback on click 
Returns
  • Void
Map.fitBoundsMarkers(type)

Use this function to fit bounds in the markers with the especified type

Parameters
NameTypeDescription
typestring 
Returns
  • Void
Map.drawCircleMarker(type, options, eventClick)

Use this function to draw circle markers in the currentMap

Parameters
NameTypeDescription
typestring 
optionsinlogMaps.CircleMarkerOptions 
eventClickanyis a function callback on click 
Returns
  • Void
Map.toggleMarkers(show, type, condition)

Use this function to show/hide markers from a specific type

Parameters
NameTypeDescription
showboolean 
typestring 
conditionanytoogle markers with the condition 
Returns
  • Void
Map.alterMarkerOptions(type, options, condition)

Use this function to alter marker style

Parameters
NameTypeDescription
typestring 
optionsinlogMaps.MarkerAlterOptions 
conditionanyalter markers with the condition 
Returns
  • Void
Map.removeMarkers(type, condition)

Remove markers from the map and from internal list

Parameters
NameTypeDescription
typestring 
conditionanyremove markers with the condition 
Returns
  • Void
Map.drawPolygon(type, options, eventClick)

Use this function to draw polygons

Parameters
NameTypeDescription
typestring 
optionsinlogMaps.PolygonOptions 
eventClickany 
Returns
  • Void
Map.fitBoundsPolygon(type, condition)

Use this function to fit bounds of a polygon

Parameters
NameTypeDescription
typestring 
conditionanyfit polygon bounds with the condition 
Returns
  • Void
Map.togglePolygons(show, type, condition)

Use this function to show/hide polygon from a especific type

Parameters
NameTypeDescription
showboolean 
typestring 
conditionanytoggle polygon with the condition 
Returns
  • Void
Map.alterPolygonOptions(type, options, condition)

Use this function to alter polygons options/style

Parameters
NameTypeDescription
typestring 
optionsinlogMaps.PolygonAlterOptions 
conditionanyalter polygon with the condition 
Returns
  • Void
Map.drawPolyline(type, options, eventClick)

Use this function to draw polylines on the currentMap

Parameters
NameTypeDescription
typestring 
optionsinlogMaps.PolylineOptions 
eventClickany 
Returns
  • Void
Map.drawPolylineWithNavigation(type, options)

Use this function to draw polylines with navigation on the currentMap

Parameters
NameTypeDescription
typestring 
optionsinlogMaps.PolylineOptions 
Returns
  • Void
Map.addPolylinePath(type, position)

Use this function to add more paths to a polyline

Parameters
NameTypeDescription
typestring 
positionArray.<number> 
Returns
  • Void
Map.removePolylineHighlight()

Use this function to clear polyline selected from the currentMap

Returns
  • Void
Map.togglePolyline(show, type, condition)

Use this function to toggle polylines

Parameters
NameTypeDescription
showboolean 
typestring 
conditionanytoggle polyline with the condition 
Returns
  • Void
Map.removePolyline(type, condition)

Use this function to remove polylines

Parameters
NameTypeDescription
typestring 
conditionanyremove polyline with the condition 
Returns
  • Void
Map.alterPolylineOptions(type, options, condition)

Use this function to alter polyline options

Parameters
NameTypeDescription
typestring 
optionsinlogMaps.PolylineOptions 
conditionanyalter polyline with the condition 
Returns
  • Void
Map.drawCircle(type, options, eventClick)

Use this function to draw circles on the currentMap

Parameters
NameTypeDescription
typestring 
optionsinlogMaps.CircleOptions 
eventClickany 
Returns
  • Void
Map.toggleCircles(show, type, condition)

Use this function to show/hide circles from a especific type

Parameters
NameTypeDescription
showboolean 
typestring 
conditionanytoggle circles with the condition 
Returns
  • Void
Map.alterCircleOptions(type, options, condition)

Use this function to alter circle options

Parameters
NameTypeDescription
typestring 
optionsinlogMaps.CircleAlterOptions 
conditionanyalter circle with the condition 
Returns
  • Void
Map.drawPopup(type, options)

Use this function to draw popups on the currentMap

Parameters
NameTypeDescription
typestring 
optionsinlogMaps.PopupOptions 
Returns
  • Void
Map.alterPopup(type, options)

Use this function to alter popups

Parameters
NameTypeDescription
typestring 
optionsinlogMaps.PopupOptions 
Returns
  • Void
Map.addClickMap(eventClick)

Use this function to add event clicks on the currentMap

Parameters
NameTypeDescription
eventClickany 
Returns
  • Void
Map.removeClickMap()

Use this function to remove event clicks from the currentMap

Returns
  • Void

Documentation generated with doxdox.

Keywords

FAQs

Package last updated on 21 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc