Skip to main content
39 votes

Getting polygon boundaries of City in JSON from Google Maps API?

To get polygon boundaries just add format=json to your request! So instead of https://nominatim.openstreetmap.org/search.php?q=Warsaw+Poland&polygon_geojson=1 use https://nominatim....
Kamil Latosinski's user avatar
25 votes

Openlayers v4.0.1 support Google Maps Javascript API?

I can use Google Maps in OpenLayers 4.2 like this under my WMS layer and its perfectly fitted with EPSG:3857 projection: new ol.layer.Tile({source: new ol.source.TileImage({ url: 'http://khm{0-3}....
Ömür Bilgili's user avatar
20 votes

Using Google Maps static tiles with Leaflet?

I know this is too late to answer this question. But I want to share my knowledge in this question. For the static purpose you can freely add the google map tiles inside your leaflet. For the static ...
Tek Kshetri's user avatar
10 votes

Getting polygon boundaries of City in JSON from Google Maps API?

I've found a work around solution for this problem. Go to www.gadm.org/country Choose your country and select Google Earth .kmz file format Choose the level you need (level 3 is the deepest with all ...
Charles St-Yves's user avatar
10 votes

Openlayers v4.0.1 support Google Maps Javascript API?

It's possible to us ol.source.Tile to access to every google maps. For everybody needs it, this is the basic code to create every available google maps layer to add to a map developed in Openlayers 4: ...
Alessandro Battistini's user avatar
10 votes

Converting PBF vector tiles to GeoJSON?

Your data seems to be Mapbox Vector Tiles in pbf format. GDAL 2.3 can process this data: https://www.gdal.org/drv_mvt.html Note that MB tiles and OSM pbf files are something completely different.
AndreJ's user avatar
  • 76.7k
8 votes
Accepted

UI CHARTS ( for indices time series in python API of Google earth Engine)

There is a library in the universe of Jake Vanderplas that I have used to make charts in Google Earth Engine: pygal. May not be the best or newest, but it works. I have incorporated the method in a ...
Rodrigo E. Principe's user avatar
7 votes
Accepted

Why does size of circle object drawn in Google Maps increase when moving it away from Equator

The answer to this question is somewhat technical. First you need to recall that the Earth looks like this: So when it's drawn as a flat surface, there will be distortion. How much distortion ...
Vince's user avatar
  • 20.2k
6 votes
Accepted

Can you download all google maps data in certain area?

Yes, you want to use the Google Places API. It allows you to search by keywords. You need to provide an API key, but for a free account you can get quite a few requests in per month. I'm assuming ...
crmackey's user avatar
  • 8,514
6 votes

How to Geocode a Google Sheet?

I found this Google Sheets formula in an answer in the Google Forums useful - =IMPORTXML("http://maps.googleapis.com/maps/api/geocode/xml?address="&C1, "/GeocodeResponse//location") Replace "C1" ...
mvark's user avatar
  • 171
6 votes

UI CHARTS ( for indices time series in python API of Google earth Engine)

The ui.Chart class is only available in the Earth Engine Code Editor application. It is not part of the JavaScript or Python API libraries. Using the Earth Engine Python API, you can pull data into a ...
Tyler Erickson's user avatar
6 votes
Accepted

Extracting elements plotted on Google Maps API

The lines data displayed in the map is in a .js file named gmaps202101.js. You can get a GeoJSON text of all polylines coded in the file. Open Dev Tools Ctrl+Shift+C > Sources Tab > Page Tab. ...
Kadir Şahbaz's user avatar
6 votes

Google Earth Engine Chart Error

As you can see in error message, it is mandatory to specify a scale or crs & crs_transform. In my case, I arbitrarily selected 1000 as scale and, your modified code looks as follows: Map.setCenter(...
xunilk's user avatar
  • 30k
5 votes

googlemutant and leaflet problem view data

That's because you didn't create a new map using Leaflet + Leaflet.GoogleMutant. That's because you copy-pasted the code from https://ivansanchez.gitlab.io/Leaflet.GridLayer.GoogleMutant/demo.html ...
IvanSanchez's user avatar
  • 10.3k
5 votes

Openlayers v4.0.1 support Google Maps Javascript API?

No it doesn't, and it will probably never support it, since there is no direct tiles access with GMaps. The only option that I know of is still something like: https://github.com/mapgears/ol3-google-...
bartvde's user avatar
  • 2,479
5 votes

bathymetry (Ocean Floor depth) data - API or similar

For Germany North Sea and Baltic Sea: Baltic sea IOW Baltic Sea Bathymetry Database Mark an area and download. North Sea AufMod sorry only german. DE: Alle morphologischen Produkte des Funktionalen ...
huckfinn's user avatar
  • 3,603
5 votes

Google Earth Engine: pop-up when clicking on geometry/Feature

This is a bit of a workaround, but you can listen for map clicks and update ui elements based on the results. This only inspects one point, but you could add more to a feature collection. Also, this ...
phloem's user avatar
  • 4,688
5 votes

Wrong coordinate system after import

I downloaded a random shapefile from your link and plotted it against a basemap: The coordinate system is fine. Perhaps you can provide an example of a shapefile that you think is incorrect. As for ...
Jon's user avatar
  • 2,894
5 votes

Extracting elements plotted on Google Maps API

Here is a solution for your question (but may be the best is ask for the data to the producer). First I searched for the data that is shown in red on the map. If you use chrome you can access dev ...
Corentin Lemaitre's user avatar
5 votes
Accepted

Is it possible to find the closest point that is on Google Street View

Yes, when using the Street View Static API you can specify both a location and a maximum radius in which the API should search for an image. location can be either a text string (such as Chagrin ...
bugmenot123's user avatar
  • 10.9k
4 votes

Hexagon binning using Google Maps

If you're pregenerating the hex information, as your question suggests, you could use my R package dggridR to generate the hexagons' boundaries. dggridR uses some rather complicated maths to tile the ...
Richard's user avatar
  • 1,831
4 votes

Clipping a section from google map as geotiff

Google don't like copying or saving of their map/earth products. So I doubt it is possible within their API. However it is possible to get a georeferenced gtiff of google maps imagery for a limited ...
user6072577's user avatar
  • 1,582
4 votes

Converting PBF vector tiles to GeoJSON?

You can use tippacanoe-decode to convert PBF files to GeoJSON. https://github.com/mapbox/tippecanoe#tippecanoe-decode
Nishanth Duvva's user avatar
4 votes
Accepted

Google maps slice arctic

The problem is that the projection being used EPSG:3857 is only intended to be used between 85.06°S and 85.06°N.
nmtoken's user avatar
  • 13.5k
4 votes

Render vector tiles to PNG on Android & iOS

For Android, we looked into this a few years ago (circa 2014): https://github.com/CUTR-at-USF/OpenTripPlanner-for-Android/issues/356 We ended up just using raster tiles, but we were looking at the ...
Sean Barbeau's user avatar
  • 1,603
4 votes
Accepted

Principal Component Analysis (PCA) issue on Spectral indices and transformations of Earth Engine

Use the stretching to visualize images manually. You can access this if you hover the mouse on the 'Layers' in the right top corner of the map. This is also noted in the tutorial you are following. ...
Kuik's user avatar
  • 10.1k
4 votes
Accepted

How do duplicate script on Google Earth Engine code editor

When trying to "duplicate script", you would want to take the approach of using the script modules exports.doc = 'The Foo module is a demonstration of script modules.' + '\n It contains a ...
whyzar's user avatar
  • 12.1k
4 votes
Accepted

Getting phone number of store from Google Maps

StackOverflow has a good answer to this question. Basically it involves these steps: Get an API key for the Google Places API Use Place Search request Use returned token in a Place Details request ...
StefanBrand_EOX's user avatar
4 votes

How to use a .tpk or GeoTiff file as a Google Maps Overlay

The question seems to be asked earlier here https://stackoverflow.com/questions/45167863/how-to-load-an-geotiff-image-over-google-map, https://stackoverflow.com/questions/19492967/georeference-tiff-...
omega_cancer's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible