howto??

1 view
Skip to first unread message

netstv

unread,
Apr 24, 2009, 4:39:45 PM4/24/09
to iphone-map-view
Yes I am knew to this iPhone business. Here is what I have done so
far and I am still working away at this and will figure it out soon
enough, but if someone has pointers out there I'd appreciate the help.

Goal --> to take the long/lat and map it. Where I am etc. Like
everyone else.

What I have done.

I have the 2.2.1 SDK and have the latest svn checkout.

My application I create using the *.xib file (somehow I think it gets
called a nib file). I use interface builder to build the toolbar and
"views" where I want the map to go into.

I have copied MapView.[mh], Callback.[mh], MapView.[mh] and MapWebView.
[mh] into my project. Keeping the copyrights etc...

In my applicationDidFinishLaunching method I do something like....

mapView = [[ MapView alloc] initWithFrame:mapViewRect.frame];

in the above mapViewRect is associated with my view that I created in
using the interface builder.

Again, being a newbie at this iPhone business, I'm pretty sure this
all should work. And at least draw in the map in the rect that I have
passed in. Am I on the right track? Or is there a howto for
dumbasses like me? :)

Thanks.
-stv

yogender garg

unread,
Apr 25, 2009, 2:49:52 AM4/25/09
to iphone-...@googlegroups.com
Hi,
 
You may find lot of stuff regarding mapping lat/lon on map out here utilizing gmap.
And if u require to locate ur current location then u can have a look at LocateMe sample application readily available from apple developer's site.
 
Regards
Yogi

Steve Iribarne (GMail)

unread,
Apr 25, 2009, 4:22:09 PM4/25/09
to iphone-...@googlegroups.com
Thanks Yogi.

Sorry.. maybe I didn't make myself clear.. I have the location stuff
working, I can get my current location and long/lat and alt. info.
What I need to do is put it into a google map which is why I started
looking at this. I want to do custom markers and the like and I'm
pretty sure what was done in this iPhoneMap should do the trick.

The sample that was written does not take into account the xib or nib
files it does everything from scratch. Again, eventually I'll figure
out what to do, but I was looking for more of a how to on this
subject. If there isn't one that's fine..

Thanks again.
-stv
--
/*
* Steve Iribarne
* Software Engineer
* (aka Grunt)
*/
Reply all
Reply to author
Forward
0 new messages