You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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

to
0.2.5

client/scripts/components/basics/Directions.js

@@ -0,1 +1,11 @@

### 0.2.5 (2015-03-11)
#### Features
* **Map:**
* add support for DirectionsRenderer ([0102184a](https://github.com/tomchentw/react-google-maps/commit/0102184a5dfa58392f70686b810734953e4d008c))
* add Circle support ([8a8d4d50](https://github.com/tomchentw/react-google-maps/commit/8a8d4d50563b83d98929aacff72a1dcf8708a7e7))
### 0.2.4 (2014-12-16)

@@ -2,0 +12,0 @@

5

client/scripts/components/basics/Geolocation.js
"use strict";
var React = require("react/addons"),
{GoogleMapsMixin, Map, InfoWindow} = require("react-google-maps"),
{GoogleMapsMixin, Map, InfoWindow, Circle} = require("react-google-maps"),
{geolocation} = navigator,

@@ -52,4 +52,5 @@ Geolocation;

return <div style={{height: "100%"}} {...props}>
<Map style={{height: "100%"}} zoom={6} center={center} />
<Map style={{height: "100%"}} zoom={12} center={center} />
{center ? <InfoWindow position={center} content={state.content} /> : null}
{center ? <Circle center={center} radius={2000} fillColor="red" fillOpacity={0.20} strokeColor="red" strokeOpacity={1} strokeWeight={1} /> : null}
</div>;

@@ -56,0 +57,0 @@ }

@@ -68,2 +68,13 @@ "use strict";

},
{
key: "basics__directions",
displayName: "Directions",
path: "#basics/directions",
component: {
componentClass: require("./components/basics/Directions"),
componentRaw: {
__raw: require("!raw-loader!./components/basics/Directions"),
},
},
},
false,

@@ -70,0 +81,0 @@ {

1

lib/__tests__/index-test.js

@@ -12,3 +12,4 @@ "use strict";

expect(index.Marker).toBeDefined();
expect(index.Circle).toBeDefined();
});
});

@@ -16,3 +16,3 @@ "use strict";

MockContext = React.createClass({displayName: 'MockContext',
MockContext = React.createClass({displayName: "MockContext",
mixins: [require("../mixins/GoogleMapsMixin")],

@@ -19,0 +19,0 @@

@@ -10,2 +10,6 @@ "use strict";

[
[
"Circle",
"center_changed click dblclick drag dragend dragstart mousedown mousemove mouseout mouseover mouseup radius_changed rightclick"
],
[

@@ -35,4 +39,8 @@ "Marker",

],
[
"DirectionsRenderer",
BASIC_EVENT_NAMES,
],
].forEach(function(args) {
exports[args[0]] = create_child_component.apply(null, args);
});
{
"__template__gist__": "https://gist.github.com/tomchentw/368a93bb748ad9d576f1#file-package-json",
"name": "react-google-maps",
"version": "0.2.4",
"version": "0.2.5",
"description": "React.js Google Maps integration component",

@@ -36,2 +36,4 @@ "main": "lib/index.js",

"Polygon",
"Circle",
"Directions",
"InfoWindow"

@@ -38,0 +40,0 @@ ],

@@ -12,3 +12,4 @@ "use strict";

expect(index.Marker).toBeDefined();
expect(index.Circle).toBeDefined();
});
});

@@ -10,2 +10,6 @@ "use strict";

[
[
"Circle",
"center_changed click dblclick drag dragend dragstart mousedown mousemove mouseout mouseover mouseup radius_changed rightclick"
],
[

@@ -35,4 +39,8 @@ "Marker",

],
[
"DirectionsRenderer",
BASIC_EVENT_NAMES,
],
].forEach((args) => {
exports[args[0]] = create_child_component.apply(null, args);
});

Sorry, the diff of this file is not supported yet