react-cartographer
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -39,3 +39,4 @@ 'use strict'; | ||
width: props.width, | ||
zoom: props.zoom | ||
zoom: props.zoom, | ||
withoutMarker: props.withoutMarker | ||
}); | ||
@@ -85,3 +86,4 @@ var locationText = void 0; | ||
zoom: _propTypes2.default.number, | ||
useBackgroundImageStyle: _propTypes2.default.bool | ||
useBackgroundImageStyle: _propTypes2.default.bool, | ||
withoutMarker: _propTypes2.default.bool | ||
}; | ||
@@ -95,3 +97,4 @@ | ||
zoom: 10, | ||
useBackgroundImageStyle: false | ||
useBackgroundImageStyle: false, | ||
withoutMarker: false | ||
}; |
@@ -72,3 +72,3 @@ /** | ||
key: params.providerKey, | ||
pushpin: pushpin | ||
pushpin: params.withoutMarker ? undefined : pushpin | ||
}, _.identity) | ||
@@ -75,0 +75,0 @@ }); |
@@ -68,3 +68,3 @@ /** | ||
mapType: _config.google.mapType, | ||
markers: [_config.google.markerColor, _config.google.markerLabel, location].join('|'), | ||
markers: params.withoutMarker ? undefined : [_config.google.markerColor, _config.google.markerLabel, location].join('|'), | ||
zoom: params.zoom, | ||
@@ -71,0 +71,0 @@ key: params.providerKey |
{ | ||
"name": "react-cartographer", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "Generic React component for displaying static maps using Yahoo, Google or Bing as a map provider.", | ||
@@ -43,3 +43,3 @@ "author": "Edmond Chow <echow23@yahoo-inc.com>", | ||
"grunt-webpack": "3", | ||
"http-server": "0.10", | ||
"http-server": "~0.11.0", | ||
"istanbul": "0.4", | ||
@@ -49,7 +49,7 @@ "jenkins-mocha": "^6.0.0", | ||
"json-loader": "0", | ||
"mocha": "^4.0.0", | ||
"mocha": "^5.0.0", | ||
"nodemon": "1", | ||
"react-dom": "^16.1.0", | ||
"webpack": "^3.1.0", | ||
"webpack-dev-server": "2" | ||
"webpack": "^4.0.0", | ||
"webpack-dev-server": "^3.0.0" | ||
}, | ||
@@ -56,0 +56,0 @@ "precommit": [ |
@@ -138,2 +138,16 @@ <img src="https://avatars2.githubusercontent.com/u/6412038?v=3&s=200" alt="react logo" title="react" align="right" width="64" height="64" /> | ||
``` | ||
Example of using a Google Map without marker | ||
```js | ||
<MapComponent | ||
provider='google' | ||
providerKey='{your app key}' | ||
mapId='map' | ||
latitude={51.477222} | ||
longitude={0} | ||
zoom={15} | ||
height={270} | ||
width={580} | ||
withoutMarker | ||
/> | ||
``` | ||
@@ -140,0 +154,0 @@ |
@@ -24,3 +24,4 @@ /** | ||
width: props.width, | ||
zoom: props.zoom | ||
zoom: props.zoom, | ||
withoutMarker: props.withoutMarker | ||
}); | ||
@@ -73,3 +74,4 @@ let locationText; | ||
zoom: PropTypes.number, | ||
useBackgroundImageStyle: PropTypes.bool | ||
useBackgroundImageStyle: PropTypes.bool, | ||
withoutMarker: PropTypes.bool | ||
}; | ||
@@ -83,3 +85,4 @@ | ||
zoom: 10, | ||
useBackgroundImageStyle: false | ||
useBackgroundImageStyle: false, | ||
withoutMarker: false | ||
}; |
@@ -55,3 +55,3 @@ /** | ||
key: params.providerKey, | ||
pushpin: pushpin | ||
pushpin: params.withoutMarker ? undefined : pushpin | ||
}, _.identity) | ||
@@ -58,0 +58,0 @@ }); |
@@ -51,3 +51,3 @@ /** | ||
mapType: config.mapType, | ||
markers: [config.markerColor, config.markerLabel, location].join('|'), | ||
markers: params.withoutMarker ? undefined : [config.markerColor, config.markerLabel, location].join('|'), | ||
zoom: params.zoom, | ||
@@ -54,0 +54,0 @@ key: params.providerKey |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
988
195
45985
25
1