maps

Google Static Maps API with encoded polyline

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have made a request to google directions API and recived the following JSON directions: (file to large to copy here) https://gist.githubusercontent.com/crooksey/9930819/raw/947e4d17a93ca94b78216d92fbd94b281966dede/directions_api At the bottom, I get the encoded polyline data: ecduHxqrE|RfS{SlW_w@zDc{@ig@cVlK}z@j}Aog@z{AuGbdDibAfkGaBpcG}~@vrGy_AhhCoi@feB{bBxu@kxAsSus@|eAcLdyBci@dcByi@ly@`GrgC_S~d@e\\wBugA_uBwuAusAoaCidAs~Dq{DiaAu`CuwAweAevBi@}dDwgCsrAwfBuqFkmBwzEu~DenAa|Bi_BcuDmrAghF_{B_hGa{@chAocAl[m_@pXwk@{z@}Zc~A_hAmn@mdAinBg_@eD{o@moA{_

Google Maps JavaScript API RefererNotAllowedMapError

匿名 (未验证) 提交于 2019-12-03 03:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We're trying to develop an geoplacement app for one of our clients, and we want first to test it in out own domain. We have signed for Google Maps JavaScript API, and we have a valid browser key and our domain, www.grupocamaleon.com, has been authorized to use that key. But we can't make even the easiest example to run without error. We have, in our domain and with our key, the following demo: (1) http://www.grupocamaleon.com/boceto/aerial-simple.html But it doesn't work, and Firebug console says: "Google Maps API error: Google Maps API

Bing Maps Ajax API - get location from address

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Microsoft.Maps API (AJAX control v. 7). I want to display pin for an address. When I use: var loc = new Microsoft.Maps.Location(47.592, -122.332); var pOptions = {icon: 'img/ICN_Bullet_Blue_25x38.gif', text: '1'}; var pin = new Microsoft.Maps.Pushpin(loc, pOptions); It's working fine. How can I get latitude and longitude from address, so I will later use it for pin location ? 回答1: Bing Maps includes geocoding support (finding location by addresses). You have two options for this: Use the REST api directly. http://msdn.microsoft.com

InvalidStateError: “An attempt was made to use an object that is not, or is no longer, usable” in basic Google Map tutorial example

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an XML, which is transformed to HTML via an XSLT. The XML is able to contain JavaScript, and it translates this correctly to HTML, as I do in many other pages as well. It just does not work with GoogleMaps, and I suspect, my JavaScript is faulty somewhere. The relevant sections of the resulting HTML look like posted below. What's happening in the HTML/in the Scripts: The API is loaded from googleapis.com A div with the ID map_canvas is created. A function start() is defined, which is started via <body onload="start();"> . In this

Mapbox GL using external maps

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to use Mapbox GL in my Android application. This service is going to be released soon and I have a tricky question about using the renderer. I like the renderer itself, but I really want to use my own maps data in the application (not the data, offered by Mapbox and which is paid). For instance, I want to parse OpenStreetMaps data on my own, customise it somehow and then put inside of a renderer to show it in my application. And now the question: is it possible to use my own maps data while using Mapbox GL? Or it can be only used with

Creating Gif Image Color Maps in iOS 11

匿名 (未验证) 提交于 2019-12-03 03:05:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I recently was having an issue when creating a Gif where if it got too big colors went missing. However thanks to help from SO someone was able to help me find a work around and create my own color map. Previous Question here... iOS Colors Incorrect When Saving Animated Gif This worked great up until iOS 11. I can't find anything in the docs that changed and would make this no longer work. What I have found is if I remove kCGImagePropertyGIFImageColorMap A gif is generated but it has the original issue where colors go missing if

Cannot resolve symbol &#039;OnMapReadyCallback&#039; Issue

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am following Google Maps Android "get started" tutorial- https://developers.google.com/maps/documentation/android/ But I came across an error ""Cannot resolve symbol 'OnMapReadyCallback', which might be a easy fix, but is baffling me. This is the code I have for my import statements for the app: import android.app.Activity; import android.support.v4.app.FragmentActivity; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.os.Bundle; import android.support.v4.app.ActionBarDrawerToggle; import android

Where can find all google maps v3 event list?

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: As title, I searched official google maps api reference and other site, I can't find a doc list comprehensive available events. Please give me a hint to get all the v3 events. Thanks a lot. 回答1: API Reference List of all events (with demo) 回答2: In the Google Maps API docs, for google.maps.Map class [no direct listing sorry, but scroll down a bit] there are a list of events which the Map itself will fire. The events are: bounds_changed center_changed click dblclick drag dragend dragstart heading_changed idle maptypeid_changed mousemove

Google Maps and Their Markers

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a JSON array of Marker positions being pulled into a Google map - This works fine. I also have infoWindows linked to each of those markers - These also work fine. However, when I click a marker (in any browser), the infoWindow only appears over the last added marker. Here is a fiddle: http://jsfiddle.net/neuroflux/8WDwn/10/ and here is my loop: for (var a = 0; a < dealer_markers.length; a++) { var tmpLat = dealer_markers[a].lat; var tmpLng = dealer_markers[a].lng; var tmpName = dealer_markers[a].name; var tmpAdr = dealer_markers[a]

any technology to preview high definition photo, can zoom in and out like google maps

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a batch of high definition images, and I want to make use of technologies like google maps to view the images, user can use zoom pan to zoom in and out quickly without downloading the whole big picture file(they only need to download the viewport of the big image). How can I do this? Thanks. Bin 回答1: If the image in question is actually a map or something that can be reasonably overlaid onto a map, use MapTiler ( http://www.maptiler.org/ ) to split it into tiles, then use code like this to display the tiles: var lat=37.767569; var lon