google-maps-api-2

Google map v2 doesn't showing after publishing in play market

只谈情不闲聊 提交于 2019-12-25 04:33:24
问题 I have a problem with my google map in my android app after publishing. In developer console I've enabled "Google Maps Android API v2", added SHA1 key + package: 4D:8A:1F:C1:2D:8F:AD:EE:13:6A:AE:D0:FB:98:56:A1:76:70:84:2A;com.mypackage , got API KEY and added it in android manifest. But after I publish my app I got a message: Ensure that the "Google Maps Android API v2" is enabled. Ensure that the following Android Key exists: API Key: AIzaSyBt8ERGTRg8dMQy62FHoDbhaVs7YrG52iA Android

Customize look of the Google Maps “mapType” controls

微笑、不失礼 提交于 2019-12-24 21:34:34
问题 Is it possible to style the look of the mapType controls (top right "Map", "Satellite", "Hybrid") in Google maps? (using V2 of the API). Or is there a way to create your own elements and have them control the mapType?? 回答1: Yes, it it possible both to change the look of the current controls and to define new ones: look here for the functions you need: http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMapType and some examples: create custom controls: http://code

Assign a click listener to the info window, cannot navigate to the webpage Google Maps V2

不问归期 提交于 2019-12-24 21:32:13
问题 The problem is that I cannot click on the URL "www.news.com" displayed on andoid map v2 inside custom infowindow of a marker. In xml layout file I have: <TextView android:id="@+id/web" android:layout_width="wrap_content" android:layout_height="wrap_content" android:autoLink="web" android:background="#ADD8E6" android:text="www.google.gr" android:linksClickable="true"/> In Java activity file I have: mMap.setInfoWindowAdapter(new InfoWindowAdapter() { // Use default InfoWindow frame @Override

How can I create a custom, shareable and colaborative map?

岁酱吖の 提交于 2019-12-24 15:24:40
问题 My situation is this: I have my API code and my website running, then I can load a map, access it from JavaScript and create overlays or functions, but I'm trying to store (save) these custom markers (overlays obtained from script) in a map in a permanent way, but I'm unable to do it as every time I refresh my webpage the markers (and all overlays) disappear and the map reloads without any overlays or any markers, and I don't know how can I solve this. How can I create a custom, shareable and

Get gps coordinates with asyncTask

孤人 提交于 2019-12-24 15:12:43
问题 i need to get my current coordinates. i try next, but it is does not get result. public class FragmentNear extends SherlockFragment implements android.location.LocationListener { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { locationManager = (LocationManager) getActivity().getSystemService( Context.LOCATION_SERVICE); locationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, 0, this); v = inflater.inflate(R.layout

replacing com.google.android.gms:play-services with google-play-services.jar

笑着哭i 提交于 2019-12-24 14:51:04
问题 I am building a google maps app on android using android studio When I released the first version of my app, no one was able to view the google maps as google play services must be installed on the devices by users ( I cant ask people to download that in each device) so I want to embed it into my app. I have been searching for 4 days and no luck so far I got that google-play-services.jar library can be added to the app and by that no need for the user to install play services I am not sure if

Android - setInfoWindowAdapter with WebView in google Marker (api v2)

故事扮演 提交于 2019-12-24 11:08:36
问题 I have a problem with marker on google maps api v2. I would like to customize infoWindows with a WebView: Here my code of InfoWindowAdapter mMap.setInfoWindowAdapter(new InfoWindowAdapter() { @Override public View getInfoWindow(Marker arg0) { return null; } @Override public View getInfoContents(Marker arg0) { View v = getLayoutInflater().inflate(R.layout.info_window_layout, null); TextView title = (TextView) v.findViewById(R.id.title_marker); WebView snippet = (WebView) v.findViewById(R.id

Google Maps API v2 Custom MapFragment + SimpleFragment

我的未来我决定 提交于 2019-12-24 08:22:13
问题 I need to create a simple application which contain 1. Custom MapFragment which can display current location (LocationListener?), two markers, etc. 2. Simple empty Fragments. The application must not use support v4 (sdk 11+) / FragmentActivity. Empty fragment. XML: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/black" >

Issue in integrating GoogleMaps in React App

戏子无情 提交于 2019-12-24 08:09:10
问题 I am trying to integrate googlemaps in my React App.But it returns the following error in javascript console. The javascript console returns the following error while trying to integrate Google Maps.How can I resolve that issue? [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. js?key=APIKEY:99 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event.

How to obtain dynamic google map url of a specific map (I have static map url)

社会主义新天地 提交于 2019-12-24 03:26:14
问题 I have the below static google map url. just want to know the equivalent for dynamic map. Static Google Map URL I am not sure if it is v2 or v3. 回答1: Replace center by q and just swap the base URLs: http://maps.googleapis.com/maps/api/staticmap?center=Brooklyn%20Bridge,New%20York,NY&zoom=14&size=512x512&maptype=roadmap%20&markers=color%3ablue|label%3aS|40.702147,-74.015794&markers=color%3agreen|label%3aG|40.711614,-74.012318%20&markers=color%3ared|color%3ared|label%3aC|40.718217,-73.998284