mapview

Get info on a mapview selected annotation

I have annotations on a mapview and a callout with a button on each. What I need to do is grab properties from this callout, ie. the title, but logging this line: NSLog(@"%@", mapView.selectedAnnotations); returns <AddressAnnotation: 0x1bdc60> which obviously gives me no useful info... My question is, how can I access the properties ...

How do you draw text with a border on a MapView in Android?

I'm trying to draw some text onto an MapView on Android. The drawing of the text goes fine, but it's very hard to read the text because it's white with no black border (like the rest of the text that appears naturally on MapViews to denote cities, states, and countries). I can't seem to figure how to draw the text with a black border. ...

How to layout zoom Control with setBuiltInZoomControls(true)?

would like to add a zoom control to the map. I also want to layout the position of the zoom Control instead of the default middle bottom position. I can do this by getZoomControl but it is deprecated. Could anyone tell me how to do this with setBuildtInZoomControls? ...

How to capture location from MapActivity

Given ... An Activity that extends from MapActivity Uses ItemizedOverlay to show some balloons on the map ZoomControls are enabled The ItemizeOverlay implements onTap(...) which works perfectly ok when tapping one of the overlay items. The question is: How to identify a tap on another part of the map (with the intention of getting...

Android: using 9-patch and text for ItemizedOverlay on MapView

In my application I would like to mark different spots on a map. What I'm now wondering is if there's a way to use a simple 9-patch image and add the spot's name as text to it or would I need to draw everything myself (including the text) in the draw() method of ItemizedOverlay? ...

Android "Hello, MapView" Tutorial - Map Tiles Do Not Load

I am new to Android software development and new to this site. I am hoping someone might have some experience with the problem I am having. I've been following the Hello, MapView tutorial in order to not only learn the Android framework, but also the Google Maps library. I've tried my best to implement things exactly as the tutorial h...

Propagate events in several layers android google maps

I'm developing a google maps based application for android 1.6. My problem is that in my application I have more than one layer that extends from ItemizedOverlay representing information in the map. The problem is that all the layers implement the onTap method, but now only the last layer (on the top of the stack) detects the tap event...

Rotate MapView in Android

Hi, I am writing an Android app where one of the features is that the map will rotate according to the compass (i.e. if the phone is pointing east, the map will be oriented so that the east side of the map is on top). Previous answers that I have found suggested over writing the onDraw() method in mapView, however, the api changed the ...

Problem setText UITextView

Hi i have a problem. I have 2 viewcontroller, in the first there is a mapView that implements the function "calloutAccessoryControlTapped" to tap a button on an annotation on the mapView; in the second there is just a UITextView. I want to change the text of the UITextView (and show the SecondViewController) in the second controller once...

Custom pin with title subtitle iphone

I have a mapview and i put an annotation which shows a custom title and subtitle pin. When the mapview starts the pin is visible but the title and subtitle are not. I have to press on the pin to show up the title and subtitle. Is it possible to show the title and subtitle without pressing the pin? ...

Mapview in TabActivity problem

Hi, Great site and wonderful info. I have been strugling with this issue for the past 10 days...I am developing an app that has 4 tabs. One of the tabs (tab3), I would like to show a mapview I created in seperate program/class So I have... 1) TabActivity with 4 tabs in its own class and layout. (runs fine by it self) 2) MapActivity i...

How to draw line on Map View given coordinates?

Hi guys. How to draw line on MapView given coordinates? AFAIK, on iPhone it is possible. Please advise. Thanks in advance. ...

Am I allowed to integrate Google Maps into an IPhone app that is not free?

Hello I am new to IPhone development. In my application I would like to integrate maps. I would like a way of turning a UK postcode into a position on a map. I was going to use Mapview, but I have seen a couple of posts on the internet about not being allowed to use MapVIew for chargeable apps something to do with Google liceense. I...

Display a simple text label / descrption bubble when user taps on a OverlayItem in MapView

I would like to further annotate the custom markers I have placed on a MapView (using ItemizedOverlay) by displaying a simple text label that appears for a particular item when the onTap event is fired. This is a trivial exercise in the Google Maps JavaScript API and in MapKit on iPhone, but it is not obvious to me what the best or eas...

Android - Failed to find provider info for com.google.settings in MapView Example

hi! im trying to implement MapView example which is defined on Android Hello Views example but now im facing Failed to find provider info for com.google.settings error... Any idea why this is happening??? ...

Android - Get Altitude By Longitude and Latitude?

Hi there! Do you know some quick and sufficient way to get altitude (elevation) by longitude and latitude, that would be easy to use on Android platform? While this is a self-learning question, my approach is still time-consuming ('coz it's web-service etc), so I would like to receive any alternatives or possible improvement suggestions...

Android Mapview panning and zooming too slow........

I've developed a GPS app in which i record the user roots and show it on the map.......but Panning around on the map when reviewing my route is painfully slow, it takes at least 4 or 5 seconds for the map to respond the finger swipes...... I've overridden the onDraw() method and drawing the lines to show the routes......is there any be...

Android MapView + Tab example

Hi, i need to have an mapview on a tab. The attached example shows how to do this if using intents. Now i want to change the zoom level of the mapview(s). How can i do this, although i'm using intents (or is there completely different solution)? Activity code: public class TabMapsExample extends TabActivity { TabHost mTabHos...

iphone map fold button in new map app

Hello, does anyone know what is the name of the button in the right corner of the toolbar in the new Maps application? It's the button that unfolds the map and the view underneath offers buttons to switch between map modes. I would like to use it in my map application if it's a part of the SDK! ...

Plot path from one location to other location on iphone MapView

Hi, I want to draw path from one location to other location. How to plot the path between two location. I have coordinates(latitude,longitude) for both location. How can i achieve this functionality? Thanks, Jim. ...