react-google-maps
Advanced tools
Comparing version
@@ -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 @@ |
"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 @@ { |
@@ -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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
79524
3.61%50
2.04%1828
4.28%