FAQ Database Discussion Community


Android Studio: cannot upgrade google play services

android,google-maps,android-studio,google-play-services,google-play-developer-api
I have tried download the latest version on the sdk manager, but is still not working. I have seen other posts telling users to enter the following... compile 'com.google.android.gms:play-services:4.2.+' I do not understand where to enter it. I tried in the terminal feature of the android studio but it gives...

Adding hotspots with identical lat/long

android,google-maps,google-maps-android-api-2
I'm adding hotspots to my map with the following code: public void addMarker(MyCustomMarker marker) { LatLng latLng = new LatLng(marker.getLatitude(), marker.getLongitude()); mMap.addMarker(new MarkerOptions().position(latLng).title("Marker")); } What are the consequences of adding multiple hotspots with the identical lat/long? Will they both remain on the map and in memory, or will adding a...

google maps refresh without displaying gray

javascript,jquery,mongodb,google-maps,google-maps-api-3
I am using the Google Maps API v3 in javascript, and I am constantly reloading the map with an app.get, and adding layers and bookmarks using mongodb. To erase everything I reload the map, and while it's loading a gray background displays in the div that contains the map. What...

R stops displaying maps

r,google-maps,ggmap
Few days ago I was familiarizing myself with displaying maps, plotting points on the map from http://rpubs.com/nickbearman/r-google-map-making Today, I have intermittent success in displaying maps. library(ggmap) map <- qmap('Anaheim', zoom = 10, maptype = 'roadmap') Outputs Map from URL : http://maps.googleapis.com/maps/api/staticmap?center=Anaheim&zoom=10&size=640x640&scale=2&maptype=roadmap&language=en-EN&sensor=false And when I go to the URL...

Raty Star rating in Google map infowindow

javascript,google-maps,google-maps-api-3,infowindow,raty
I have added marker on google map with some search results. var infowindow = new google.maps.InfoWindow(); var marker, i; for (i = 0; i < locations.length; i++) { var contentString="";var image_path1=""; contentString += '<div class="browse-map-venue" style="padding:5px;width: 230px;">'; contentString += '<div class="rating" style="float: right; padding-right: 10px;">'; contentString += '<script type="text/javascript" src="<?php...

Google maps styled marker z-index change not working

javascript,jquery,google-maps,google-maps-api-3
In this page I am trying to bring a clicked (styled) marker (or one selected using the vorige/volgende - previous/next - buttons) to the top by setting zIndex to google.maps.Marker.MAX_ZINDEX + 1 (and restoring zIndex to the previous value upon another marker being clicked) using this.styleIcon.set('zIndex', google.maps.Marker.MAX_ZINDEX + 1); in...

Trying to add a button beside google map search: difficulty align using css and bootstrap

css,google-maps,bootstrap
Nothing seems to work!!! This is one of the attempts: I want a search button beside the search bar, in google map. the lay out and the code is pretty much line for line from this: google maps search example <div class="row"> <input id="pac-input" class="controls" type="text" placeholder="Search Box"> <button id...

How do i add a marker on maps in android programming

android,google-maps
So for some reason when i try adding a marker to a geopoint, the marker fails to show up at the given location. I tried researching what could be the problem but for some reason my code seems to follow everything that i researched on. Can someone guide me in...

Why Does Map Marker Lurch Around The Map

java,android,google-maps,google-maps-android-api-2
I'm in Android Studio and I have a map fragment (com.google.android.gms.maps.SupportMapFragment) that has two markers. One is static and called Target. The other tracks my movements and is called Hunter. It works but the problem is that the Hunter marker lurches about. I have the update interval set at 15...

How to get a value from label and put in document.getElementById('label').innerHTML

javascript,html,asp.net,google-maps
I have copied JavaScript google Maps and it works perfect, but I need to get the type of html control and set it to JavaScript. When I'm trying to get value from lblTitle it doesn't work. <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Google Maps Geocoding Demo 1</title> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> <script...

Google map api load grey map instead of map images

javascript,jquery,google-maps,google-maps-api-3
i am having this weird issue with google maps api. I am trying to show map with clickable pins where data is loaded from api. Everything seems to work: data is loaded, pins appear, toggles work... however map is just grey - no map images are loaded. Its draggable, markup...

Tracing routes in Android

android,google-maps,google-maps-android-api-2
Recently I've been trying this example code I found which helps me to apply in my android application. This is the link to that example code -> http://mrbool.com/google-directions-api-tracing-routes-in-android/32001 However, in that I'm getting an Error in the nodeListStep = elementLeg.getElementsByTagName("step"); and decodePolylines(elementStep.getElementsByTagName("points").item(0).getTextContent()); saying it cannot resolved method. Is there anything...

Showing content from an Array inside infowindow on marker click

javascript,google-maps,infowindow,geocode,google-geocoding-api
i got an api endpoint that returns an array of addresses and some price information for the addresses but it doesn't return lat/lang, so i am using geocode to show the marker for the addresses on the map and showing infowindow on each marker click. Now i want the content...

I need to assign a value of java-script variable inside in function into php variable in a same file

javascript,php,google-maps
I need to get the total value inside the computeTotalDistance() function into php variable. I tried it many ways but was pointless. var rendererOptions = { draggable: true }; var directionsDisplay = new google.maps.DirectionsRenderer(rendererOptions); ; var directionsService = new google.maps.DirectionsService(); var map; var Srilanka = new google.maps.LatLng(6.9344, 79.8428); function initialize()...

how to display google map with out having internet connection in android

android,google-maps,google-maps-android-api-2
My google map is not displaying with out having internet connection.google map is not loaded.but getting current location latitude and longitude.how to get google map with out having internet connection.I tried below code. 'public class MainActivity extends FragmentActivity implements LocationListener { private static final int GPS_ERRORDIALOG_REQUEST = 0; GoogleMap googleMap;...

Increase accuracy of GPS (in HTML5 geolocation)

javascript,google-maps,gps
How can increase the accuracy of GPS in this code? var map; function initialize() { var mapOptions = { zoom: 18 }; map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); // Try HTML5 geolocation if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var pos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); var marker = new google.maps.Marker({ position: pos, map: map,...

How to update kml file/layer dynamically?

javascript,google-maps,google-maps-api-3,kml,parcel
I am using a kml file for displaying map with custom boundary lines. That kml file is downloaded from some website. In that file, inside the placemark tag there is no point tag for display icons. Eg: <Placemark> <name>Spot 2</name> <description>.....</description> <styleUrl>....</styleUrl> <MultiGeometry><Polygon><outerBoundaryIs><LinearRing><coordinates> ......... </coordinates></LinearRing></outerBoundaryIs></Polygon></MultiGeometry>...

how can i plot a route map?

javascript,google-maps,plot
I am writing a simple application to plot multiple marker in the google map and connect it thought a path as it looks like a route . I can plot multiple marker . and search some article which plot the route map . but i can not plot it ....

New Google Maps query string syntax for a marker

google-maps,query-string
In my web page code, I used to have a link to open a new window with Google Maps initialized like this: http://maps.google.com/maps?q=loc:{{lat}},{{long}}&z=14 and it was showing a marker. With the new google maps, this syntax does not work completely, as the zoom level is not taken into account. So...

How to permanently change behavior of markers for app?

android,google-maps,marker
I want to make it so that when a user creates a marker in google maps, it is able to be double clicked (or held on or something) and bring up a new Activity. Right now I have it so that I create a marker on the map manually and...

Cannot get the my location dot for Google Maps iOS SDK

ios,objective-c,google-maps,google-maps-sdk-ios
Currently, I am not able to get my location in the app I am developing. Basically, in the documentation for Google Maps iOS SDK, Google mentions that you can: enable the blue "My Location" dot and compass direction by setting myLocationEnabled on GMSMapView https://developers.google.com/maps/documentation/ios/map#my_location However, when I do that, the...

Google Map won't display when page accessed through Rails urlhelper generated link

javascript,jquery,ruby-on-rails,google-maps
I am new to Rails and having trouble understanding why my map won't display. My source is here and currently hosted here for testing purposes. When I load the home page, and click on the button for the contact page, the google map will not show. However, if I access...

Update markers on google maps on new wikimapia place request

android,google-maps,google-maps-markers
I am newbie in android development and working on android application in which i am using google maps along with wikimapia request api. I am showing some buttons on the screen lets say Police, Hospital, Metro. When i click on the button let say "Police" it sends wikimapia request and...

Geocoder class gives wrong coordinates and won't parse coordinates to get street address. Xamarin

android,google-maps,xamarin,monodroid
I typed in the code from http://developer.xamarin.com/recipes/android/os_device_resources/gps/get_current_device_location/ and I keep getting the coordinates for the Xamarin office in San Francisco as my current location when I run the app. I have installed the Google Maps apk on my Nexus 4 (KitKat) API 19 emulator and Google Maps displays my current...

google maps click event not working completely correct

javascript,jquery,google-maps
I use the following script to generate this page function initialize() { var mapCanvas = document.getElementById('map'); var mapOptions = {center:new google.maps.LatLng(latitudeMid,longitudeMid),zoom:15,mapTypeId:google.maps.MapTypeId.ROADMAP,streetViewControl:false,mapTypeControl:true,scaleControl:true,scaleControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT}}; var map = new google.maps.Map(mapCanvas, mapOptions); var i; var insertion; var previousMarker; // ------------------------------- //show locations on the map //...

AngularJS Custom Google Maps directive with error: 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.`

angularjs,google-maps
I would like to create a simple directive in AngularJS that displays a Google Maps according to a location. I´m getting this error: Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. I have created next plunker to reproduce the problem: http://plnkr.co/edit/Fnmanw1sjblKTJNmYGaV?p=preview...

Load Google Maps in a tab when tab is picked, and not from begining

java,android,google-maps,android-fragments,tabs
I have a TabLayout with 2 tabs. First tab ( Main tab ) is a list of store in a listview Second tab is the same list in a Google Maps. I noticed that When I go by default in the first tab ( list ), the GPS icon appears...

Google map infowindow position

javascript,google-maps,events,infowindow
Here is a sample google map with three polygons. I am setting the infowindow for each polygon as, for (var i in coordinates) { arr = []; for (var j=0; j < coordinates[i].length; j++) { arr.push( new google.maps.LatLng( parseFloat(coordinates[i][j][0]), parseFloat(coordinates[i][j][1]) )); bounds.extend(arr[arr.length-1]) } // Construct the polygon. polygons.push(new google.maps.Polygon({ paths:...

Android Google Maps is blank in release mode

android,google-maps
The normal solution to this posted problem is that the SHA1 key is different for the release version and needs to be changed on the google developer console. I updated it and cannot get it to work. My Google Maps API_KEY currently allows any android application in (the Android applications...

GeoGoogle - Google Geocoder Java API

java,google-maps,geolocation,geocoding
Is still valid this project or it is deprecated ? I got a 404 Error checking the examples http://code.google.com/apis/maps/documentation/index.html#Geocoding_Examples

Android Google Mapview Activity not opening in Android Studio

android,google-maps,mapactivity
I am new to Android and am trying to display a Google Map on an Android Phone. I created the API Key that should work for any Android App ( I did not give any specific SHA for my app). I am guessing that should not matter. Using the Google...

How to add Google Maps to Android with the latest build?

java,android,xml,google-maps
To begin with - I have read 50 different threads on how to do this but they are all either outdated or full of errors when I try to implement them. Also - this application is not for commercial use but a practise project for myself only. I followed the...

ANDROID PLACE_PICKER (builder.build(context)

android,google-maps,google-places-api
Basically I am trying to implement a PLACE_PICKER for Android and I am getting this confusing error here: int PLACE_PICKER_REQUEST = 1; PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder(); Context context = getApplicationContext(); startActivityForResult(builder.build(context), PLACE_PICKER_REQUEST); The error is coming in line 4:" (builder.build(context), " and I have no idea why, I am...

Use Google Map V3 API ClientID in Application with no URL

javascript,google-maps,google-maps-api-3,webbrowser-control
Need to get Google Map V3 API work in my application with purchased ClientID. The application is using WebBrowser Control to load html into documentText and the Url is 'about:blank'. The problem is I can't put about:blank into authorized URLs list in google map console. Also I can't host html...

Core Location and UITableView performance issues in iOS 8

objective-c,uitableview,google-maps,ios8,core-location
I have a view controller that contains two views: a map view using the Google Maps API and a UITableView. The view controller fetches a list of location objects from Google Maps within a certain radius of a particular location and plots them on the map view as markers and...

unable to hide two dimensional marker array in Google API 3

javascript,arrays,google-maps,google-maps-api-3
My marker is at the end I am unable to hide the marker using setMap, Error in Console Please help! Thanks in advance markers[i][j].setMap(null); markers.setMap(null); var markers = [ ['office', 'Albania', 42.158410, 19.940845], ['production plant', 'Albania', 40.198905, 20.039722], ['R&D service', 'Albania', 41.090835, 19.545337], ['office', 'Algeria', 28.164666, 3.160335] ]; `Uncaught...

vb google maps specific location

vb.net,google-maps
Imports System.Windows.Threading Imports System.Threading Imports System.Net Imports System.Drawing Imports System.IO Imports Microsoft.Win32 Class Window1 #Region "Fields" Private geoDoc As XDocument Private location As String Private zoom As Integer Private saveDialog As New SaveFileDialog Private mapType As String Private lat As Double Private lng As Double #End Region Private Sub...

google maps scaleControlOptions changing position of scale on map

javascript,html5,google-maps,google-maps-api-3,html5-canvas
I noticed that there was no option to change the position of the scale on google maps using scaleControlOptions (correct me if I'm wrong) and was wondering if there was any way to get around that and display the scale on the bottom left position.

Add Marker in Angular-Google-Maps

javascript,angularjs,google-maps,google-maps-api-3
I'm currently having some trouble adding a marker on click to Google Maps. I'm using http://angular-ui.github.io . Here is my code: HTML: <ui-gmap-google-map center='map.center' zoom='map.zoom' events="map.events"> <ui-gmap-marker coords="map.marker.coords" idKey="map.marker.id"></ui-gmap-marker> </ui-gmap-google-map> And there is my JS: $scope.map = { center: { latitude: alat.value, longitude: alon.value }, zoom: 15, streetViewControl: false, events:...

Show Rating bar in google marker

android,google-maps
I have been trying to put a rating bar into my google marker, yet failed to find a way to do it. i followed this example Using Layout as Custom Marker. is there any way i can put a rating bar inside the google marker?

Google maps not working in Firefox (gray box)

javascript,google-maps,firefox,google-maps-api-3
I have a plugin I'm working on that uses the Google Maps API v3. Works like a charm, except in Firefox! I present to you the following URL: [REDACTED BECAUSE SOLVED]. You'll notice that if you're using firefox there is a gray box with google maps stuff available. If you...

Ruby Geocoder Access Result info

ruby-on-rails,ruby,google-maps
I'm trying to get the state/county from a Geocoder method. So right now I'm doing result = Geocoder.search('53593'). Which returns this: Geocoder: HTTP request being made for http://maps.googleapis.com/maps/api/geocode/json?address=53593&language=en&sensor=false => [#<Geocoder::Result::Google:0x000001092deab0 @data={"address_components"=>[{"long_name"=>"53593", "short_name"=>"53593", "types"=>["postal_code"]}, {"long_name"=>"Verona", "short_name"=>"Verona", "types"=>["locality", "political"]},...

Want a floating window in google map. Something like this: Is there a name for this object? (link/image included.)

css,google-maps
[This is what I want to do: ]( https://developers.google.com/maps/documentation/javascript/?csw=1#Custom_Controls) What is the floating window called? (which says base maps, with drop down list.) It's not over lay, nor infowindow, what is it? ...

Info Window not closing automatically (Google Maps)

javascript,html,google-maps
I have created a map http://userpages.flemingc.on.ca/~eluli/example3.html When the layers are turned on, I click on them to see the InfoWindow. As you can see from the link, the InfoWindows do not automatically close when I click on an another layer. My JavaScript code is as follows. The problem lies in...

Google Map Direction using comgooglemaps

ios,google-maps,directions
I am using google map directions I am trying that code but it doesn't work if ([[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString:@"comgooglemaps://"]]) { [[UIApplication sharedApplication] openURL: [NSURL URLWithString:@"comgooglemaps://?center=40.765819,-73.975866&zoom=14&views=traffic"]]; } else { NSLog(@"Can't use comgooglemaps://"); } There is always message that "Can't use comgooglemaps:// Is There any additional setting to use this....

mapFragment.getMapAsync(this) - NullPointerException

android,google-maps,android-maps-v2
I am using com.google.android.gms:play-services-maps:7.5.0 version of Google Maps services. When trying to call the below I get java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.android.gms.maps.OnMapReadyCallback)' on a null object reference. @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { SupportMapFragment mapFragment = (SupportMapFragment) getActivity().getSupportFragmentManager()...

How to generate a component multiple times in JSF?

google-maps,jsf-2,gmaps4jsf
I need to highlight the boundary of a country, for which I am using GMaps4JSF aimed at integrating Google maps with JSF. To draw polygon and polylines, the library provides polygonComponent polylineComponent components. I have loaded the data points from the fusion tables into our own DB. <m:map width="1000px" height="500px">...

Initializing google map depending on form results

javascript,ruby-on-rails,ajax,google-maps
So I have a form with just a select field. Depending on what the user selected markers will get rendered through AJAX on the map. The thing is how to initialize the function and create the map. I just found that people are doing it this way: google.maps.event.addDomListener(window, 'load', initialize);...

What is wrong with this Google Elevation API URL?

python,google-maps,url,polyline,http-status-code-400
I am making an application using mainly Python to find the most fuel efficient route using primarily Google Maps data. I have been using the Encoded Polyline Algorithm to get elevation data, as well as a small Python module for the conversions. Normally, the conversion from LatLngs into polyline works...

Google Maps Error - Android app ¦¦ v2

android,google-maps,android-maps-v2
I'm trying to add a map to my layout on an android app but I get the below code: 06-16 20:51:06.142 17581-17581/wk.gon250.dublinbike E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{wk.gon250.dublinbike/wk.gon250.dublinbike.StationDetailsActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class fragment at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2266) at...

Google map infowindow position on custom marker

javascript,css,google-maps,google-maps-api-3
I'm not using the Markers in Google Maps because I wish to render custom text and images on my marker, so what I did is a custom marker using Overlays. The Overlay position is not exactly like the marker so I played a bit with it and now it is...

angular-google-map angular set radius with range slider

javascript,angularjs,google-maps,angular-google-maps
I try to have a page with a range slider (using https://github.com/danielcrisp/angular-rangeslider) that controls radius of my Google Maps circle. Here's the content of my controller: //range $scope.sliderValue = 10; $scope.center = { latitude: 51.1771171, longitude: 4.3532966 }; $scope.sliderChange = function() { console.log("slider value changed : " + $scope.sliderValue); //$scope.map.circle...

How to get location after updates?

java,android,google-maps
I followed a tutorial to use google maps API to get last known location or request location updates if there were no such location. Here is my onConnected method @Override public void onConnected(Bundle bundle) { Location location = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient); if (location == null) { LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest, this); Log.v(TAG, "old location"...

how to use geocoder class to retrieve latitude and longitude through ajax

javascript,ajax,google-maps
the json array which contains the list of addresses [ { "id": 0, "title": "Coop.Sociale Prassi e Ricerca Onlus", "latitude": 0, "longitude": 0, "address": "Viale Eleonora D'Arborea 12, Roma, IT" }, { "id": 0, "title": "San Lorenzo", "latitude": 0, "longitude": 0, "address": "Viale della Primavera 330, Roma, IT" },...

How to implement centered marker in Google Maps API v3 with Ionic & Angular

javascript,angularjs,google-maps,google-maps-api-3,ionic
I have created a map in my Ionic project using Maps API v3 and ngCordova to get my current location and with the following code: var options = {timeout: 10000, enablehighAccuracy: false}; $cordovaGeolocation.getCurrentPosition(options) .then(function (position) { var myLat = position.coords.latitude; var myLong = position.coords.longitude; console.log(myLat, myLong); var center = new...

Using maps on api 21+ inside of tab

android,google-maps,android-fragments
I am just working on an application trying to learn a lot of the newer technology with API 21 / API 22. I am relatively new to android In general, but just want to make sure I am doing everything the up to date way. In my app I have...

Google Maps v2 for Android map tiles overlapping

android,google-maps,mapbox
I use custom UrlTileProvider to load tiles from MapBox. public class MapboxTileProvider extends UrlTileProvider { public MapboxTileProvider(int width, int height) { super(width, height); } @Override public URL getTileUrl(int x, int y, int z) { try { return new URL(String.format(MAP_BASE_URL, z, x, y)); } catch (MalformedURLException e) { throw new RuntimeException("Failed...

export KML google map

javascript,google-maps,google-maps-api-3,google-maps-markers
I use google map APIv3, I create my map with different marker and I create an itinerary everything works. My question is: I want export my itinerary in KML file with javascript, I have make lot of serch but no good answer or tuto found, anyone have solution or export...

Android Maps Utils Clustering show InfoWindow

android,google-maps,google-maps-markers,infowindow
I am planning to use the google maps marker clustering available in the utils library, but the google example app only shows marker clusters without any infoWindow. I am wondering now, am I not able to show a InfoWindow? I want the InfoWindow to be displayed on the marker like...

Using variables for longitude and latitude with google maps api

javascript,google-maps
I've just started using the google maps API for browsers but I can't seem to get it to work when I place variables in the longitude/latitude places instead of numbers directly. I need the maps to populate from the value of two input elements. It doesn't work with variables but...

ACF Multiple Map Markers

wordpress,google-maps,google-maps-api-3,acf
I'm using Advanced Custom Fields and want to pull in the field called 'location' to display some locations on a map. How would i adjust the following code to display multiple markers from my location field? The format of the custom field is like so: echo 'Location: ' . get_field('location');...

Uncaught error: Invalid type for google table column

javascript,json,google-maps,google-visualization
I recently started using google visualization due to its simplicity. But while implementing in my recent project i seem to have run into a bit of trouble. The program shown is used to pull data from a JSON object and utilize it to display data in the google tables. Now...

Remove Markers from Google Maps [on hold]

javascript,google-maps
I'm using the following Code for creating my markers: <pre> var marker = new google.maps.Marker({ position: siteLatLng, map: map, icon: 'https://maps.google.com/mapfiles/kml/shapes/schools_maps.png', title: value2["title"], zIndex: 4, html: value2["content"] }); </pre> Now I want to remove all Markers from my map, that was created by <pre> var centerMap = new google.maps.LatLng(50, 10);...

How to fully disable streetview from google maps

google-maps,google-maps-api-3,google-street-view
I've disabled streetview controls like so: var mapOptions = { zoom: 16, center: myCenter, streetViewControl:false }; var map = new google.maps.Map( document.getElementById("map"), mapOptions ); Which takes the streetview control off of the map BUT if you click on a point of interest with a panoramic image / link to streetview...

How can I center the GMSMapMarker view in a coordinate

ios,google-maps,maps,markers,gmsmapview
Is there a way to center the orange arrow (a GMSMapMarker) in a coordinate, changing the view frame or something? I'm using Google Maps for iOS. I can rotate the view with an angle, but I want to set the view's center in a custom coordinate....

android google maps walking directions

android,google-maps,android-maps
I am developing an android application using google maps api v2. The problem is google maps shows directions depending upon the road routes even if it is a open ground. For example, take these two LatLng LatLng1 : -33.891143, 151.224473 LatLng2 : -33.891580, 151.225336 http://i.stack.imgur.com/Xt0Ox.png But I want to show...

Issue with Google Maps toScreenLocation() method Android

android,google-maps,opengl-es-2.0,google-maps-api-2
As the title mentions, I'm having issues with the toScreenLocation() with Google Maps. I'm trying to pick arbitrary points on Google Maps that I am broadcasting to my Google Maps fragment. Within the fragment, I want to get the Screen Point this LatLng coordinate corresponds with. However, most of the...

mouse over of lower z-index is called even when its hidden behind the more z-index element

javascript,css,html5,google-maps,google-maps-markers
I've divs overlayed on google maps which have 2 views 1) normal view 2) enlarged view on hover normal view is shown at: (unable to attach image inline ) https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xfa1/t31.0-8/11411745_872499649497061_676791784342303480_o.jpg When I hover on element1 it enlarges its view and I've set its z-index to high but another element which...

I want to insert few location in to java script array using a another array

javascript,google-maps
This function gets the total distance among few locations. Normally it works with this array without following getLocations array and for loop. waypoints: [{location: 'Galle'},{location: 'Kandy'},{location: 'minneriya wildlife park'}, {location: 'Horton Plains'}], Now I want to insert those location into getLocations array using for loop like following: function getDistance() {...

Create a unique URL for linking to data pulled from a database [closed]

javascript,html,sql,google-maps,maps
Is it possible to create a unique URL to link to information that is called and displayed from a database? [I am struggling to articulate this question, so any suggestions for revising it are welcome.] Specifics: I have a page that includes an embedded map and related information about each...

Android Google Map in FragmentDialog being overlayed by the Dialog's own gray overlay

android,google-maps,android-layout,android-fragments,layout
I just migrated a MapView from an Activity's layout to a DialogFragment. It was a pretty painless migration: A button on the activity launches the dialog, setting the LatLng the map requires: case R.id.btn_open_map: android.support.v4.app.FragmentManager fragmentManager = getSupportFragmentManager(); DirectionsMapDialogFragment mapDialogFragment = new DirectionsMapDialogFragment(); mapDialogFragment.setLatLng(mLatLng); mapDialogFragment.setRetainInstance(false); mapDialogFragment.show(fragmentManager, "fragmentName"); break; In the...

Object doesn't support property or method 'setMap'

javascript,html,ajax,google-maps
I am designing my code with JqueryMobile, and now I get this weird error (that I did not get before): Object doesn't support property or method 'setMap'. As a result, getCurrentPosition is not working properly, and I can't get the actual user's position. this is the code with the links:...

Geochart - mark one country with a special color

javascript,google-maps,charts
There is a standard example of Google Geochart, countries have a scale color depends on value. My question is how to mark one country, for example Canada, with an red one, but leave another countries like before. It is ok if Canada will be without value, just how to mark...

Touch events for google maps on mobile

javascript,jquery,google-maps,google-maps-api-3
In my app I am using google maps and I am creating locations on the maps once the user right clicks. I have this event doing the trick for me google.maps.event.addListener(map, 'rightclick', function (e) { if (checkDistance(e.latLng)) { if (viewModel.haveRolesToDoStuffOnProjectLevel()) { geocoder.geocode({ location: e.latLng }, function (result) { if (result.length...

Google Maps adding marker from ajax using jquery

javascript,jquery,google-maps,google-maps-api-3
I am trying to add google maps to my web page, the web page has div with id of radar with width specified. I get coordinates from a second page using jquery ajax method, and plot them on the map using Marker. But only the last marker is displayed nothing...

Call php from javascript

javascript,php,html,web-services,google-maps
I have an index.php which contains both JS and PHP code. The PHP code reads GPS coordinates from an iOS app and the JS reads these coordinates back to be displayed on a web app. I am stuck on figuring out how to call the PHP every few seconds so...

Hidden labels reappear when switching to satellite view

javascript,google-maps,google-maps-api-3
I've got a custom style applied to a Javascript Google Maps API (v3.20). I'm using a custom style which hides all labels except for roads and water. The labels hide properly when in Map view, but upon switching to satellite, the labels reappear permanently (unless you uncheck the checkbox under...

Reverse GeoCoordinate Class gives Location Not found error

android,api,google-maps,google-maps-api-3,reverse-geocoding
i m using google Reverse Geocoding API in my app, i m succussfully able to get get coordinate using google geolocation API. Now i m trying to get Location Name from Reverse Geocoding API , but always returns Location not found error here is my code: Geocoder geocoder= new Geocoder(MainActivity.this,...

Google map get center does not return valid longitude

javascript,php,google-maps
I am working with google map.i am facing issue When I have dragged the map to reach to the -180 longitude, after dragging so far to the left side. If I click on "Get center" button it is giving wrong longitude. var map; function initialize() { var mapOpt = {...

Leaving a function to hide the map causes it to show a wrong location as its centre

javascript,jquery,google-maps,google-maps-api-3
I have a map and two buttons. One to show and the other to hide the map. If I remove hideMap function the map will be shown properly (Show all markers and they are at the centre of the map), but if I leave the hideMap function, the map still...

Add or Remove Polygons Based on Zoom Levels

javascript,google-maps
I am trying to add and remove polygons based on the zoom levels in Google Maps. This is what I am using to detect the zoom change in order to add or remove the polygons. google.maps.event.addListener(map, 'zoom_changed', function () { if (map.getZoom() <= 13) { polygons.setMap(null); } else { polygons.setMap(map);...

How to plot data points at particular location in a map in R

r,google-maps,ggmap
I have a dataset that looks like this: LOCALITY numbers 1 Airoli 72 2 Andheri East 286 3 Andheri west 208 4 Arya Nagar 5 5 Asalfa 7 6 Bandra East 36 7 Bandra West 72 I want to plot bubbles (bigger the number bigger would be the bubble) inside...

Is it possible to filter the GMSPlacePicker based on place type/category

ios,google-maps,google-places-api
Using the new google places api for ios, is it possible to filter the results returned via GMSPlacePicker based on place type/category. For example, if I want to return all the gas_station types nearby. Basically, I'm looking for something like GMSAutocompleteFilter, but for GMSPlacePicker....

SVG Marker on Google Maps Not Appearing

javascript,google-maps,google-maps-api-3,svg
When I copy Google's example code for SVG markers, everything works fine, but when I create my own SVG marker in Inkscape, the icon doesn't appear. var walkIcon = { path: 'm 375.65048,522.72658 c 1.40058,1.33792 3.38088,2.4914 3.58389,4.62022 0.33282,1.7212 1.62154,3.13596 3.271,3.67594 1.03889,0.25403 1.6602,2.07967 0.0883,1.75669 -1.5495,-0.2461 -2.78641,-1.31821 -4.00567,-2.21914 -0.57041,-1.04216 -2.10653,-2.1964 -2.20994,-0.258 -0.60169,1.67286...

Google geocoding viewports

google-maps
Does the viewports in the Google geocoding represents the boundary boxes of the location ? Iam trying to use google viewports of particular city or location to search for the latitude and longitude values that fall in those bounding values. I have two tables called tblproperty and tblemailalerts, tblproperty has...

distanceBetween or other way to check if current position is in radius to marker

java,android,google-maps,location,latitude-longitude
I want to check if the current location of the user is in a certain radius to a marker. Should I do it with distanceBetween()? What arguments to I have to pass this function and what exactly does the result say? LatLng markerPosition = marker.getPosition(); myLocation = locationManager.getLastKnownLocation(provider); double latitude...

Dynamically change Google Maps icon by type in array data

javascript,arrays,google-maps,google-maps-api-3
I am completely new to javascript and have been tasked with converting an old jvector map to the google maps API. I think i'm doing pretty well so far! I've managed to get the map to populate with all the right markers in all the assigned spots, with nice shiny...

Facing error on Maps API v3 Places Autocomplete Form

jquery,google-maps,google-maps-api-3,autocomplete
I am using Maps API v3 Places Autocomplete form last few month for my project but when I am adding to another page Places Autocomplete is not working. I am getting error on this line: for (var component in componentForm) { document.getElementById(component).value = ''; document.getElementById(component).disabled = false; } and getting...

Attaching different infowindows to group of polygons google maps

javascript,arrays,google-maps,google-maps-api-3,polygons
Right now my code looks like this: // create a LatLng array out of given coordinates string for (var i = 0; i < coordinateString.length; i++) { var polygonCoords = new Array(); var j = 0; var z = j + 1; while (z < coordinate.length) { if ((j%2) ===...

I can't get google maps API to work with my simple web page?

javascript,google-maps
I followed the w3schools javascript tutorial exactly, but I can not get these google maps to load on my simple web page. Help please! Pretty new to javascript. I'm just typing more here to increase my english:code ratio for stackoverflow. <!DOCTYPE html> <html> <head> <title>title</title> <link rel="stylesheet" type="text/css" href="style.css"> <script...

C# GMapControl GetPoint error

c#,google-maps
I'm using the GMap control in C#, in a Windows Form application. I made an app that puts in a map some coordinates. When I use it, from my pc, it works perfectly. When I try to run the app on other PCs, the coordinates are not given. Check the...

stuck making a data frame after using street2coordinates (R)

r,google-maps,ggplot2
I am trying to follow the tutorial outlined here but having trouble But I am running into a problem at this step: my_crime <- data.frame(year=my_crime$Year, community=my_crime$Community.Area, type=my_crime$Primary.Type, arrest=my_crime$Arrest, latitude=my_crime$Latitude, longitude=my_crime$Longitude) My equivalent step is: geocode <- data.frame(latitude=geocode$lat, longitude=geocode$long) I get the following error: Error in geocode$lat : $ operator is...

Change the URL of a KML file that Google Maps references on button click

javascript,google-maps
I would like to initially display an 8 Day Average KML file in Google Maps on first page load, but allow the user to click the "1 Day" and "3 Day" button to have Google Maps reference those instead of the "8 Day". The goal is to create a mini...

How to integrate SQLite with AngularJS?

angularjs,sqlite,google-maps
I'm doing an angularjs app using google maps api v3 and a plugin called ng-map. But I want to store some coordinates in a SQLite database and then retrieve from the app.

Accessing Coordinates in Nested JSON File

javascript,jquery,json,google-maps
I'm trying to access lat/lng of polygons within a nested JSON file and trying to draw them using new google.maps.Polygon(), but having some troubles. UPDATE-2: I am able to draw polygons, but it only draws the first polygon, not all 3: http://jsfiddle.net/vprbqaLm/10/ UPDATE: Check out my latest JSFiddle here: http://jsfiddle.net/vprbqaLm/9/...

Retrive geolocation in real time (HTML5)

javascript,html5,google-maps,gps,geolocation
I have this code: var map; var geocoder; function initialize() { var mapOptions = { zoom: 18 }; map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); // Try HTML5 geolocation if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var pos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); var marker = new google.maps.Marker({ position: pos, map: map, title: 'Posizione Attuale' });...

Load Maps within Fragment

android,google-maps,android-fragments,supportmapfragment
I am developing an app with 2 tabs on swipe, each one loading its Fragment. The first of them is a ListFragment (which it's ok), and the second should load a map, but when I tried to insert Google Map into this Fragment, it crashes the application and displays the...

Google Maps API - Hyperlink in Map Infoview not opening native GoogleMaps

android,google-maps,hyperlink,google-maps-android-api-2,onclicklistener
I am developing a GoogleMap Map with a custom InfoView. In my InfoView, I want a hyperlink opening the native GoogleMap application with my longitude and latitude on Click. I've tried by using the Common Intents API Guide and creating a hyperlink with this syntax: geo:latitude,longitude and in my code:...

Creating a text input field precisely where a user clicks on a Google Map

google-maps,google-maps-api-3
Right now I have a Google Map which places a mapLabel that says "Hello!" wherever a user clicks (and binds it to that Lat/Long) This is done simply by google.maps.event.addListener(map, 'click', function(e) { placeLabel(e.latLng, map); }); and function placeLabel(position, map) { var mapLabel = new MapLabel({ text: 'Hello!', position: position,...

How do I exclude data from an API call that have a value of nil in Ruby?

ruby-on-rails,ruby,json,google-maps,hashes
I'm trying to pull user data from the NationBuilder API to display on Google Maps. I need the latitude and longitude of these users, and if an address is given, NationBuilder will provide 'lat' and 'lng' values in the JSON hash. But some of the users in the database don't...