google-maps

The KML file included in google drive that does not recognize

久未见 提交于 2021-01-28 18:22:14
问题 I have tried Displaying KML files in my google Maps application. I used google map api documentation for that. when I load my HTML file, it show only google map. I think this problem about KML file. How do i fix it ..? I have upload KML file into my google drive and I share it as "anyone with the link can edit". However Google Maps API's example is working...!! this is the code :- <script> var map; var src = 'https://drive.google.com/open?id=0B5oAxCVEQK5uZ0tJcFBDaGRfajg'; function initialize(

Google Maps infowindow close event not working

浪尽此生 提交于 2021-01-28 18:14:37
问题 I have create an infowindow in google maps as: var setInfoWindow = function() { infoWindowOpen = true; return new google.maps.InfoWindow({ content: businessAddress }); } This is the open event for infowindow. It is working google.maps.event.addListener(marker, 'click', function() { if(!infoWindowOpen) { setInfoWindow().open(map,marker); currentMark = this; } }); This is the close event for infowindow. It is not working google.maps.event.addListener(infowindow,'closeclick',function(){ var

How can animated marker google map like shown in image in android?

∥☆過路亽.° 提交于 2021-01-28 14:08:11
问题 How can I add this type of animation in google map marker in android? If user tap icon for more than two second then marker clickable How can set this in android? 回答1: Here's an example of the circle approach - first the recording followed by the code. The radius growth is linear here but is obviously a different function in your example (it slows down as it expands) so you'll need to work with that. public void pulseCircleTest() { // arbitrary point LatLng pt = new LatLng(39.171755, -86

Google Map radius to zoom level

耗尽温柔 提交于 2021-01-28 12:50:21
问题 I have a map with a custom UIView on top of it. I'm calculating the radius of the circle of according to the zoom level. func getCenterCoordinate() -> CLLocationCoordinate2D { let centerPoint = self.mapView.center let centerCoordinate = self.mapView.projection.coordinate(for: centerPoint) return centerCoordinate } func getTopCenterCoordinate() -> CLLocationCoordinate2D { // to get coordinate from CGPoint of your map let topCenterCoor = self.mapView.convert(CGPoint(x:self.circleView.frame.size

Google Map radius to zoom level

孤者浪人 提交于 2021-01-28 12:43:02
问题 I have a map with a custom UIView on top of it. I'm calculating the radius of the circle of according to the zoom level. func getCenterCoordinate() -> CLLocationCoordinate2D { let centerPoint = self.mapView.center let centerCoordinate = self.mapView.projection.coordinate(for: centerPoint) return centerCoordinate } func getTopCenterCoordinate() -> CLLocationCoordinate2D { // to get coordinate from CGPoint of your map let topCenterCoor = self.mapView.convert(CGPoint(x:self.circleView.frame.size

Google Maps Javascript v3 Polyline click event

风流意气都作罢 提交于 2021-01-28 12:03:59
问题 I'm trying to make display a map with a number of routes laid out as polylines. When a polyline is clicked I want to display data specific to that line. Associating data with a line isn't a problem, but no matter which line is clicked the data displayed is associated with the most recent line drawn, as if each new polyline overwrites the last. I have a database which contains a link to a gpx file, a link to a video, type of route (which indicates the colour) and some other stuff. The line is

Google Maps Polyline click between points

心已入冬 提交于 2021-01-28 11:46:06
问题 Using Google Maps api 3, I have a polyline with a click event. I need to find out between which two points in the path the user has clicked. Ideally the index of the points. Below is a sample page mostly taken direct from google docs, but added the click event. The actual app has much more complex polylines. Is there are way to do this? Many thanks <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <title>Polylines</title>

Google Maps Polyline click between points

安稳与你 提交于 2021-01-28 11:43:11
问题 Using Google Maps api 3, I have a polyline with a click event. I need to find out between which two points in the path the user has clicked. Ideally the index of the points. Below is a sample page mostly taken direct from google docs, but added the click event. The actual app has much more complex polylines. Is there are way to do this? Many thanks <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <title>Polylines</title>

Google maps - multiple markers with unique infowindows

半腔热情 提交于 2021-01-28 08:02:54
问题 I am creating a map for users on my website. The way it works is I use PHP and AJAX to get all the sites users addresses, I then pass these values to my JS as JSON where I generate a google map centered around the current users address with a marker for each user on the map. This part works at the moment but what I'm struggling with is generating a unique infowindow for each user. As it is right now I get the same info window for all markers, how can I fix this? JS jQuery(document).ready

Cannot interacted with Google Maps on Flutter Web (google_maps)

耗尽温柔 提交于 2021-01-28 07:34:34
问题 I am just learn about Flutter for website. I need to add some google map javascript API and using google_maps dependencies on pub.dev I follow the example from here, but after debugging with VSCode , i found that I cannot interact with the map at all. No hand tools to drag the map, ore even just to click the maps mode (satellite or map mode). I have tried several example from the example link, from the basics to the controlled example. But I still cannot interact with it. No error on terminal