android-mapview

MapView showing in grey tiles map not showing in android google api 2.3.3

て烟熏妆下的殇ゞ 提交于 2019-12-22 10:36:13
问题 Hello I am developing a map view I tried to following way I created an "Intent" by clicking on a button]. Added permission and library . I created an overlay item. .My Emulator is targeted as GoogleApi 2.3.3 .My MapView key is obdained and asigned into mapview.xml I am seeing the map with a google logo at bottom and map view controler: here is my code MapView.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout

Mapview in MapActivity Class not found

落花浮王杯 提交于 2019-12-22 05:36:21
问题 I've seen other threads here with similar symptoms, but none of the answers solved my problem. I'm following the Google map view tutorial, http://developer.android.com/resources/tutorials/views/hello-mapview.html and following all directions exactly, I keep getting this error .. java.lang.ClassNotFoundException: com.goodintechnology.maps.Mymap in loader dalvik.system.PathClassLoader[/data/app/com.goodintechnology.maps-1.apk] I've started from scratch many times, but everytime, as soon as I

Updating a map marker in android

女生的网名这么多〃 提交于 2019-12-22 04:17:10
问题 Using Google Maps Android API v2, I can update my marker's position by getting the Marker from a hashMap and then calling: Marker marker = hashMap.get(someId); marker.setTitle("Title"); marker.setSnippet("Snippet"); marker.setPosition(new LatLng(newLatitude, newLongitude)); However, if the marker is selected when this is called, the title and snippet will only update if I click off the marker and reselect it. Is there anyway to tell the map to refresh the data in the marker bubble? 回答1: Call

Google Maps v2 Error on use of setMyLocationEnabled

我是研究僧i 提交于 2019-12-21 22:04:15
问题 I am not sure were I went wrong, getting a nullPointerException on using googlemap.setMyLocationEnabled(true) in Google Map v2 example. MainActivity.java File: package com.example.locationgooglemapsv2; import java.io.IOException; import java.util.List; import android.content.Context; import android.location.Address; import android.location.Criteria; import android.location.Geocoder; import android.location.Location; import android.location.LocationListener; import android.location

two finger or pinc zoom to mapview in osmdroid

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 17:42:38
问题 I need help I'm trying to zoom to mapview by getting users multi touch points (firstly 2 finger touch) I know there is setMultiTouchControls() function but this is not what I want to do. I tried to explain with a picture :) it was easier than writting; The black bold arrows show the fingers' movement directions. The same situation can be considered for opposite directions.(zoom in) 回答1: Finally, In osmdroid 3.0.10 this feature had been implemented. mapView.setBuiltInZoomControls(true);

How to calculate delta latitude and longitude for MapView component in React-Native?

谁都会走 提交于 2019-12-21 09:24:08
问题 How can i calculate delta-latitude and delta-longitude values form latitude and longitude values for MapView component in React-Native. Thank You 回答1: If you have an array of coordinates and you want a region that will fit all these points, you can do something like this: const regionContainingPoints = points => { let minLat, maxLat, minLng, maxLng; // init first point (point => { minLat = point.latitude; maxLat = point.latitude; minLng = point.longitude; maxLng = point.longitude; })(points[0

Weird MapView problem; PixelConverter Error

筅森魡賤 提交于 2019-12-21 07:27:53
问题 I have an application based on the MapActivity. The application drops ItemizedOverlay items on the map as you start to move about. It has been running with no problems until I dropped it into a Nexus 2.2 phone. I'm running into a weird problem where sometimes when I zoom in/out too fast, or pan too fast, the MapView will go "white" and my Overlay items will get shoved into the upper left hand corner. The only error I've seen in my log is: E/PixelConverter( 4881): Setting singular matrix

NullPointerException in ItemizedOverlay.getIndexToDraw

本小妞迷上赌 提交于 2019-12-21 07:09:07
问题 I have a relatively simple MapActivity that I'm trying to make display a list of "camps" within a given map region. I've created a custom subclass of OverlayItem called CampOverlayItem, a custom ItemizedOverlay called CampsOverlay that returns CampOverlayItems, and of course a MapActivity subclass that populates the map. I'm pulling the overlay data from a database using an AsyncTask as created in my activity. The AsyncTask is triggered from a ViewTreeObserver.OnGlobalLayoutListener attached

MapView in a Dialog

眉间皱痕 提交于 2019-12-21 06:20:44
问题 I have a DialogFragment shown as a dialog using dialogFragment.show(this); The content view of this fragment is a ScrollView with a MapView at the bottom. onInterceptTouchEvent is taken care for the ScrollView because of the presence of a MapView . And it works fine when used as a normal fragment. But as a dialog, this is what happens while scrolling. The MapView goes out of the Dialog . EDIT: This didn't work: <RelativeLayout android:layout_width="match_parent" android:layout_height="160dp"

Android (MapView): How to set Zoom level of 4 miles in the mapview?

ぐ巨炮叔叔 提交于 2019-12-21 04:33:10
问题 I have a latitude and longitude(GeoPoint) which is the center of map. I want to set zoom level of 4miles distance from latitude and longitude that I have. Thanks in Advance, 回答1: You can use the setzoom()-function to do so. The code below can be found in this example. mc = mapView.getController(); String coordinates[] = {"1.352566007", "103.78921587"}; double lat = Double.parseDouble(coordinates[0]); double lng = Double.parseDouble(coordinates[1]); p = new GeoPoint( (int) (lat * 1E6), (int)