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

@capacitor/google-maps

Package Overview
Dependencies
Maintainers
7
Versions
430
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor/google-maps

Google Maps support for Capacitor

  • 1.0.0-alpha.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.5K
increased by8.18%
Maintainers
7
Weekly downloads
 
Created
Source

@capacitor/google-maps

Google maps on Capacitor

Install

npm install @capacitor/google-maps
npx cap sync

API

create(...)

create(args: CreateMapArgs) => Promise<void>
ParamType
argsCreateMapArgs

addMarker(...)

addMarker(args: AddMarkerArgs) => Promise<{ id: string; }>
ParamType
argsAddMarkerArgs

Returns: Promise<{ id: string; }>


addMarkers(...)

addMarkers(args: AddMarkersArgs) => Promise<{ ids: string[]; }>
ParamType
argsAddMarkersArgs

Returns: Promise<{ ids: string[]; }>


removeMarker(...)

removeMarker(args: RemoveMarkerArgs) => Promise<void>
ParamType
argsRemoveMarkerArgs

removeMarkers(...)

removeMarkers(args: RemoveMarkersArgs) => Promise<void>
ParamType
argsRemoveMarkersArgs

enableClustering(...)

enableClustering(args: { id: string; }) => Promise<void>
ParamType
args{ id: string; }

disableClustering(...)

disableClustering(args: { id: string; }) => Promise<void>
ParamType
args{ id: string; }

destroy(...)

destroy(args: DestroyMapArgs) => Promise<void>
ParamType
argsDestroyMapArgs

setCamera(...)

setCamera(args: CameraArgs) => Promise<void>
ParamType
argsCameraArgs

setMapType(...)

setMapType(args: MapTypeArgs) => Promise<void>
ParamType
argsMapTypeArgs

enableIndoorMaps(...)

enableIndoorMaps(args: IndoorMapArgs) => Promise<void>
ParamType
argsIndoorMapArgs

enableTrafficLayer(...)

enableTrafficLayer(args: TrafficLayerArgs) => Promise<void>
ParamType
argsTrafficLayerArgs

enableAccessibilityElements(...)

enableAccessibilityElements(args: AccElementsArgs) => Promise<void>
ParamType
argsAccElementsArgs

enableCurrentLocation(...)

enableCurrentLocation(args: CurrentLocArgs) => Promise<void>
ParamType
argsCurrentLocArgs

setPadding(...)

setPadding(args: PaddingArgs) => Promise<void>
ParamType
argsPaddingArgs

onScroll(...)

onScroll(args: OnScrollArgs) => Promise<void>
ParamType
argsOnScrollArgs

addListener('onCameraIdle', ...)

addListener(eventName: 'onCameraIdle', listenerFunc: MapListenerCallback) => PluginListenerHandle
ParamType
eventName'onCameraIdle'
listenerFuncMapListenerCallback

Returns: PluginListenerHandle


addListener('onCameraMoveStarted', ...)

addListener(eventName: 'onCameraMoveStarted', listenerFunc: MapListenerCallback) => PluginListenerHandle
ParamType
eventName'onCameraMoveStarted'
listenerFuncMapListenerCallback

Returns: PluginListenerHandle


addListener('onClusterClick', ...)

addListener(eventName: 'onClusterClick', listenerFunc: MapListenerCallback) => PluginListenerHandle
ParamType
eventName'onClusterClick'
listenerFuncMapListenerCallback

Returns: PluginListenerHandle


addListener('onClusterInfoWindowClick', ...)

addListener(eventName: 'onClusterInfoWindowClick', listenerFunc: MapListenerCallback) => PluginListenerHandle
ParamType
eventName'onClusterInfoWindowClick'
listenerFuncMapListenerCallback

Returns: PluginListenerHandle


addListener('onInfoWindowClick', ...)

addListener(eventName: 'onInfoWindowClick', listenerFunc: MapListenerCallback) => PluginListenerHandle
ParamType
eventName'onInfoWindowClick'
listenerFuncMapListenerCallback

Returns: PluginListenerHandle


addListener('onMapReady', ...)

addListener(eventName: 'onMapReady', listenerFunc: MapListenerCallback) => PluginListenerHandle
ParamType
eventName'onMapReady'
listenerFuncMapListenerCallback

Returns: PluginListenerHandle


addListener('onMapClick', ...)

addListener(eventName: 'onMapClick', listenerFunc: MapListenerCallback) => PluginListenerHandle
ParamType
eventName'onMapClick'
listenerFuncMapListenerCallback

Returns: PluginListenerHandle


addListener('onMarkerClick', ...)

addListener(eventName: 'onMarkerClick', listenerFunc: MapListenerCallback) => PluginListenerHandle
ParamType
eventName'onMarkerClick'
listenerFuncMapListenerCallback

Returns: PluginListenerHandle


addListener('onMyLocationButtonClick', ...)

addListener(eventName: 'onMyLocationButtonClick', listenerFunc: MapListenerCallback) => PluginListenerHandle
ParamType
eventName'onMyLocationButtonClick'
listenerFuncMapListenerCallback

Returns: PluginListenerHandle


addListener('onMyLocationClick', ...)

addListener(eventName: 'onMyLocationClick', listenerFunc: MapListenerCallback) => PluginListenerHandle
ParamType
eventName'onMyLocationClick'
listenerFuncMapListenerCallback

Returns: PluginListenerHandle


Interfaces

CreateMapArgs
PropType
idstring
apiKeystring
configGoogleMapConfig
elementHTMLElement
frame{ x: number; y: number; width: number; height: number; }
forceCreateboolean
GoogleMapConfig
PropType
widthnumber
heightnumber
xnumber
ynumber
centerLatLng
zoomnumber
androidLiteModeboolean
LatLng
PropType
latnumber
lngnumber
AddMarkerArgs
PropType
idstring
markerMarker
Marker
PropType
coordinateLatLng
opacitynumber
titlestring
snippetstring
isFlatboolean
iconUrlstring
draggableboolean
AddMarkersArgs
PropType
idstring
markersMarker[]
RemoveMarkerArgs
PropType
idstring
markerIdstring
RemoveMarkersArgs
PropType
idstring
markerIdsstring[]
DestroyMapArgs
PropType
idstring
CameraArgs
PropType
idstring
configCameraConfig
CameraConfig
PropType
coordinateLatLng
zoomnumber
bearingnumber
anglenumber
animateboolean
animationDurationnumber
MapTypeArgs
PropType
idstring
mapTypeMapType
IndoorMapArgs
PropType
idstring
enabledboolean
TrafficLayerArgs
PropType
idstring
enabledboolean
AccElementsArgs
PropType
idstring
enabledboolean
CurrentLocArgs
PropType
idstring
enabledboolean
PaddingArgs
PropType
idstring
paddingMapPadding
MapPadding
PropType
topnumber
leftnumber
rightnumber
bottomnumber
OnScrollArgs
PropType
idstring
frame{ x: number; y: number; width: number; height: number; }
mapBounds{ x: number; y: number; width: number; height: number; }
PluginListenerHandle
PropType
remove() => Promise<void>

Type Aliases

MapListenerCallback

(data: any): void

Enums

MapType
MembersValue
Normal'Normal'
Hybrid'Hybrid'
Satellite'Satellite'
Terrain'Terrain'
None'None'

Keywords

FAQs

Package last updated on 06 Apr 2022

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