maps

Avoiding vertex drag maps api v3

匿名 (未验证) 提交于 2019-12-03 09:19:38
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Very simple. I want to avoid the dragging of the first and last vertices. I've tried using dragstart event, but apparently polyline doesn't listen to that one. I've managed to do something with set_at. I have the last position stored, when set_at is called, I check the index of that vertex, and then set the latLng for that vertex to the old one. This was only possible using setAt function which fires the event again. So a created a ignoreNextEvent flag, so It won't go for an infinite loop. problem is, setAt function os used plenty

App cannot connect to Google servers for access to Google maps

匿名 (未验证) 提交于 2019-12-03 09:18:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been working on an android app for the past little while and I wanted to set it up to connect to Google Maps. I've been writing it inside Eclipse with the ADT plugins. I followed this tutorial but I've been getting the following Error when I try to load maps. "failed to load map. error contacting google servers. this is probably an authentication issue (but could be do to network errors)" Since I can access google maps in other apps it has to be an authentication error. I've tried uninstalling the app from my phone but that does not fix

c# google maps api - javascript errors on the html part

匿名 (未验证) 提交于 2019-12-03 09:18:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I newly want to use the googlemap api to display some markers on a map in a simple C# windows form with visual studio. I use a "web browser" component to display a generated html file with the basic html code from google plus customized coordinate. const string htmlPath = "D:/map.html" ; StreamWriter sw = new StreamWriter ( htmlPath , false , System . Text . Encoding . GetEncoding ( 437 )); string centerLongitude = centerLongitudeTextBox . Text ; string centerLatitude = centerLatitudeTextBox . Text ; sw . WriteLine ( "<!DOCTYPE

Android Firebase remove Google Maps markers

匿名 (未验证) 提交于 2019-12-03 09:18:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Trying to make a small Android app that shows the locations of people as Google Maps markers. when the user presses a button to appear on the map, the app retrieves the users data from the Firebase JSON and shows the users on the map in real time. If a user moves, the marker moves with him (removed and recreated when his location changes). Everything works great, except that when the user presses to leave the map, his marker remains in all the other phones even though it's deleted from the Firebase JSON. Can anyone explain how to fix this

Handling multiple routes with waypoints in Google Maps v3

匿名 (未验证) 提交于 2019-12-03 09:13:36
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to display multiple directions with dragable waypoints and save each waypoints associating with origin, destination in object or database whenever Route.prototype.setWayPoints() is called. This guy is doing that with single route with dragable waypoints (and saving them in database) . http://vikku.info/programming/google-maps-v3/draggable-directions/saving-draggable-directions-saving-waypoints-google-directions-google-maps-v3.htm I want multiple routes not one. I googled a lot but couldn't find anything! Here's what I tried. function

Google maps and Unable to resovle host maps.googleapis.com

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a problem with google maps. I try to add poliline from my current position and position from marker. This is code: I have current location and position from marker and when click to draw polyline I get Unable to resolve host "maps.googleapis.com": No address associated with hostname. And application crash. When start again everything works fine and polyline add to map. Any idea why? 回答1: I resolve my problem using: urlConnection.setReadTimeout(15000 /* milliseconds */); urlConnection.setConnectTimeout(15000 /* milliseconds */);

Virtual Earth / Bing Maps - How To Calculate Best Zoom Level

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on some map stuff and I'm stuck with something that seems to be quite basic. The gist of what I'm doing is adding 10 flags to a map, and I need to dynamically set the zoom level and center of the map based on the position of the pins (map needs to be zoomed in as far as possible while still showing all pins). This works exactly as expected with MultiMap without any intervention (as expected), but the Virtual Earth map doesn't play nice. If I don't give it a center Lat/Lon, it defaults to showing all of the USA. Can anyone point

Map Control won't show up UWP XAML

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to run a simple UWP application on my PC to test the Map Control, using the guidelines in: https://msdn.microsoft.com/en-us/windows/uwp/maps-and-location/display-maps#get-and-set-a-maps-authentication-key I have obtained a map key from Bing Maps Dev Center and assigned it to the map control. However, in the designer the control is shown up with a "This element is enabled only when the application is running" message. When I run the application, nothing is displayed on the application screen. To check if the map is loaded

Google static Maps always returning 403 when a key is provided

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I always get a 403 Forbidden response if I provide an API key within the map request; without specifying it everything goes well and I can get to the map. The problem is that I have to work with an API key in order to monitor usage and per-user quota. Here's an example: http://jsfiddle.net/demerzel3/ZUC6m/ http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyDqq140S23Q_H_dmyUIFz-YwsbH_rCSFSs&size=320x140&scale=2&zoom=15&sensor=false&markers=color:0xEE6B1C|label:A|V.%20FALCONE%207%20CASALETTO%20LODIGIANO%20(LO) In the example above I'm

How can I tell if Google&#039;s Streetview Image API Returns “Sorry, we have no imagery here” (ie. NULL) Result?

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The Google Street View Image API lets you embed a static (non-interactive) Street View panorama or thumbnail into your web page, without the use of JavaScript. Request URL: http://maps.googleapis.com/maps/api/streetview?parameters +The Problem+ If I give it an address for which it doesn't have a Streetview, it returns an image that says, "Sorry, we have no imagery here". Based on the current API, I have no way of detecting if it found a Streetview or not . Anyone have a hack or suggestion for figuring this out? +Examples+ Proper Streetview: