milespratt / bingmaps-react

An easy to use Bing Maps React component.
https://bingmaps-react.netlify.app
MIT License
21 stars 19 forks source link

Return the map instance reference onMapReady #35

Closed coderfin closed 2 years ago

coderfin commented 3 years ago

I was looking for a way to tap into additional features of the Bing maps. These features go beyond what is available through the component itself. In particular I am looking to use Microsoft.Maps.GeoJson.

I made one small, non-breaking change to return the map instance onMapReady. I also added an example in App.jsx but kept the code commented out that actually runs the GeoJson example.

I wrote one test that checks that the map instance is being returned onMapReady.