Questions tagged [google-maps]

17721 questions
1

votes
1

answer
943

Views

How to use Maptiler to display tiles in Google Maps

I have an image 1810x14871 png file, and I would like to display it as tiles on Google maps. I'm using Maptiler, I would like to check with you few points: 1) Since I would like to display it on Google maps. Hence, in first screen I have to select "Mercator tiles", right? 2) In the coordinate Syste...
user836026
1

votes
1

answer
2.3k

Views

Android cluster map change marker

I was having some troubles when trying to customize the clsutered markers on Google Map. I am using Google Map Android API Library and reference from GoogleMap Documentation. Here are my codes: private void setUpClusterer() { googleBasemap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng( 1.3...
1

votes
2

answer
734

Views

Determine if Google Maps API is using an invalid key during runtime

I'm looking for a way to determine whether a valid Google maps API key is being used. Using an invalid key, we receive an error stating that the google API has been disabled. I'd like to capture that return, and determine whether or not to do our geocoding functions based on that return. As it stan...
Ken S
1

votes
1

answer
3.3k

Views

Google Maps API zoom on resize

I have searched, researched and searched some more. I am desperately trying to make it so my map changes its zoom automatically with different browser sizes as it keeps the markers on the map viewable. Right now the best thing that works for me is: google.maps.event.addDomListener(window, "resize",...
Christine268
1

votes
2

answer
1.9k

Views

Python Google Geocoding API - IndexError: list index out of range?

I'm working on a personal project visualizing location data, and here I reverse geocode location data from Google through the Geocoding API, by feeding it coordinates and retrieving a City Name and Country. It's a CSV file, with 2 columns: "Location" (Latitude and Longitude) and "Time" (Date+Time)....
1

votes
1

answer
522

Views

Extending Object.prototype breaks JavaScript for..in loops, which are used heavily in Google Maps API v3

I am developing project in meteor. I need to find object key form object value. So I tried the below code, But browser freezed. Object.prototype.getKeyByValue = function( value ) { for( var prop in this ) { if( this.hasOwnProperty( prop ) ) { if( this[ prop ] === value ) return prop; } } } var test...
1

votes
3

answer
134

Views

Android: GoogleMap v2 in a fragment requires the additional permissions

I'm trying to use GoogleMaps V2 within a fragment, but without success. In the emulator, I get the info, that I should update the play services. The same on the Samsung Galaxy Nexus. Once I updated the play services, I get the following error. All those permission - listed in the error - are part of...
Matthias
1

votes
1

answer
3.4k

Views

Save Map Instance outside of Google Maps

I've made a google maps API (HTML) script that created markers when the user clicks on the map. I've also integrated Google+ login functions so users are unique and have profiles. I now want to make it so users can create their markers on their desired positions and then save the map so they can com...
cmartin2273
1

votes
1

answer
1.4k

Views

Google maps draw distance traveled polyline

I would like to drawn a 'distance traveled' polyline over a preset route using V3 of the google maps API. The polyline would need to run through multiple waypoints/legs. I am currently using the DirectionsService to draw the complete route. I am also using epolys.js to get the marker position for th...
Rocket Ronnie
0

votes
0

answer
27

Views

Half Google Map visible in Fragment

I have two fragment in my activity. First one is showing list of items and second fragment is showing google map. When I tap on google map tab, Google Map is visible but only in half area. In first half map is visible but second half only black part. While its covering complete area. When I touch an...
ParikshitSinghTomar
1

votes
0

answer
15

Views

Display new markers when map bound changed and clear old marker

when map location/bound moved by user, make disappear old position markers and display new position markers. 1. How can I create area(for example if marker locations inside this area then show those and clear rest... 2. Any example for this situation? Or documentation? For an example you can check...
Barbie
1

votes
1

answer
552

Views

Custom TileProvider with Polygon in Android maps

I'm having problems drawing a polygon on Android map. The problem is that I have TileOverlays so the polygon is kinda under the overlays. I'm drawing a polygon on GoogleMap like this: map.addPolygon(new PolygonOptions().add(points).strokeColor(Color.RED).strokeWidth(3f)); map.animateCamera(CameraUpd...
slorangex
1

votes
1

answer
1.9k

Views

TypeError: _.includes is not a function, Angular Google Maps

While integrating google maps using angular-google-maps 2.3.1 with lodash 4.3.0 (Custom Build) , I am getting this error. From some links I got to know they have some issues in latest version but I am not able to find the exact reason behind this issue.
jain
1

votes
1

answer
681

Views

How to fire places_changed on google map without enter manually

I want to fill the input of google map as per user address and change the whole map on the basis of that. I try to trigger input on basis of enter but it won't worked I also try to trigger places_changed but map doesn't changed Places Searchbox html, body { height: 100%; margin: 0; padding: 0;...
Aashish Kaushik
1

votes
2

answer
462

Views

How to use OnMyLocationButtonClick with Google Play Services

I'm new on Android programming, I'm not able to use the MyLocation button on my fragment class which use a collapsingToolbarLayout, i added the Mylocation button with this line of code: googleMap.setMyLocationEnabled(true); I read the official doc and It said: When a user clicks the button, the ca...
BitRulez
1

votes
1

answer
1.4k

Views

Google Places API show schools and stores

Using the Google Maps API with the places library I am able to show nearby schools using the recommended method shown here. var map; var infowindow; function initMap() { var pyrmont = {lat: -33.867, lng: 151.195}; map = new google.maps.Map(document.getElementById('map'), { center: pyrmont, zoom: 15...
user3256143
1

votes
1

answer
825

Views

Getting duplicate resource error in gradle android

I m adding google maps and firebase messaging in my android app but after building the error as duplicate resource. My log cat error is Error:Execution failed for task ':app:mergeDebugResources'. > [string/google_api_key] F:\Android Workspace\FoxindTracker\app\src\main\res\values\strings.xml [str...
Mohit Gaur
0

votes
0

answer
2

Views

Geoxml3 Shows Unable to retrieve Kml file

i went through lots of answers posted regarding the below question. i wanted to retrieve the kml file from the local and so i used geoxml var myParser = new geoXML3.parser({ map: map }); myParser.parse('indiastatev2.kml'); here is the code which i am trying to make work my file is stored here in th...
Ronak Shethia
0

votes
0

answer
6

Views

Google Maps Marker clicking through

I'm using the Google Map API in my application. The markers are click through though. Meaning that if 2 markers are closeby and one of them is overlapping the other, upon clicking on the one in the forground the click event triggers only for the background one which is something I do not want. Is th...
Emilio Gaines
1

votes
2

answer
424

Views

Google map Place information by latitude and longitude in iOS Swift

I have a marker on map. When scroll map, then the marker also moves. I can find the marker coordinates, but how to find place information using that coordinate? Place information of current location func locate() { placesClient.currentPlace(callback: { (placeLikelihoodList, error) -> Void in if let...
Alwin
1

votes
2

answer
88

Views

Tool Recommendation to create Interaction Map with multiple dimensions

I have knowledge in QLik/Sense, Big Query, Google Data Studio ( and related ) I need to create a map with multiple points and each point will display data from the database (point related) The table will look for example like this: +------------+---------------------------+-----------+---------+----...
J.Doe
0

votes
0

answer
17

Views

I have to implement a rectangle and polygon on maps.Divide the rectangle into grids,remove all the grids which are not a part of the polygon

I have made a map and added a polygon to mark the boundaries of city Gurgaon. I have made a rectangle over the polygon. The task I have pending is that I have to divide this rectangle into 15*15 grids and if any grid doesn't contain any part of Gurgaon, I have to remove the specific grid. I have to...
Adithya R Pai
1

votes
2

answer
731

Views

Transforming google maps waypoint directions to via-directions

I am trying to change the URL of google maps directions from directions which have multiple waypoints to directions where these intermediate waypoints are deleted but the route remains the same. Specifically from: https://www.google.nl/maps/dir/51.804323,5.8061076/51.8059489,5.7971745/51.8095767,5.8...
0

votes
0

answer
6

Views

How can I reactivate the Google API key?

I really need your help. We've been sending addresses to Google for a while and then getting the coordinates from Google back and storing them. This won´t work anymore. From Google, we get the following error message: You must use an API key to authenticate each request to Google Maps Platform AP...
1

votes
1

answer
851

Views

MongoDB $geoNear distance is different than Google Maps distance

I have a list of Venues in my DB and I wish to show those in order of distance to the client. My query to the DB is the following: venueCollection.aggregate([ { '$geoNear': { 'near': { 'type': 'Point', 'coordinates': [ user_lng , user_lat ] }, 'spherical': true, 'distanceField': 'dist' } }, { '$sor...
Ayeye Brazo
9

votes
3

answer
172

Views

How do I determine when Google maps is Speaking in Android

I'm trying to modify my application to pause audio playback when Google maps is announcing a turn by turn direction. I've added the following code (shown below) to my application. The audio focus listener is called when applications like Pandora Radio or Spotify request audio focus in order to play...
William Seemann
1

votes
1

answer
866

Views

How to get ClusterManager click and ClusterManager item click in android

I am developing Map Based application, I used cluster for arranging markers. It works fine. Now, I need to show a message when I click on clusterManager, and when I click on item (Only one marker), So that I can make the diffrence between them. Here it is my code, setOnClusterClickListener and setOn...
naima
1

votes
1

answer
2.4k

Views

What is the different between Mobile Native Dynamic Maps and Dynamic Maps

Google just announced a new pricing plan for Google Maps APIs which will go into effect on 11 June 2018, however, What is the different between Mobile Native Dynamic Maps and Dynamic Maps. How do I know which maps I am using ? Thanks a lot
Kk Law
1

votes
1

answer
558

Views

Unknown “google is not defined” Google Maps integration in Angular 6

Here's the context of the problem I am trying to solve: I am trying to program a google map integration with a heat map overlay. It currently should be a visible map centered in San Francisco (later I will add a button to overlay the heat map and toggle the heat map). Yet, I keep getting this error...
Enesxg
1

votes
2

answer
2.1k

Views

Angular 6, AGM selects first address in google autocomplete

Am using AGM for google address suggestion in my angular project. I want to select the first address if user didn't select any. Please anyone give some suggestions for this. Thanks in advance.
saravana va
1

votes
3

answer
665

Views

AndroidStudio - Program type already present: com.google.android.gms.location.places.zza

First : Let me explain the situation , i have an sdk works with google Api and implementing a lot of dependencies. then i implement the lib into my new app which is also implements dependencies. everything goes fine until i try to run the app. When i run (on device) my project I get the following er...
Mohamed Ali Nakouri
1

votes
2

answer
2.9k

Views

How to get Google Maps API key without entering billing info

Context I would like to get Google Maps API key for free usage (below 5000 per year hits), but when I follow the instructions, it seems that providing billing information is mandatory. Question What am I missing, or is it really impossible to have Google Maps on a page without providing billing inf...
g.pickardou
1

votes
1

answer
39

Views

Google Places API field filter not applying

I'm requesting a Google Places data with the "fields" parameter filled in as in example from google: https://developers.google.com/places/web-service/details#fields I am only requesting 3 fields: geometry, name, vicinity. In the documentation it is clearly stated you should provide at least 1 field:...
Cedrique Foulon
1

votes
2

answer
40

Views

How to show Azure Cosmos DB data using C# .net MVC framework on google marker map?

I am trying to achieve google marker map for data from Cosmos Db using C# .net MVC framework. I am not able to pass data to google maps javascript. I have added my code for reference. Please help. Thanks I am new c# developer. I am using Azure Cosmos db database for application.I tried different met...
Ana
1

votes
3

answer
1.3k

Views

MarkerClusterer not working only in webkit (Chrome and Safari), fine in Firefox?

This is driving me mental. I'm using MarkerCluster with google maps v3, and it works fine in FF, however when I (and the client) kick it up in Chrome or Safari the clusters arn't there. No errors, just not working in webkit. A few notes: it's coming from some ajax-loaded json and it's in jquery. Thi...
Smickie
1

votes
0

answer
63

Views

Angular Material Select (mat-select) not showing when Angular Google Maps in full screen mode

I am using Angular Material and Angular Google Maps. I have a Angular Material form in the Snazzy-Info-Window which works fine in normal mode. It displays the mat-select nicely but when I click the fullscreen button the mat-options in the mat-select don't show up. As soon as I come out of the full s...
Angad
1

votes
0

answer
7

Views

Populating google maps with different locations based on results from mysql database

I am setting up hotel listing to appear on google maps. this is the result from ajax request: $.ajax({ type: 'POST', url: '/hotel/welcome/get_map_listings', data: {category:category}, dataType: 'json', success: function(data) { jQuery.each(data, function(index, item) { }); }, error: function(XMLHttp...
BizMAN
1

votes
4

answer
2.5k

Views

How to display large numbers of pins using Google Maps API on iPhone App over populating screen with red pins - suggestions on improved User Interface

I am developing an iphone app that involves populating a google map with lots of locaiton points around the UK. There are over 10,000 points and when the user scrolls out each point is fixed to the map based on a lat./long position, and every time the user changes their zoom amount it has to reload...
sean-seamus
1

votes
1

answer
69

Views

How to get Exact User location by Using maps API?

May be similar question asked before. But I am in the middle of finding the location. When I try the following code it shows my internet providers location. and which doesnot show my current location. function ipLookUp () { $.ajax('http://ip-api.com/json') .then( function success(response) { console...
Kvvaradha
1

votes
0

answer
16

Views

How to draw polygon on angular google maps using @agm-core?

In my application, I use Angular Google Maps (AGM) to build a map. How can I draw a polygon on it? I followed the solution described in https://stackblitz.com/edit/agm-polygon but some directives are missing. How can I enable the drawing manager on the AGM map and draw polygons like in the example?...
Elias

View additional questions