Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geojson loading data #188

Open
dkedar opened this issue Nov 20, 2018 · 1 comment
Open

Geojson loading data #188

dkedar opened this issue Nov 20, 2018 · 1 comment

Comments

@dkedar
Copy link

dkedar commented Nov 20, 2018

I want to display locations from Geojson or Json external file on the map with mplace plugin.
something like Google Maps Platform, for example please check below code, How to?

map.data.loadGeoJson(
     'https://storage.googleapis.com/mapsdevsite/json/google.json');
}

Thanks

@lcherone
Copy link

lcherone commented Feb 12, 2023

For example, if you did: const map = new Maplace(...)

The map instance, i.e new window.google.maps.Map is placed in map.oMap, so you would do:

map.oMap.data.loadGeoJson('https://storage.googleapis.com/mapsdevsite/json/google.json')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants