Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-12-2011, 06:59 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 118
lexy0202 is on a distinguished road
Default Apple Code Can't Parse GE Paths?

Hi,

I'm creating a mapView with overlays on it, to display information about an airport. (Flight paths that the aircraft take for example).

I'm using KMLs to store all my data.

I imported the KMLParser from apple's KMLViewer sample code, as demoed in session 127 of WWDC 2010.

This reads any place marks/pins I have fine. However, it seems to not read my path at all. It works out it's an MKPolyLine. It gives it basic coordinates, for x and y origin, but none of the points are there, and all the formatting e.g. colour/width/cap ends is set to nil or 0 in the debugger.

This is the code I breakpointed to see this:

Code:
- (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id <MKOverlay>)overlay
{
    // object kml is just an instance of apple's kml parser
    MKOverlayView *overlayView = [kml viewForOverlay:overlay];
    return overlayView;
}
Presuming it was my code, I transferred one of my KMLs to apple's sample code, no code changed apart from the path string to load the file.

The guy presenting this session at WWDC even said that you could do this, however it couldn't read the path.

Therefore the only thing that can be wrong is the KML.

Looking at the versions, the one I exported from GE is v 2.2, however the KML apple includes in their sample code is v 2 KML. I was wondering whether anyone knew whether that was significant.

Also I was using google earth to create the paths, does anyone know of a more simplistic 2D KML creator that would be better suited to this task.

Or even because GE exports the coords, just making it manually would be easier??

Thanks in advance,
Alex
lexy0202 is offline   Reply With Quote
Reply

Bookmarks

Tags
earth, google, kml, map

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 369
9 members and 360 guests
apatsufas, chemistry, Kirkout, leostc, lzwasyc, MarkC, Sami Gh, SamorodovAlex, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:38 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0