google-maps-api-2

Get Custom class data information on Map V2 PopupClick event in android

假如想象 提交于 2019-12-08 13:22:08
问题 hello friends my java file as below public class MainActivity extends FragmentActivity { GoogleMap googleMap; final int RQS_GooglePlayServices = 1; Double lat; Double lng; Marker marker; LatLng coordinate; private LocationManager locationManager; private String provider; Marker startPerc; AutoCompleteTextView mAutoCompleteTextViewAddress; CommonMethods mCommonMethods; String getsearchingAddress; Geocoder mGeocoder; List<Address> list; int maxResult = 10; String addressList[]; Intent mIntent;

Area/Boundary lat long of a location of a given area

孤街醉人 提交于 2019-12-08 11:19:21
问题 Suppose I search using a location something like (Texas) now I want to mark the area of Texas using a polygon. So for drawing polygon i need the the lat long of that area. I search in google and discuss with some of my friend i found those links. From those links I understand that google doesn't provide the information. I need a solution in google map V2 so that i can implement it in my android project. So my question is how can i get those area lat long? Here is some link of my requirement-

Get localsearch in maps v2 api to search a default value on load

烈酒焚心 提交于 2019-12-08 08:19:49
问题 <!DOCTYPE html> <html> <head> <title>RJI Events</title> <link rel="stylesheet" type="text/css" href="stylesheets/scrollbar.css"> <link rel="stylesheet" type="text/css" href="stylesheets/app.css"> <style type="text/css"> @import url("http://www.google.com/uds/css/gsearch.css"); @import url("gmlocalsearch.css"); </style> <script type="text/javascript" src="jslibs/cubiq-iscroll/iscroll.js"></script> <script src="jslibs/jquery-1.6.4.min.js" type="text/javascript"></script> <script src="jslibs

Calculate height above map given zoom level in google maps

北城以北 提交于 2019-12-08 07:52:32
问题 I am trying to calculate the height above map (ignoring topography) given a zoom level. I know the equation for scale at a specific zoom level is 591657550.5/2^(level-1) (https://gis.stackexchange.com/questions/7430/google-maps-zoom-level-ratio), but I am unsure on how to use this information (or whether or not this is the right information) to solve for height above map. Any help is appreciated. 回答1: I set my google map size to 5cm selected a zoom level, and then re-found that location with

Google Maps API v2 load() event not firing

耗尽温柔 提交于 2019-12-08 07:31:16
问题 I'm improving the Google Maps API V2 integration in our web app and I'd like my main page to know when Google Maps has finished loading everything so I can then set some markers. I notice there's a load() event but I can never seem to get it fire. Here's the code I'm using if( GBrowserIsCompatible() ) { map = new GMap2(container); map.setCenter(new GLatLng(INITIAL_LATITUDE,INITIAL_LONGITUDE), INITIAL_ZOOM); GEvent.addListener(map, "load", pluginLoaded ); } ... function pluginLoaded() { alert(

Google Maps API on android not working

十年热恋 提交于 2019-12-08 05:22:39
问题 I am trying to add a map to my android application. But I am getting the error posted below. I have installed the google play services, and have also added the required dependency for my app to support map. I have added the required api key to the manifest, added the following line after the application tag uses-library android:required="true" android:name="com.google.android.gms" (the following in an element of the application tag and not an attribute) An idea what I am doing wrong? 03-12 15

polymer starter kit, google-map, examples together

旧时模样 提交于 2019-12-08 03:05:25
I am trying to display a google-map on a Polymer Starter-kit page. I start with Polymer init... go with the standard Starter-kit... Do a ... bower install --save GoogleWebComponents/google-map I get a Google Map Key... Everything works great... except. I can not get the damn map to display on a page. I can go through the example and tutorials... no trouble. But getting the tag to work in the Start-kit has been a problem. Does anyone have some examples with google-map in Starter-kit? Ideally where you create/use a custom module? Works as advertised. This is the code for one of the My-viewX.html

google map api v2 add icon from url android

偶尔善良 提交于 2019-12-07 12:06:52
问题 I have a project that retrieves latitude and longitude from web service and I add them to google map markers. I want to add custom icon for the markers from url. mMap.addMarker(new MarkerOptions() .position(new LatLng(dlat,Dlong)) .title(m.group(9)) .draggable(false) .snippet(m.group(1)+" "+m.group(10))); How I can add .icon with a custom icon from a link? 回答1: Use this method and use returned bitmap to display in map public Bitmap getBitmapFromURL(String imageUrl) { try { URL url = new URL

Google Play Services missing on Android 2.2 emulator while using Google Maps API v2

十年热恋 提交于 2019-12-07 11:13:12
问题 Hey I am trying to use Google Maps on my emulator even though I've installed Google Play Services library when I run the app it says This app won't run without Google Play Services which are missing from your phone on LogCat I get the warning about it but not really sure why I am getting this. my MainActivity.java package com.mapsmaps; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.view.Menu; import com.google.android.gms.maps.GoogleMap; import com

Tile generator from an image to Android Google Maps

耗尽温柔 提交于 2019-12-07 08:27:36
问题 This is my 1st question here, so lets move right to the point I have a map in high resolution png format with geographic coordinates of the corners which I would like to integrate with Google Maps Api in my Android App. What i have done so far: I have cut the map in tiles 256x256 px and wrote an URITileProvider. It turns out that the map has an offset, is tilted and has to be re-sized I found MapTiler and tried it out. It allows to set the corners coordinates and generates tiles. The current