Questions tagged [google-maps-api]

An application programming interface specific to Google Maps.

Filter by
Sorted by
Tagged with
2
votes
1answer
2k views

Accessing Google Tile independent from their API in OL3 is possible for paying customer?

Using map from tile providers are common use-case in web mapping: overlaying internally-hosted WMS/WFS layer on top of Google Maps/OSM/Bing Maps. These are easy in OpenLayers 2. However, this feat -...
1
vote
1answer
66 views

How to display faster shapes covering a country map?

I need to display ~9000 polygons that represent country regions on a google map in a fast way. The polygons are kml formats (but I can get other formats too). At the moment everytime the map is ...
1
vote
1answer
587 views

Google Maps API: Can't load GeoJSON when inside a function

I use the sample provided on the Google Maps API page (https://developers.google.com/maps/documentation/javascript/datalayer). I put the sample inside a function like following function ...
1
vote
1answer
221 views

How do I add a MapProxy overlay to Google Maps API?

I have Mapserver running, reading from a raster file, which I can overlay over Google Maps using its Javascript API. Now, for caching of tiles, I need to use MapProxy URL for Google Maps overlay. How ...
1
vote
1answer
763 views

Is there any way to get route polygon

I have trying to find way to get google map display route polygon, so that i can filter data from my database(using polygon): Google directionsService.route There is some option I found but it is ...
0
votes
1answer
2k views

How to speed up Google Geocoding API Slow performance?

I am using Google geocoding API service with their Java client, and my dev Key, The problem is when I run up to 40 requests it does slow to 600ms. I am using it in a webservice that is supposed to ...
0
votes
1answer
407 views

Is it possible to use all Google Maps feature with Leaflet's GoogleMutant API

I'm using leaflet in my project for longer period of time. Now it is required to use Street View feature of google map with it's Peg Men. Is it feasible? I've another question in mind where ...
1
vote
1answer
3k views

How to add marker in Leaflet base on Google Maps layer?

I have tried many way to add marker base on Google Maps but it doesn't work at all, but if I changed my base map to such as open street map which provide by Ersi or Leaflet, it does work. Why is it ...
1
vote
0answers
63 views

Traverse all roads in a city or bounded region

Is it possible to provide a starting point(lat/long) to a drone and then simulate it to traverse through all the roads in a bounded region. What I currently have(using OpenStreetMaps) is a list of ...
0
votes
3answers
2k views

Generate KML file/url from Google Maps

I created kml file from ArcMap and imported into my Google maps, it works. Not sure if you can open this URL: https://www.google.com/maps/d/edit?mid=13TuHmGuW9nnE-8TACTfGLdDDf6o&ll=38....
8
votes
6answers
15k views

Openlayers v4.0.1 support Google Maps Javascript API?

I want to know if the latest version of Openlayers (v4.0.1) supports Google Maps as a Tile Layer. I can't find any document ion about this. If Openlayers doesn't support Google Maps, could someone ...
1
vote
0answers
1k views

Achieving more accurate geolocation

Currently, I am using Google Maps API with HTML5 geolocation to create a POC about asset tracking via a web service. The user opens the web browser and we track it from there and display it on an ...
0
votes
1answer
1k views

googlemutant and leaflet problem view data

I just create a new map with leaflet and GoogleMutan with this three CDN libriaries: 1) maps.googleapis.com/maps/api/js?key=MYKEY" async defer 2) unpkg.com/leaflet@1.0.1/dist/leaflet-src.js 3) ...
3
votes
1answer
169 views

Adding association for location with city or zip code when using PostGIS to add markers using geography?

On my front end, I am using google maps JS api. I am adding markers, the google maps event gives me the lat/lng for where I add the marker. I'm adding that marker into my postgres database: INSERT ...
1
vote
1answer
1k views

Google geocoder doesn't return U.S. county information

I'm geocoding a bunch of U.S. addresses with various levels of completion. In some cases, Google's geocoding API (https://maps.googleapis.com/maps/api/geocode/json?address=) doesn't return a county (...
1
vote
0answers
228 views

Road Extraction from Latitude and Longitude using Google Maps API? [closed]

Google Maps API allows grabbing roads for individual latitude and longitude specifications (or the nearest roads if the point/s are not on a road). However, the way it requires data to be entered for ...
0
votes
1answer
1k views

Using google maps static tiles with leaflet?

I am trying to use tiles generated with the google static api with Leaflet and I am facing issues because the generated tile seems to be displayed "off-centred". My original question has been posted ...
0
votes
0answers
630 views

Is there a OSM tile server that allows you to style like google api?

The google maps API allows you to style the map you get back. Is there an OSM equivalent? This question asked how google did it How are Google serving up their Styled Maps? has there been any ...
0
votes
1answer
1k views

C# - Geocode pharmacy by name and location

How can I find the coordinates of a pharmacy by it name and location? I'm trying to search with the Google geocode API like this: var pharmacyName = "Farmácia Ereirense"; var address = "Cartaxo, ...
1
vote
1answer
580 views

Can I get a google static map at the inbetween zoom levels that google maps site does?

I'm not sure if this is new in the Google maps site but you can use the scroll bar to zoom in-between the standard zoom levels. The plus and minus buttons still jump a full zoom level and there doesn'...
2
votes
0answers
392 views

TMS tileOrigin on Google Maps ImageMapType

I'm trying to show a tiled image layer on Google Maps, which is currently showing on an OpenLayers / ESRI engine. OpenLayers has a parameter on a TMS layer to specify tileOrigin (0,0 is different) ...
3
votes
1answer
3k views

How to set google map zoom to fit the screen & position infobox labels depending on the area of polygon

I am using google map's FusionTablesLayer and polygon to set layers of USA states. I am having problem in integrating following 2 things : a) Set zoom property, so map will fit to the screen. I know ...
1
vote
0answers
291 views

Google My Maps integrated on own site

The My Maps solution from Google is great, especially for quick adding layers and styling. Is it possible to export the map to my own website as a full sized map and without the My Maps logo? There´s ...
2
votes
1answer
6k views

Google maps API find the nearest markers in my location

I have this code and I don't know how to include "find the nearest markers in my location". I tried some codes but nothing didn't work perfectly. I want if i click to button it shows markers in my ...
0
votes
1answer
988 views

Alert Box on Marker Google Maps API

I have a marker called chicagoMarker and each time the user zooms in closer I would like to alert them if they are getting closer to chicago. I am not sure if I have a problem with my event listener ...
1
vote
0answers
165 views

Maintain Nominatim with my own data

I just started using google map API but found some restrictions on daily request limit. After some research I found I can use open street map, but has its own request restrictions. To resolve I ...
-1
votes
2answers
336 views

Tutorial for Google Maps API [closed]

Where I can find some good tutorial for Google Maps API?
0
votes
1answer
390 views

Why do I get “Invalid Data Source” when opening a GPX file from ETrex 30?

Why is it if i load the .gpx files in qgis it says "Invalid Data Source" as well as in google maps? I want to view the waypoints from the .gpx file. I used gpx etrex 30
2
votes
1answer
1k views

ArcGIS JavaScript Extension for the Google Maps API, serverapi.arcgisonline.com/jsapi/gmaps/

My code using as the following: Google Maps API in V3: <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=geometry&v3&key=...
3
votes
2answers
2k views

Clipping a section from google map as geotiff

I am trying to export regions of interest in google map as geotiff. I know google earth has option to save image as jpeg. Are there any tools to obtain a part of image from google maps with its ...
1
vote
0answers
101 views

Finding all line segments lying inside polygon and what % of line inside polygon using Google Fusion Tables?

I was practicing with fusion tables sample code and while playing with some dataset, I was thinking how to achieve this. So if you see attached image. Red blocks : These are SLA code or SLA areas. ...
0
votes
1answer
2k views

Get distance in meters between lat/lng coordinates, divided in North and East direction

I've got 2 couples of lat/lng coordinates and I would like to get distance between them in meters, but divided in X (east) and Y (north) directions. I've found this function in a Stack Overflow ...
2
votes
0answers
1k views

Using Google Maps API to selectively highlight railway routes one at a time?

I am trying to understand the TransitLayer in Google Maps' Javascript API. Utilizing Google's example code, I managed to display a geographically-accurate map of Tokyo Metro, Toei Subway and Yokohama ...
1
vote
0answers
123 views

Google TMS links legal for usage in OL, GeoNode, QGIS? [closed]

I really like to use the Google tms urls in OpenLayers, QGIS (QuickMapServices), GeoNode, like https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z} But is it legal to use this links? Will ...
1
vote
0answers
293 views

How to generate tiles using gdal2tiles that can be used for google.maps.ImageMapType?

Using GDAL tools such as gdal2tiles.py, allows one to generate map tiles from a single image file. However, the tiles generated by gdal2tiles doesn't seem to be like one used for google.maps....
0
votes
1answer
4k views

Trying to get Spiderfier to work with MarkerClusterer in Google Maps

I have just over 100 points to display on a map and had it working fine. Quite a few of these points are displayed at the exact same coordinate position so sit on top of each other. To make it so ...
1
vote
0answers
579 views

How to generate list of polygons that fall within radius circle using Google Maps API?

I have created a Web app using Google Fusion Tables, the Google Maps API and Derek Eder's Searchable Maps Template that allows someone to enter an address and distance, and then see which US ...
0
votes
1answer
6k views

Remove the last plotted line from Google Map _ Android?

I created a class that select latitudes and longitude from sqlite then mark on map then draw polyLine. Problem : Every time I select my records 100 to 100, when I saw first 100 then I clear map then ...
0
votes
1answer
401 views

openlayers pinch zoom not working

I am interacting with a google map using openlayers3. On pinch zoom, the map throws an exception : Uncaught TypeError: Cannot read property 'x' of undefined I am using Google Maps API 3.2 and ...
1
vote
0answers
177 views

DWG to image tiles using FME

I need to make image tiles out of a DWG. I need them so I can use them as overlay on google maps. hopefully I can get them in this folder configuration: zoom_level/x_or_column/y_or_row.png or similar ...
0
votes
2answers
1k views

How to use WMTS url service in my android map application as basemap?

I am building a android map application and i want to use as basemap some wmts url services of our country. How can i implement this and get layers from WMTS url services as TileOverlay to google map ...
2
votes
2answers
6k views

Creating Google Maps Polygon from Data Object Using getFeatureById

First post here, so forgive me if I put a few things in the wrong place. I am trying to do a Google Maps search for places inside an arbitrary region loaded into a Data object loaded via GeoJSON file,...
2
votes
1answer
5k views

Can you download all google maps data in certain area?

Knowing the reference point, I want to get a list of all the shops (and co ordinates) based in that area.. For example all the shops in this mall: https://goo.gl/maps/GFfWx8pze2T2 Is there a tool to ...
3
votes
1answer
4k views

Text Label GeoJSON Markers Google Maps API

I am trying to create a Text Label, for each of the markers created from my GeoJSON with the following code... function init() { var mapCanvas = document.getElementById('myMap'); var map; var ...
1
vote
1answer
8k views

Extracting latitude/longitude from javascript and passing to html form

I have the following problem I use a google map inside an html form where the user can enter an address (autocomplete) and the marker goes to the place. The marker is draggable. What I want is to ...
2
votes
1answer
239 views

Heavy load Map application. where to start? [closed]

I want to start building a quite big project that I have in mind that is 99% based on the world map. I have worked with Google maps in the past and know how to use their api and I have done some ...
1
vote
1answer
243 views

Calculating all possible lat & long

I am new to GIA domain. I am trying to learn new concepts around mapping etc and this is my first app/implementation. I am trying to implement a store locator kind of function. I am thinking to ...
2
votes
0answers
75 views

What is the method for mapping 200k records on Google Maps API via MYSQL db?

I have a simple Google Maps api linked to MYSQL. I am trying to map a mysql table of 200k records. I have a default display of this data set as heatmap, so am not trying to map 200k markers. Even ...
3
votes
1answer
1k views

How do I remove the terrain checkbox from Google Maps?

I don't mind having the map/satellite options, but I don't need the terrain option for my map. How do I disable just that? I don't see it documented well on https://developers.google.com/maps/...
2
votes
0answers
592 views

Map gear's OL3-Google-Maps not showing the google layer even after adding google layer

I am using Map Gear's OL3-Google-Maps in order to load the google base map in OL3, I am adding like this //Before adding this i am removing the OSM base map tile layer and adding it. var googleLayer =...