react-google-maps
Advanced tools
Comparing version 4.10.3 to 4.11.0
@@ -0,1 +1,11 @@ | ||
<a name="4.11.0"></a> | ||
# [4.11.0](https://github.com/tomchentw/react-google-maps/compare/v4.10.3...v4.11.0) (2016-05-29) | ||
### Features | ||
* **OverlayView:** allow rendered as children of MarkerCluster ([435961a](https://github.com/tomchentw/react-google-maps/commit/435961a)), closes [#187](https://github.com/tomchentw/react-google-maps/issues/187) | ||
<a name="4.10.3"></a> | ||
@@ -2,0 +12,0 @@ ## [4.10.3](https://github.com/tomchentw/react-google-maps/compare/v4.10.2...v4.10.3) (2016-05-29) |
@@ -217,2 +217,17 @@ "use strict"; | ||
// If we're inside a MarkerClusterer, allow ourselves to be clustered | ||
if (overlayViewProps.anchorHolderRef) { | ||
if ("MarkerClusterer" === overlayViewProps.anchorHolderRef.getAnchorType()) { | ||
overlayView.getDraggable = function getDraggable() { | ||
return !!overlayViewProps.draggable; | ||
}; | ||
overlayView.getPosition = function getPosition() { | ||
return new google.maps.LatLng(this.position); | ||
}; | ||
overlayViewProps.anchorHolderRef.getAnchor().addMarker(overlayView); | ||
} | ||
} | ||
return overlayView; | ||
@@ -219,0 +234,0 @@ } |
{ | ||
"name": "react-google-maps", | ||
"version": "4.10.3", | ||
"version": "4.11.0", | ||
"description": "React.js Google Maps integration component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -172,2 +172,17 @@ import { | ||
// If we're inside a MarkerClusterer, allow ourselves to be clustered | ||
if (overlayViewProps.anchorHolderRef) { | ||
if (`MarkerClusterer` === overlayViewProps.anchorHolderRef.getAnchorType()) { | ||
overlayView.getDraggable = function getDraggable() { | ||
return !!overlayViewProps.draggable; | ||
}; | ||
overlayView.getPosition = function getPosition() { | ||
return new google.maps.LatLng(this.position); | ||
}; | ||
overlayViewProps.anchorHolderRef.getAnchor().addMarker(overlayView); | ||
} | ||
} | ||
return overlayView; | ||
@@ -174,0 +189,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
378556
7177