Access to map.data.addGeoJson
See original GitHub issueHello,
I’am updating react-google-maps, and i dont understand how can I access to the GMAP addGeoJson
method.
I use the handler to get map
in refs, but I do not find data.addGeoJson
in map
object.
An idea?
Thx.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Data | Maps JavaScript API - Google Developers
When using v=beta , can be accessed by calling const {Data} = await google.map. ... GeoJSON using your choice of AJAX library, and...
Read more >How to add GeoJSON(MultiLineString) layer to a Google Map
A layer for displaying geospatial data. Points, line-strings and polygons can be displayed. Every Map has a Data object by default, so most...
Read more >Add a polygon to a map using a GeoJSON source
This example adds a polygon to a map, then colors it blue and makes it slightly transparent. Upon loading, the map uses addSource...
Read more >Create a data source - Azure Maps - Microsoft Learn
Learn about the data sources that the Azure Maps Web SDK uses: GeoJSON ... //Add geoJSON object to data source. source.add(geoJsonData); ...
Read more >Google Maps API Adds GeoJSON Support: Here is an example
Although other mapping APIs, namely Leaflet, have supported GeoJSON data for quite some time, easy access to GeoJSON in Google Maps will ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Instead of the pull request as #725, I have referenced the code in #454 and below is a working solution for addGeoJson in the Google API :
The onMapWillMount method is called inside the GoogleMap tag
To retrieve the google map component, call props.currentMap
No available API at this moment.