google-maps-api-2

how to load image with Universal ImageLoader without displaying

懵懂的女人 提交于 2019-12-04 14:08:24
问题 I'm trying to do something like this: Android Map api v2 Custom marker with ImageView But I'm stuck on using image loader. Trying: Bitmap bmImg = imageLoader.loadImageSync(url); LogCat gives me 04-13 14:11:44.953: E/ImageLoader(18542): android.os.NetworkOnMainThreadException Here's is my code. I have an ArrayList camera with all information needed (titrle, position, url, etc). public void drawPicsOnMap() { String title = null; String place = null; for (int i = 0; i<camera.size(); i++) {

How to Focus at Marker in google map in android

女生的网名这么多〃 提交于 2019-12-04 13:54:10
问题 I just want to know whether we can focus at added marker in android application or not. If yes, how? or is there any alternative way to get this task done. lets say I have added a marker using below code : map.addMarker(new MarkerOptions() .title(title) .snippet(snippet) .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)) .position(pos) ); how to focus at this marker with maximum zoom. and if I will add 1 more marker it should adjust zooming(maximum possible zoom)

Googlemap api v3 slower than api v2?

巧了我就是萌 提交于 2019-12-04 11:12:30
I am in the midst of converting old googlemap v2 code to v3 and it looks if v3 is much slower than v2? Most of my code change is just replacing G with google.maps. (GMarker to google.maps.Marker) Any tips or tricks how to speed things up?? The solution might be as simple as experimenting with different versions of the v3 API by trying v=3.4 and v=3.5 in your links that load the API like so: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&v=3.5"></script> And: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&v=3.4"></script>

Android alternative for google maps (offline)

匆匆过客 提交于 2019-12-04 10:55:09
I'm working on an app where users could press a button to see a map. I've implemented that google maps opens inside the app to show a map. Now my question is: If there is no wifi/3G it is impossible to cache the map, is there another way to show an offline version of the map? I was thinking about showing an svg image of a map. I've tried that but there is no way to zoom in the svg image, so is there a better way? You can use Open Street Map instead of Google Maps. There is an Android library which works great online and offline: OSMDroid The old version of maps/navigation had a declared place

Google Place Autocomplete not showing in Bootstrap modal

这一生的挚爱 提交于 2019-12-04 10:08:31
问题 FIX UPDATE: It seems that the way i was initializing the box was causing issues here is what fixed it <script> $(function () { var input = document.getElementById("keyword"); var autocomplete = new google.maps.places.Autocomplete(input); $('#my-modal').modal('show'); }); </script> <style> .pac-container { z-index: 10000 !important; } </style> UPDATE: I have updated the code to be very simple, the reason this http://jsfiddle.net/g8vxmLn9/1/ works is because its using older bootstrap and jquery

How to draw circle around a pin using Google MAps API v2

爷,独闯天下 提交于 2019-12-04 07:51:45
问题 I am using the new API(Google Map API V2) for my android application, i have done creating the map and adding markers to it, now my task is to manually create a circle around any of the marker and also i want to provide a functionality to the user that he can increase the radius of that circle accordingly, for this i have given a bar, when user increases that bar the radius of circle will increase and vice versa. If anybody knows how to do this using Google Map API V2 then please help, thanks

How to get markers inside an area selected by mouse drag?

一个人想着一个人 提交于 2019-12-04 06:59:55
In Brief I want to find all the markers which lie within a rectangular area created by dragging the mouse over the map. Is this feature supported by any jQuery plugins or something else? If not, I would like to implement this in my project. I think it would be cool. Details I am using Google Maps v2 because I want to support IE 6 in my project. I am a beginner in Maps and went through the Developer's guide section and some basic demos and other SO questions. Here is my idea so far - User clicks on a "Select an area" button in the controls section of the map. This calls disableDragging() and

Android: Blank page when using google map api 2

走远了吗. 提交于 2019-12-04 06:33:07
问题 I'm using google map v2 in my app but I get the blank page like this: I did these stepe for adding this feature to my project. First of all I updated google play services Added D:\AndroidSDK\extras\google\google_play_services\libproject\google-play-services_lib as a dependency to my main project also the jar file in the libs folder of this path. Activated google map android APIs v2 in Google APIs Console Created new Android key and the result is: After those steps I added the API key into the

Google Maps v2 Simple Application Not Working

烂漫一生 提交于 2019-12-04 05:07:07
问题 I am following this tutorial. Here are all my related files: activity_main.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <fragment android:id="@+id/map" android:name="com.google.android.gms.maps.MapFragment" android:layout_width="match_parent" android:layout_height="match_parent"/> </RelativeLayout> MainActivity.java package org.barisakkurt

The Google Play services resources were not found. Check your project configuration to ensure that the resources are included [duplicate]

一笑奈何 提交于 2019-12-04 03:09:54
问题 This question already has answers here : LogCat message: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included (22 answers) Closed 6 years ago . Whenever I try to run the Google Map API v2 project it shows the following error "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included." Actually I was trying to add a marker to a specific location whenever