iniamudhan / react-bingmaps

Bingmaps in React.js
MIT License
26 stars 42 forks source link

The boundary prop type check seems wrong #47

Open Michael-Tajmajer-Bentley opened 3 years ago

Michael-Tajmajer-Bentley commented 3 years ago

The code is using:

location: _propTypes2.default.oneOfType([_propTypes2.default.arrayOf(_propTypes2.default.number), _propTypes2.default.arrayOf(_propTypes2.default.string)]),

However, the boundary can be an array of two item types - a string ('location name') or a Location. see: Microsoft.Maps.SpatialDataService.GeoDataAPIManager.getBoundary

Location is simple class that has: latitude | number | The latitude of the location. longitude | number | The longitude of the location.

When passing in an array that contains a Location object, the propcheck fails.