Socket
Socket
Sign inDemoInstall

@dotdev/reactive-google-map

Package Overview
Dependencies
Maintainers
8
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotdev/reactive-google-map - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

17

dist/component/google-map.d.ts

@@ -20,8 +20,15 @@ /**

markerRemove: (markerId: string) => void;
/** Uses [[GoogleMap.infowindowClose]] method before calling Google Infowindow `open()` method */
infowindowOpen: (marker: GoogleMap.Marker<any>) => void;
/** Uses Google Infowindow `close()` method */
infowindowClose: () => void;
/** Uses Google Map `panTo()` method */
mapPanTo: (position: Bounds.Position) => Promise<void>;
/** Uses Google Map `getZoom()` a no-op check and then `setZoom()` method */
mapZoomTo: (zoom: number) => Promise<void>;
/** Uses Google LatLngBounds `extend()` method before calling Google Map `fitBounds()` method */
mapFitMarkers: (markers?: any) => Promise<void>;
/** Uses Google Map `getBounds()` method */
mapGetBounds: () => Bounds.Rect;
/** Uses Google Map `getCenter()` method */
mapGetCenter: () => Bounds.Position;

@@ -92,12 +99,22 @@ mapGetZoom: () => number;

};
/** Called at end of [[GoogleMap.componentDidMount]] */
callback?: (googleMap: GoogleMap) => void;
/** Called on Google Maps event `click` */
mapOnClick?: (event: any) => void;
/** Called on Google Maps event `idle` */
mapOnFirstIdle?: (bounds: Bounds.Rect) => void;
/** Called on Google Maps event `dragstart` */
mapOnDragStart?: (bounds: Bounds.Rect) => void;
/** Called on Google Maps event `dragend` */
mapOnDragEnd?: (bounds: Bounds.Rect) => void;
/** Called on Google Maps event `bounds_changed` */
mapOnBoundsChange?: (bounds: Bounds.Rect) => void;
/** Called on Google Maps event `zoom_changed` */
mapOnZoomChange?: (bounds: Bounds.Rect) => void;
/** Called on Google Maps event `pan_changed` */
mapOnPanChange?: (bounds: Bounds.Rect) => void;
markers?: Array<GoogleMap.Marker>;
/** Called on Google Maps Marker event `click` */
markersOnClick?: (marker: GoogleMap.Marker) => void;
/** Called on Google Maps Marker event `hover` */
markersOnHover?: (marker: GoogleMap.Marker) => void;

@@ -104,0 +121,0 @@ infowindowContent?: (marker: GoogleMap.Marker) => JSX.Element;

@@ -138,2 +138,3 @@ "use strict";

};
/** Uses [[GoogleMap.infowindowClose]] method before calling Google Infowindow `open()` method */
_this.infowindowOpen = function (marker) {

@@ -151,2 +152,3 @@ _this.infowindowClose();

};
/** Uses Google Infowindow `close()` method */
_this.infowindowClose = function () {

@@ -157,2 +159,3 @@ if (_this.state.googleInfoWindow) {

};
/** Uses Google Map `panTo()` method */
_this.mapPanTo = function (position) {

@@ -167,2 +170,3 @@ return new Promise(function (resolve) {

};
/** Uses Google Map `getZoom()` a no-op check and then `setZoom()` method */
_this.mapZoomTo = function (zoom) {

@@ -182,2 +186,3 @@ return new Promise(function (resolve) {

};
/** Uses Google LatLngBounds `extend()` method before calling Google Map `fitBounds()` method */
_this.mapFitMarkers = function (markers) {

@@ -201,2 +206,3 @@ if (markers === void 0) { markers = _this.state.googleCluster.markers_; }

};
/** Uses Google Map `getBounds()` method */
_this.mapGetBounds = function () {

@@ -217,2 +223,3 @@ var bounds = _this.state.googleMap.getBounds();

};
/** Uses Google Map `getCenter()` method */
_this.mapGetCenter = function () {

@@ -219,0 +226,0 @@ var center = _this.state.googleMap.getCenter();

4

package.json
{
"name": "@dotdev/reactive-google-map",
"version": "0.1.0",
"version": "0.1.1",
"main": "dist/index.js",
"types": "dist/index.d.js",
"types": "dist/index.d.ts",
"repository": "git@gitlab.com:dotdevv/packages/reactive-google-map.git",

@@ -7,0 +7,0 @@ "author": "Brod Wilkinson <brod@dotdev.com.au>",

Sorry, the diff of this file is not supported yet

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