google-maps

What is the difference between these two ways of getting the users location?

二次信任 提交于 2021-02-08 11:21:28
问题 From what I understand this is a way of getting the users location and displaying a blue circle on the google map. /** * Enables the My Location layer if the fine location permission has been granted. */ private void enableMyLocation() { if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) { // Permission to access the location is missing. PermissionUtils.requestPermission(this, LOCATION_PERMISSION_REQUEST_CODE, Manifest

marker cluster locations from database

╄→гoц情女王★ 提交于 2021-02-08 10:22:18
问题 i have been useing a map with markers from sql db and would like to add marker clusters as i get more markers. on it self the code for the map and the code for the marker cluster from https://developers.google.com/maps/documentation/javascript/marker-clustering#maps_marker_clustering-javascript works fine, i have tried to combain them and keep geting a map with no markers . this is the cluster map from google which works fine <!DOCTYPE html> <html> <head> <title>Marker Clustering</title>

Drawing pie charts on google map using for loop does not functioning well

假装没事ソ 提交于 2021-02-08 10:21:02
问题 I tried to draw pi charts on several locations in a google map. I came up with a code which draws pie charts on several locations using a for loop. I need to add a click event to all the pie charts to display a window with pie chart details. But the on click event is not functioning well. Could anyone please help me to come with a solution for this issue. The following is the code I tried with. <html> <head> <link href="http://code.google.com//apis/maps/documentation/javascript/examples

Google Map API v3: check if geojson feature in data layer is visible

情到浓时终转凉″ 提交于 2021-02-08 08:43:38
问题 I use filters to hide or show features/markers in the Data Layer. I try to check which markers are visible after filtering, and if one property of the feature matches one property of an existing polyline (in another json file); then I decide if I show or hide the polyline also. How to know if a certain marker is visible? 回答1: You could set a custom property on the feature and toggle it as you hide and show the feature: feature.setProperty('visible', false); This would have to be done in

Subscript out of bounds for reverse geocoding loop in R

馋奶兔 提交于 2021-02-08 08:12:52
问题 I am attempting to reverse geocode a data-set using the google api key. I managed to run the code and get the desired results for a small sample of 10, but it gives an error Error in rgc$results[[1]] : subscript out of bounds I managed to integrate the api key by using the following code: ` revgx <- mapply(function(latlng, api_key){ url= paste("https://maps.googleapis.com/maps/api/geocode/json?","latlng=",latlng,"&key=",sep="") rgc <- fromJSON(paste(readLines(url), collapse = '')) rgc <- rgc

How to hide tooltip title in google geocharts (and show other info in the tooltip)

霸气de小男生 提交于 2021-02-08 04:45:26
问题 Problem: if you enable the tooltips in google geocharts you cannot change the tooltip title, it's the first column you pass to the google chart draw method. 回答1: Instead of the CSS above to hide the title, you can set the showTitle option for the tooltip to false tooltip: { isHtml: true, showTitle: false } Then you can use HTML markup in your tooltip to display the tooltip exactly the way you want. 回答2: In google geocharts if you enable the tooltip visualization, the title will be the first

Google Street View Maps - Parsing url to use as street image

泪湿孤枕 提交于 2021-02-08 04:11:07
问题 Situation: I'm working on a map feature for a client and I need the ability to get screenshots of a street view, and then display them as a carousel (similar to how Google does it natively). They can choose whatever locations they want in their CMS. The only way I can think of to do this (taking into account non-tech end users) is to allow them to copy and paste the URL from a street view, and then parse it out. For example: https://www.google.com/maps/@60.959789,-149.112111,3a,75y,104.14h,94

Google Street View Maps - Parsing url to use as street image

狂风中的少年 提交于 2021-02-08 04:10:10
问题 Situation: I'm working on a map feature for a client and I need the ability to get screenshots of a street view, and then display them as a carousel (similar to how Google does it natively). They can choose whatever locations they want in their CMS. The only way I can think of to do this (taking into account non-tech end users) is to allow them to copy and paste the URL from a street view, and then parse it out. For example: https://www.google.com/maps/@60.959789,-149.112111,3a,75y,104.14h,94

Google Street View Maps - Parsing url to use as street image

杀马特。学长 韩版系。学妹 提交于 2021-02-08 04:10:08
问题 Situation: I'm working on a map feature for a client and I need the ability to get screenshots of a street view, and then display them as a carousel (similar to how Google does it natively). They can choose whatever locations they want in their CMS. The only way I can think of to do this (taking into account non-tech end users) is to allow them to copy and paste the URL from a street view, and then parse it out. For example: https://www.google.com/maps/@60.959789,-149.112111,3a,75y,104.14h,94

Custom Google Maps marker info view on Xamarin.iOS

半世苍凉 提交于 2021-02-08 03:43:16
问题 The IMapViewDelegate apparently isn't a complete C# implementation of MapViewDelegate from objC. That inhibits the access to markerInfoContents delegate method. I'd like to do something like this allowing me to custom the contentView layout and the tap action got from: http://www.raywenderlich.com/81103/introduction-google-maps-ios-sdk-swift 回答1: I think i can explan its from scratch to add a Custom MarkerInfo Window on the Tap of a Marker . Iam using Xamarin.Google.iOS.Maps package from