google-maps-api-3

AngularJS show pre defined coordinates of user on the map [duplicate]

≡放荡痞女 提交于 2019-12-25 18:48:26
问题 This question already exists : How to put a geolocation marker on users from a db table? Closed 2 years ago . I would show pre defined coordinates of user on the map when I logged it,this is my map map.html <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum

AngularJS show pre defined coordinates of user on the map [duplicate]

独自空忆成欢 提交于 2019-12-25 18:48:25
问题 This question already exists : How to put a geolocation marker on users from a db table? Closed 2 years ago . I would show pre defined coordinates of user on the map when I logged it,this is my map map.html <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum

How can I make a Google Map marker redirect to a URL?

孤街醉人 提交于 2019-12-25 18:48:10
问题 Here is my html: {% extends 'base.html' %} {% block title %}Home{% endblock %} {% block content %} <style> /* Set the size of the div element that contains the map */ #map { height: 700px; /* The height is 400 pixels */ width: 100%; /* The width is the width of the web page */ } </style> <!--The div element for the map --> flavor <div id="map"></div> <script> // Initialize and add the map function initMap() { var map = new google.maps.Map( document.getElementById('map'), {zoom: 4, center: {

if i enter value in text box equalent to polygon value i'm not getting alert msg

痞子三分冷 提交于 2019-12-25 18:46:28
问题 If I drag marker release on polygon I got an alert but if I enter long, latitude values through text box, marker moves but no alert msg ,(marker0, 'dragend', function(e) instead of dragend is there any event to grap values from text box, pls guide me <!DOCTYPE html> <html> <head> <script src="http://maps.googleapis.com/maps/api/js?libraries=geometry"></script> <script> function initialize() { x = document.getElementById("x").value ; y = document.getElementById("y").value ; var latLng = new

Google maps alternative routes won't update

北城以北 提交于 2019-12-25 18:42:46
问题 I have created a directions map from one point to multiple specific point. When one change end point the map should update, and alternative routes should be shown on the right sidebar, with details under it. However, when I change end point it's not updating nicely, sometimes it just add alternative directions under "old" directions,sometimes alternatives are messed up, not really sure what the problem is, though I suspect that there might be a problem if theres's no alternative routes

Google maps alternative routes won't update

試著忘記壹切 提交于 2019-12-25 18:42:26
问题 I have created a directions map from one point to multiple specific point. When one change end point the map should update, and alternative routes should be shown on the right sidebar, with details under it. However, when I change end point it's not updating nicely, sometimes it just add alternative directions under "old" directions,sometimes alternatives are messed up, not really sure what the problem is, though I suspect that there might be a problem if theres's no alternative routes

google maps API geocoding get address components [duplicate]

百般思念 提交于 2019-12-25 18:42:25
问题 This question already has an answer here : How to get country from google maps api? (1 answer) Closed last year . I'm working with google map API(geocoding) and I noticed the following. If I print the array for "x" address, it prints an array of objects of size 9. where the country is in the index 6. If I enter some other "y" address, sometimes the array of objects is less than 9 and the index to get the country is not 6 anymore. I have tried with different addresses as some of them have the

google maps API geocoding get address components [duplicate]

断了今生、忘了曾经 提交于 2019-12-25 18:42:11
问题 This question already has an answer here : How to get country from google maps api? (1 answer) Closed last year . I'm working with google map API(geocoding) and I noticed the following. If I print the array for "x" address, it prints an array of objects of size 9. where the country is in the index 6. If I enter some other "y" address, sometimes the array of objects is less than 9 and the index to get the country is not 6 anymore. I have tried with different addresses as some of them have the

Layer not getting removed - Google Maps

故事扮演 提交于 2019-12-25 18:41:49
问题 I have Google Maps: <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <title>Fusion Tables layers</title> <style> html, body { height: 100%; margin: 0; padding: 0; } #map { height: 100%; } </style> </head> <body> <div id="map"></div> <script> function initMap() { var map = new google.maps.Map(document.getElementById('map'), { zoom: 4, center: {lat: 39.8282, lng: -98.5795} }); google.maps.event.addListener(map, 'zoom

Add many routes using Google Maps Directions Service Over Query Limit

泄露秘密 提交于 2019-12-25 18:36:29
问题 I have an application that requires having many (sometimes over 50) dynamic routes added to the google map. Using the DirectionsService, I am able to add right around 10 routes or so before the requests start to fail with the status of "Over Query Limit". I was wondering if anyone has encountered this situation and has found a way to deal with it. It seems that even if I pause between requests, I am still failing for anything over the first 10. Not sure if there is a request limit for a