mapkit

Google maps api for things search

I want to implement a search functionality for iphone app where user can search for any kind of things like for punjabi food, dress, italian shoes etc. and the app should show all the locations in map view where punjabi food is available near by current user location. can anyone let me know how I can achieve this? ...

mapkit annotations - displaying more than one location pin

does anyone know how to display more than one location on a map? i have a map w/ one pin at a lat/long point. I'd like to have pins for many locations. another related question - if i wanted a map to display all McDonalds in the California, for example, is there a way to do this by feeding a search result from google maps into my app? ...

Why is stringValue failing here?

I'm trying to bring data into my app from an external file. everything's working until I add the event.title (the 3rd objectAtIndex below). I think I'm incorrectly using "stringValue" and it should be something else. the floatValues work fine. event.latitude = [[values objectAtIndex:0] floatValue]; event.longitude = [[values objectAtIn...

Creating custom pins for iPhone Mapkit

I am trying something a little different. Instead of a class, I have used MKPinAnnotationView and the inherited image instance. Here is the code for viewForAnnotation. But it doesn't work. Nothing shows at all. I also tried it using MKAnnotationView and I get the same result. Any help would be very much appreiciated. (MKAnnotationVie...

iPhone - Image overlay MapKit framework?

I can see with iOS4 you can now tile an image on google maps (Been looking at the TileMap example from apple). This is great as this is what I want to do, but from what I can see I need to know the GEO reference of the image so I can raster the images with the appropriate zoom levels, etc. What I have is an artist image, which is a map o...

iPhone MapKit: select location (coordinates) manually by touching MKMapView

Hallo everyone. I would like to offer the user the possibility to (manually) select lat. and long. coordinates by touching a MKMapView. How can I achieve that? I've seen that the MKMapView delegate offers the method convertPoint:toCoordinateFromView: . I think, that could be a good starting, but I don't know how to create a point from a...

Mapkit with multi annotation (callout), mapping the next view.

Hi all, Wanted some help with a problem with mapkit I am facing. Should be a silly problem or I have missed out something while going through the mapkit framework. Here is the senario. I am placing multiple annotation on the map when the user performs some search like pizza. Added button for the right annotation view, on click which op...

MapKit not working on device but works in simulator

I have added the frameworks (MapKit and CoreLocation) by selecting the Frameworks folder, right clicking, Add > Existing Frameworks. The app builds in the Simulator (3.1.3) but fails on the Device (3.1.3) with the error: ld: warning: in /Development/Sites/iPhone Projects/SwitchViews/MapKit.framework/MapKit, file is not of re...

Problem setting base sdk to 4.0 and OS Deployment Target to 3.1.3 (Using MapKit)

Hi, I'm building an application that uses MapKit functionality. The base sdk is 4.0 but I'm building to a 3.1.3 device (the OS Deployment Target is set to 3.1.3). After the app is installed and right when it begins to run, I run into the following error: dyld: Symbol not found: _CLLocationCoordinate2DMake Data Formatters temporarily un...

iPhone MapKit: use bike layer?

Google maps API provides an option to show a bicycle layer. Is this also possible with MapKit? ...

Get driving direction in iPhone

Hi, I read both iPhone and Google Map for iPhone EULA and want to implement a static driving direction map in my iPhone application (native). I am finding a simple way to get route data and display with build-in route display feature in iOS 4 SDK' Mapkit. Is there any programmer implement a feature like this with Google Map and Bing M...

How to access the Overlay object boundingMapRect at the OverlayView?

Hi All, I'm trying to place images on top of Google Maps and I'm having trouble to fetch the overlay's boundingMapRect. The odd thing is that when I check the 'overlay' with the debugger the correct data is there, but when I try to print it - its garbage. This is the printing code: MKMapRect overlayRect = [self.overlay boundingMap...

Loading data in Views depending on MapKit annotation callout click

I have a map with a disclosure button on the callout of it's annotations, which when clicked displays a detail view. Each point on the map needs to load up different data in the detail view - I dont want to build separate views for each annotation, for obvious reasons, but I am unsure of the best way to do this. How do I flag which ann...

Why are MKPolyline and MKPolygon working in iOS 3.2.2 (on an iPad)?

As far as I can tell, technically MKPolyline and MKPolygon should not be functional/available when running on an iPad or any other device prior to iOS4. Nevertheless, when I installed 3.2.2, on the device, and updated my build tools with the latest (non-beta) iOS 4.2 SDK, they both work just fine, along with their associated views. Wha...

iPhone MapKit: Custom MKPolygonView with image draws upside down

Hi, does anybody know what to do with this problem: my image in a custom MKPolygonView is flipped upside down? The idea (this is working OK already) is having an class "SnowmapsOverlayView" that extends "MKPolygonView", that displays a image. This image has a default location & size on the map (acts as a GroundOverlay in the Google Map...

Show same points of interest in MKMapView as in the Maps application?

If you look at a location in a MKMapView and in the Maps application, the maps app has a lot more points of interest. Is there a way to get the same items to show up in an MKMapView? Here is an example: http://drp.ly/1CJWbm ...

iphone mkannotationview strange problem - possibly being reused

Hi all. I've just found a strange issue with my sub classed mkannotationview. When I add the first 5 markers, they all work perfectly. In the mkannotationview sub class, I NSLog a message which I see 5 times. However, when I remove ALL the markers and redraw them - using all the same methods, I see the NSLog only once. It's like the m...

MapKit for the desktop?

Is there a framework similar to MapKit (i.e. that can display maps with overlays) for the desktop. Apple-supported, Google or third party/open-source. I know of OpenStreetMaps, and I want to know what the options are. ...

Display annotation in Map kit

hi i am working with Mapkit and i have to show annotation in the map but am not able to display the annotation hers my code plz tell me where i am going wrong @interface MyMapView : UIViewController <MKAnnotation,MKMapViewDelegate>{ MKMapView *Obj_Map_View; MKPlacemark *pmark; MKReverseGeocoder *geocoder1; } @end #import "MyMapView...

MKMapView setRegion "snaps" to predefined zoom levels?

Can anyone confirm that setRegion "snaps" to predefined zoom levels and whether or not this behavior is as designed (although undocumented) or a known bug? Specifically, it appears that setRegion snaps to the same zoom levels that correspond to the zoom levels used when the user double-taps the map. I'm trying to restore a previously sa...