Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-google-maps

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-google-maps - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

3

bower.json

@@ -26,4 +26,5 @@ {

"github-fork-ribbon-css": "~0.1.1",
"prism": "3e9491d33bb2e8b959f0cd97ebad927285885158"
"prism": "3e9491d33bb2e8b959f0cd97ebad927285885158",
"toastr": "~2.1.0"
}
}

@@ -0,1 +1,4 @@

### 0.2.3 (2014-11-27)
### 0.2.2 (2014-11-20)

@@ -2,0 +5,0 @@

"use strict";
var React = require("react/addons"),
{ToastContainer, ToastMessage} = require("react-toastr"),

@@ -32,7 +33,18 @@ {GoogleMapsMixin, Map, Marker} = require("react-google-maps"),

var {markers} = this.state;
markers.push({
position: event.latLng,
key: Date.now(),// Add a key property for: http://fb.me/react-warning-keys
markers = React.addons.update(markers, {
$push: [
{
position: event.latLng,
key: Date.now(),// Add a key property for: http://fb.me/react-warning-keys
},
],
});
this.setState({ markers });
if (3 === markers.length) {
this.refs.toast.success(
"Right click on the marker to remove it",
"Also check the code!"
);
}
this.refs.map.panTo(event.latLng);

@@ -54,2 +66,3 @@ },

return <div style={{height: "100%"}} {...props}>
<ToastContainer ref="toast" toastMessageFactory={React.createFactory(ToastMessage.jQuery)}/>
<Map ref="map" style={{height: "100%"}} zoom={3} center={new google.maps.LatLng(-25.363882, 131.044922)} onClick={this._handle_map_click} />

@@ -56,0 +69,0 @@ {state.markers.map(toMarker, this)}

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

require("prism/themes/prism.css");
require("toastr/toastr.min.css");

@@ -140,3 +141,3 @@ var React = require("react/addons"),

getInitialState () {
var hash = location.hash || DROPDOWN_ACTIONS[0].path,
var hash = location.hash || ACTIONS[0].path,
action = ALL_ACTIONS.filter((action) => { return action.path === hash; })[0];

@@ -143,0 +144,0 @@

{
"__template__gist__": "https://gist.github.com/tomchentw/368a93bb748ad9d576f1#file-package-json",
"name": "react-google-maps",
"version": "0.2.2",
"version": "0.2.3",
"description": "React.js Google Maps integration component",

@@ -63,2 +63,3 @@ "main": "lib/index.js",

"react-prism": "^1.0.0",
"react-toastr": "^1.1.2",
"react-tools": "^0.12.0",

@@ -65,0 +66,0 @@ "sass-loader": "^0.3.0",

@@ -19,3 +19,4 @@ # react-google-maps [![Travis CI][travis-image]][travis-url] [![Quality][codeclimate-image]][codeclimate-url] [![Coverage][codeclimate-coverage-image]][codeclimate-coverage-url] [![Dependencies][gemnasium-image]][gemnasium-url] [![Gitter][gitter-image]][gitter-url]

This module requires to be bundled with [webpack][webpack]/browserify and loads `react/addons` internally. WIP: release a UMD version via bower/components.
This module requires to be bundled with [webpack][webpack]/browserify and loads `react/addons` internally.
WIP: release a UMD version via bower/components.

@@ -22,0 +23,0 @@

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