Skip to content

The boundary prop type check seems wrong #47

@Michael-Tajmajer-Bentley

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions