Questions tagged [google-maps]

24401 questions
1

votes
0

answer
71

Views

google placeautocomplete view close automatically

I have a problem with google map api. I used Api Key in my project and also i linked release SHA1 Key. It is working correctly in debug apk, but in release apk place autocompleteview is close automatically. I checked the Logcat, in logcat the api key is different from the key i used in meta-data in...
Karanjeet Singh
1

votes
3

answer
168

Views

How to get data from Firebase when I click on 1 of 3 makers on the Map

When I click on 1 of 3 random Markers, it always shows me name: IJKL or last data in Firebase. How can I get data when I click 1 of 3 random markers and show the data in a Toast? Example data structure in Firebase: Name_Data : -asdejnwiqbersad name : ABCD -asldmlmlwqkrioi name : EFGH -asldmlmlwqkrio...
husen
1

votes
1

answer
234

Views

How to get local place and business information in Google Maps while clicking on the icon?

In the 'Google Maps' app while a user clicks on the icon of a local place or business or institution(e.g ATM, Hospital icon) it shows the details of that business. I want to do the similar thing. So far what I have found is Place Picker. But for using Place Picker I have to open a different intent....
1

votes
1

answer
227

Views

How does the Google Maps Directions API differentiate interline transfers?

I am building an android transit app for real-time bus/train arrivals, I would also like to add directions for users using the google maps directions API. My transportation agency (TriMet) uses interline / thru-route transfers. Interline transfers are transfers where the vehicle (bus, rail, etc) cha...
Brian Keen
1

votes
1

answer
2.5k

Views

callout View in react-native-maps does not disappear when the marker is remove on reload

i am using react-native-maps for my react-native project. I show markers on the map which are assigned and un-assigned from UI. I use API's for getting markers data and display them in the maps. Each marker has a title and description which is shown when clicked on the marker. But, when i click on a...
HungrySoul
1

votes
1

answer
96

Views

Google API runs into exception 'Over your Quota'

I'm using pandas and trying to create a column in a dataframe with the geocodes of some addresses. Even though I have an active Google Maps API Key, I can't use it to look up addresses in the code below. Anyone has ideas why that might be? I have a premium account and billing activated. from geoloc...
1

votes
0

answer
329

Views

React Google Maps custom marker rotation

I am trying to add a custom marker in React Google Maps and have each marker rotate based on the direction that the item is heading on the road. I am able to make the rotation work when I use path for an svg instead of a url referencing an image. The problem with path is that I cannot get fillColor...
tripstar
1

votes
0

answer
215

Views

HTTP Request Cookies - Google Location History

I am using the method described here (https://shkspr.mobi/blog/2015/09/get-your-google-location-history-the-hard-way-again/) to retrieve Google Location History. This github project (https://github.com/alexattia/Maps-Location-History) uses this approach to retrieve Google Location History into a KML...
Mike Ingraham
1

votes
0

answer
352

Views

Use google maps javascript api on my cordova project

I want to use google maps javascript api on my cordova project. I noticed by a lot of search to need to implement white list policy in config.xml. But I can't understand what to implement in config.xml. Please help. Followings are my codes and trial result. ---config.xml--- Map A sample Apache Cordo...
iku naga
1

votes
2

answer
775

Views

Can't remove markers - Ionic cordova google maps plugin

I'm pushing markers to this array 'temp1' shown in the console, but I cant use .remove() function. I tested .getPosition() and .getId() functions and they worked. Same problem with map.clear();
Gabplay
1

votes
1

answer
304

Views

googleMapsApp(project name) wont run without google play services. which are not supported by your device

i'm working on an application that uses the google map services To display the location of the user on the map. but when i'm trying to run it on the genymotion device(android version 7.0), the following error displays on the screen: googleMapsApp(project name) wont run without google play services....
porya74
1

votes
1

answer
68

Views

google map plugin cordova not load getMap()

Everything worked before. But suddenly it's showing white screen and throwing this below error. getMap is not defined buildscript { repositories { jcenter() maven { url 'https://maven.google.com' } } dependencies { // NOTE: Do not place your application dependencies here; they belong // in the indiv...
Tar Tatsna
1

votes
0

answer
460

Views

How to generate google maps link for multiple source address?

I would like to know how to add multiple source address as Google Maps allows through link, if I want a source and a destination, this example link below works just fine: http://maps.google.com/maps?saddr=-12.2531892,-38.9538593&daddr=-12.2466969,-38.921826 But if I don't know how to add multiple ad...
Grego
1

votes
1

answer
282

Views

getProjection is not a function - google-maps-react

I am trying to draw curved lines using google-maps-react. In order to do this, I searched and found this question 'How to curve a Polyline in react-google-maps?'. In this question, the answer refers to a sandbox project, in which such an implmentation is done. I tried to adapt this code to work for...
Rafael Marques
1

votes
1

answer
1.4k

Views

How to show directions in angular google maps from current location

I am using angular google maps in my angular Web App. I want to show a directions from user's current location to a marker containing sub locations. In my web app the marker has multiple sub locations identified using lat and lng. So when user clicks on these sub locations, directions has to be show...
Anil
1

votes
1

answer
1.2k

Views

Super expression must either be null or a function, not undefined - react-google-maps

Whenever I am importing this @react-google-maps library I am getting this error. Can anyone help me with this issue? This is my component - const {withScriptjs, withGoogleMap, GoogleMap, Marker} = require('react-google-maps'); const VenueMap = React.createClass({ getInitialState() { const {eventDat...
Amit Bangarwa
1

votes
1

answer
497

Views

How to set longitude and latitude ranges for Bokeh Google Maps plot in Python?

I can only set zooms but I need to have a very specific position so I can overlay it over another plot. How I get a view just from the limits I specified below? Right now I can only set a zoom which is difficult for overlaying on another plot. from bokeh.io import output_file, show from bokeh.mode...
O.rka
1

votes
1

answer
45

Views

Unit testing an ionic3 project with external javascript dependecies

I have an ionic app that uses google maps and wicket JS libraries. In the index.html, I have and everything is working as it should when running the app in emulator or ionic serve, but when unit testing a component with a map, I am getting 'google is not defined' error on the line let location =...
Yuval
1

votes
0

answer
384

Views

Ionic 3 - Native: tried calling / accessing <plugin-name> but's plugin but it's not installed

To summarize my long story, I'm trying to add a google maps and the screen goes blank ... I thought it was a problem with that specific plugin but not ... when I did the google chrome inspection (running the app on a device android) I realized that I had several warning of 'Native' ... and I can not...
Lesty
1

votes
1

answer
22

Views

android google maps center of the camera location name

hi guys i have a marker in the center of my map camera and i want to show where information of the place marker is right now i write this so far but its not working and here is the error @Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; Toast.makeText(getContext(), 'Map is Re...
raza Amini
1

votes
0

answer
261

Views

Single vs Tiled WMS in Google Maps

I am trying to add a WMS Service to Google Maps JavaScript API with one tile vs multiple tiles. My current code is: states = new google.maps.ImageMapType({ getTileUrl: function (coord, zoom) { // Compose URL for overlay tile var s = Math.pow(2, zoom); var twidth = 256; var theight = 256; var gBl = m...
mkeller
1

votes
0

answer
38

Views

MAPS API - application not running on the emulator

I'm verry new at android developement , i'm trying to make a map application but can't even show a simple map on a fragment . I've followed many & many tutorials , search a lot of answers in stackoverflow but still can't get the result i want . I'm developping in eclipse and running app in emulator...
NoobFay
1

votes
0

answer
167

Views

Insert Google Maps on a fragment

I'm trying to add the google maps api into a fragment, first of all i create a project in the console of google to obtain a API KEY. When I have the API_KEY I put to the AndroidManifest.xml this lines: Before of that, in my fragment.xmk I add the followin lines: Finally in my fragment.java i have th...
1

votes
0

answer
280

Views

Change infowindow position according to move right and left side map

I have set two infowindow for pickup and drop location. I want to change info window postion like uber in the below images, Below code is what I have tried : @Override public void onCameraIdle() { //get marker position Projection projection = googleMap.getProjection(); LatLng markerLocation = null;...
user9298460
1

votes
2

answer
56

Views

how do I remove a polygon from Google maps

I'm trying to make a web application type thing where you can define an area on the map and it will tell you the size of that area. At the moment, the area updates whenever a new 'point' is added to the area outline. There's 2 issues I'm having with this. Firstly, I can't seem to figure out how to u...
1

votes
1

answer
703

Views

Already managing a GoogleApiClient with id 0 inside a Java Class

I have created a GoogleMap inside a java class so I can reuse it multiple times without repeating code. I currently have two maps on the same fragment. One map, is for the user to select a collection location (Item picked up from). The second map is for a delivery location (Item is going to). Both...
javacoder123
1

votes
0

answer
1.9k

Views

how to change language in google maps app (ios and android)?

If you are ever traveling to a country that speaks a different language than you, especially if they also use a different writing system, you have probably discovered that the language/writing system in google maps can be an issue. Quite simply there are times when you need to switch between the dif...
ymilly
1

votes
1

answer
93

Views

SmoothStateJS with Custom Google Map

I know this question has been asked a few times before, but looking through the answers I still can't figure out how to fix the issue, Would someone be able to help? My map works when I refresh the page, but when I navigate to it from any other page the map doesn't load, as smoothState doesn't reloa...
DCReddish97
1

votes
2

answer
110

Views

Maps Direction Line doesn't showing up on Maps

On trying to give direction line between User location to defined location. The pinpoints were right and exactly at the desired location but there is no 'Line' direction which leads User location to defined location. It was done like this image: and my code for drawing the maps along with parsing go...
vanillatte
1

votes
1

answer
344

Views

Google Maps GEOJSON GeometryCollection show only one geometry

In my GEOJSON data layer I have a set of about 20 regions. Each Feature has a GeometryCollection with two geometries: a Polygon to define the region, and a Point that gives the centre of the region. I want the Polygons to be invisible, but show the Points on the map as markers. Additionally, I want...
user2470281
1

votes
0

answer
51

Views

IconFactory with `setContentRotation` change aling of the content

I'm working with maps and I'm trying to do something similar as Uber does, show information near the marker (in two markers at the same time so I can't use infowindow ) As I have read I'm using IconFactory to achieve this: val iconFactory = IconGenerator(this) //iconFactory.setBackground(resources.g...
venimania
1

votes
0

answer
54

Views

Android numbers of marker on Map

Here is my Data Here is my map markers In my app i am choosing a size and getting current location on click event , then inserting everything in SQLite Database. After that i am making while loop and creating markers on my Map. Everything is working well but the displayed markers on map are lower...
Ivan Hristov
1

votes
0

answer
207

Views

Android Google maps navigation view overlay button

How to implement a button on navigation view google maps android which when clicked opens a different app? Such a button can be seen in google maps navigation view of Ola and Uber driver apps. Thanks in advance.
Abhisek Mallick
1

votes
1

answer
31

Views

is it possible to ignore some markers when using GoogleMaps onMarkerClickListener, so the click listener isn't even triggered?

In the map below I have three markers, the red one is the users current position while the green ones are the clickable markers. Clicking the bottom one is not a problem. But clicking the one the user is close to is a different matter as the position marker is in the way. So for that one the user u...
just_user
1

votes
1

answer
37

Views

fragment page to map Activity and then get the location and sent it back to the fragment page

Fragment page has an EditText and I set the OnClickListener. When I click on the EditText, it will go to a map activity. The latitude is got in the map activity and send it back to the fragment. When I back to the fragment, the latitude should be displayed on the EditText. However, there are nothing...
felix12340
1

votes
2

answer
334

Views

How to programmatically deselect a marker in Google Maps on Android

When a user clicks on a marker, info window appears, as well as a map toolbar: I want to 'deselect' this marker from code and thus to hide these widgets. The desired behavior is similar to that when a user clicks elsewhere on a map. I know about marker.hideInfoWindow() method, but it only hides the...
D.M.
1

votes
0

answer
58

Views

I want to display google map on web page but it shows some error

Explain : I want to display data from database on google map but is shows that google API key is needed, I already put it inside script tag but still error is occured.I attached code of default.apsx page and default.aspx.cs page. plaese help me our this issue. Error : You need to set the Google Map...
Vishal Gupta
1

votes
0

answer
82

Views

Google Map Not Working in Floating action Menu

I put floating action menu in my layout with google map.map show in Frame Layout Floating action Menu work fine But in map i can't perform any action like in map custom marker. Marker not perform click event also no any event perform in map. Here is my xml code:
Sonal Patel
1

votes
0

answer
150

Views

Google maps toggle kml and json layer

Im working with the Google maps API. I am loading a KML file and a JSON file with jQuery. The KML file is bike routes in Toronto and the JSON files shows markers for where the Bike Share stations are in Toronto. When both are loaded, the bike routes don't show up... I think this is because the tw...
Richard
1

votes
0

answer
252

Views

Add real-time marker with watchPosition() in Ionic

I'm strugguling with adding marker into my google-map with real-time location data from watchPosition() method. When I use getCurrentPosition() method everything works just fine. But with this method i can't solve this. So in general i want to create marker with real-time position of the user and ch...
J Sol

View additional questions