maps

android.view.WindowLeaked: Activity has leaked window android.widget.ZoomButtonsController$Container that was originally added here

守給你的承諾、 提交于 2019-12-03 12:50:26
Working with maps i have an activity which is launched when no connection is available and uses offline maps (MapQuest). The activity runs fine, map is shown, and all overlays, markers and so on. When the user clicks on one of the markers info window another activity is launched and at this moment i get a bunch of red error messages in the log, though the app does not crash. These messages (the init is in the title) seem to talk about the ZoomButtons and touch events. As for ZoomButtons or touch events (multitouch) in the code, there are only 2 lines : map.setBuiltInZoomControls(true); map

Importing CSV File to Google Maps

感情迁移 提交于 2019-12-03 12:42:52
问题 I have an quite big CSv File I want to have in Google Maps or just on a map. These are just coordinates but I have 600.000 of them.. Do you have any Idea how I can do this? I've added an screenshot from XTabulator below: 回答1: The easiest way to do this is generate a KML file (see http://code.google.com/apis/kml/articles/csvtokml.html for a possible solution). You can then open that up in Google Maps by storing it online and linking to it from Google Maps as described at http://code.google.com

How to get a layer from a feature in Openlayers 3?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 11:58:54
I can't find a way to go from a feature in a selection event to a layer that it may be a part of without traversing all the features of all my map layers, or storing an artificial layer ID within every feature at creation. Is this just not possible yet? ol.js 3.7.0 ol.interaction.Selection -> click -> callback( event ){ event.selected[0] } In another part of my app, I would like to go from the feature to the layer to determine the style being used on the feature, specifically whether or not it's visible. ol.Feature.getStyle() || ol.Feature -> (layer?) -> getStyle() You could try with the

how to create maps which detect automatic location in React-Native

北城余情 提交于 2019-12-03 11:40:39
问题 I have created maps in react-native referring to https://github.com/lelandrichardson/react-native-maps map is created but i want to detect automatic location using gps. Here is the code which renders map with static latitude and longitude. Here's my updated code. But it still not rendering perfect location getInitialState() { return { initialPosition: 'unknown', lastPosition: 'unknown', }; }, componentDidMount() { navigator.geolocation.getCurrentPosition( (position) => { var initialPosition =

Android google maps v2 crashing on startup

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my android app supporting 2.2 and higher, I am trying to use the google maps api v2. I have this so far: Does anyone know what the issue is? Thanks. xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen

Google Maps Path Encoding

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to highlight an area between two polylines like this: I have calculated the left and right polylines. To highlight the inside I am using a polygon that has points of the left side plus the right side in reverse (to properly close the polygon). The GMSMutablePath has no function to reverse the array so I did this: for (NSUInteger i1 = 0; i1 < [reversedRight count]/2; i1 ++) { NSUInteger i2 = [reversedRight count]-i1; CLLocationCoordinate2D coord1 = [reversedRight coordinateAtIndex:i1]; CLLocationCoordinate2D coord2 = [reversedRight

plotting Google Map from ASP.Net

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to plot map from ASP.NET project and I have found a good tutorial here . http://www.codeproject.com/Articles/175557/Plot-Path-using-Google-Maps-JavaScript-API The project compiles fine abut I still can not load the map . From a previous post andrew has pointed out using my own css which DID work for me . Need help with it . Source code is available on the site :). debug 1 : [12:38:04.463] GET https://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/8/11/%7Bcommon,map,util,poly,marker%7D.js [HTTP/1.0 200 Connection established

Google maps api v3 - multiple markers, multiple infowindows, 3 icons

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I wanna made "WiFi maps" and I have problem with do that, I wanna have 3 icons OPEN/WEP/WPA, and a lot of markers, and every marker with own infowindow, and only 1 infowindow on top, so when I will click #1 and then #2 then #1 will hide. And if I will have XXXX markers there will be problem with them on map in zoom out, there is possible to made it like when is much markers in one place all will not show in zoom out but in zoom in yes? I have all info about networks in MySQL database, so in PHP will be easy to show it like in tutorial on

GoogleMaps geocoder error: ZERO_RESULTS

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is my JS code to get lon and lat of an address. in 99% of the time it works OK.... but sometimes I get ZERO_RESULTS status... if (geocoder) { geocoder.geocode({'address': address, 'language':'it'}, function (results, status) { if (status == google.maps.GeocoderStatus.OK) { $('#frm_company_lat').val(results[0].geometry.location.lat()); $('#frm_company_lon').val(results[0].geometry.location.lng()); can_submit = true; $('#company_frm').trigger("submit"); } else{ top.console.debug(address); top.console.debug(status); alert("Cannot get lon

Android Navigation intent

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: If you mail a Google Maps direction to your Android phone, you have the possibility to open it in the Maps appliaction, this seems perfectly logical, as does the code behind it. Now, once in the Maps App, you have the possibility to open these directions in the Navigation App, with those exact directions. How does this work? It must not be that difficult to do it, I know about the intent with "google.navigation:q=..." Can anyone help me out with this? EDIT: This is what the URL looks like: https://maps.google.com/maps?saddr=Durbanville,+Cape