maps

From Google Maps CID to Place ID

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a bunch of links to google maps in the form of https://maps.google.com/?cid=<identifier> . How can you go from that CID to a Place ID that can be used with the Google Places API? Is there any API endpoint that you can use to convert these URLs into the new places? 回答1: Got lucky and found an undocumented api. If you have the CID, you can call the api like https://maps.googleapis.com/maps/api/place/details/json?cid=${CID}&key=YOUR_API_KEY . I just changed place_id=${the_end_val_i_needed} to cid=${CID} and in the json response is the

Function addresses in MFC message maps

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Why are function addresses in message maps generated by the class wizard written with the name of the class explicitely mentioned? For example: ON_BN_CLICKED(IDC_CHECK1, &CMyDlg::OnClickedSomeButton) instead of: ON_BN_CLICKED(IDC_CHECK1, &OnClickedSomeButton) or even: ON_BN_CLICKED(IDC_CHECK1, OnClickedSomeButton) All three variants compile correctly. It's just curiosity. 回答1: All three variants compile correctly. Yes, they compile correctly...on MSVC. If you try to compile the second or third example in Clang (Microsoft compatibility mode)

Google Maps V3 - Resizing Map and Sporadic Map Tile Loading

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Google Maps and the JqueryUI Resizable() method (from JqueryUI 1.8.7). If you click on the bottom-right corner of this map then you can drag and expand it. http://www.energyjustice.net/t=eb5f7o However if you make it wider Google only provides map layers up to around 800 pixels wide. It has a similar problem if you make it taller. If you wait a couple minutes, sometimes the full set of tiles will load. In general when you expand the map it behaves very strangely. It seems to work better in Firefox than in Chrome. Why is this

Google maps error during visualization

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a small directive that handle google map in my Angular application: app.directive('googleMaps', function($rootScope, $q, $window){ var mapLoader = $q.defer(); function loadGoogleApi(key){ var script = document.createElement('script'); script.type = 'text/javascript'; script.src= "https://maps.googleapis.com/maps/api/js?key=" + key + "&callback=initMap"; $('body').append(script); return mapLoader.promise; }; $window.initMap = function(){ mapLoader.resolve(); }; return { restrinct: 'E', link: function($scope, element, attrs){

Google maps link produces slightly moved marker when opened with native iphone/android app

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am building a web app which contains a Google Maps link that can be opened by the native phone Maps app (iPhone/Android). The link has the form: http://maps.google.com/?q="+startCooLat+','+startCooLng; and I have also tried the: http://maps.google.com/?q=loc:"+startCooLat+'+'+startCooLng; However in the native app the marker is positioned in the nearest street and not in the exact coordinates that I am giving. Is there a solution or another parameter to set so as to overcome this issue? 回答1: Instead of questioning (q=.....) google maps for

Google Maps - Android App not load - null object reference

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am currently trying to develop an Android app with google Maps integration. At the moment I have difficulties to find the error, because the code is from the google site itself, except that it is a SupportMapFragment. If you know an actual tutorial with SupportMapFragment would also be great. Actual, because I think .getMap() is depreciated. If I should post the whole code, let me know (I am new in stackoverflow) If try to use this code: import android . content . Context ; import android . location . Criteria ; import android .

Google maps API: Cannot read property &#039;__e3_&#039; of undefined

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Here is the Listener I'm adding - var map; var geocoder; function initialize() { var myOptions = { zoom: 8, center: new google.maps.LatLng(22, 88), mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById('map_canvas'), myOptions); } //google.maps.event.addDomListener(window, 'load', initialize); google.maps.event.addListener(map, 'click', function(event) { geocoder = new google.maps.Geocoder(); geocoder.geocode( { 'latLng': event.latLng}, function(results, status) { if (status == google.maps

Google Maps API 申请方式变更

旧街凉风 提交于 2019-12-03 01:32:29
简介: 近日Google已变更其Maps API的申请方式,改由所谓的「APIs Console」进行所有API的管理。   近日Google已变更其 Maps API的申请方式 ,若您现在透过早先的方法申请API Key应该会得到底下的讯息画面。 Google不再提供先前的申请API Key方式   大意是Google不再提供该种方式申请API Key ,而是改由所谓的「 APIs Console 」进行所有API的管理。   在Google Maps API 的部份,官方网站目前是建议使用新版本(v3)的API 进行开发,若您仍希望继续使用v2 的版本进行开发,您可能需要进行部份设定的修改,底下是设定的流程:   1.使用Google帐号登入APIs Console ( https://code.google.com/apis/console ),并将Google Maps API v2的选项打开,如下图所示: Google Maps API v2设置   2.依据您的需求产生对应的Google Maps API Key ,若您是要继续采用v2 版本的方式使用Google Maps API ,请选择「Create new Browser Key」,之后将产生的Key 依据过去的方式填入对应的位置即可。 注意V2版本对应的选项   需要注意的是:   1.依目前观察

Android系统集成Google Maps和Google Search apk注意事项

醉酒当歌 提交于 2019-12-03 01:32:12
最近公司由于要参加国际上的某个show,需要集成Google Maps和Google Search的apk,注意是源码集成。在此过程中遇到一些坑,总结下来希望大家注意,以后遇到类似问题可以参考。 大家都知道,源码集成apk主要有两种形式,一种是预装到/system/app下边,一种是预装到/data/app下,当然还有一种比较特殊的是/system/priv-app。在集成之前,我先在某个应用市场下载了最新的几个Google的apk (我的系统环境是5.0.1),它们分别是:Google Play Service、Google Service Framework、Google Play Store、Google Maps以及Google Search。我刚开始的做法是将这些apk直接集成到/system/app,以google maps为例 LOCAL_PATH := $(PREBUILT_PATH) include $(CLEAR_VARS) LOCAL_MODULE := GoogleMaps LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := APPS LOCAL_CERTIFICATE := PRESIGNED LOCAL_MODULE_SUFFIX := .apk LOCAL_SRC_FILES := ../n5100

Google Maps API v2 android版本开发 国内手机不支持google play

别说谁变了你拦得住时间么 提交于 2019-12-03 01:31:24
Google Maps API v2 android版本开发 国内手机不支持google play Service相关问题解决--图文教程 移步: http://www.cnblogs.com/zdz8207/archive/2013/03/25/android-google-maps-api-v2.html https://code.google.com/apis/console/b/1/?noredirect&pli=1 来源: oschina 链接: https://my.oschina.net/u/131423/blog/208133