Hi Joeles,

The tiled layer does much of the work for you in terms of scrolling and scaling.

I have an example on my blog;

http://bill.dudney.net/roller/objc/entry/catiledlayer_example

that does something like what you want (I expect based on the description).

Good luck!

-bd-
http://bill.dudney.net/roller/objc

On Jul 1, 2008, at 3:00 AM, Joeles Baker wrote:

Hi,

I am trying to develop a "map viewer".
Later i'd like to port it to the iPh***, but since we don't talk about the iPh*** in here,
i'll just start with a basic osx app ;-)

My final goal is to develop a feature equivalent application to the iPh*** (google) Maps app, but instead it will use the free and open source maps provided by the http://www.openstreetmap.org project.

(of course it will be free and i'll provide the community with the source).

currently i am able to show a specific map part for example like:
http://tile.openstreetmap.org/cgi-bin/export?bbox=11.56832,48.13196,11.5827,48.14255&scale=6800&format=png

but i am a bit stuck with the scrolling and zooming thing.
now if my user scrolls (taps) or zooms, howto dynamically reload map parts in a iPh*** like fashion?


any pointer or anyone interested in the project and willing to join forces is greatly appreciated :-)


best,

--Joeles

P.S.:
just in case you wonder, why to use openstreetmap instead of google:
its opensource - you may do whatever you want with the map data without getting sued by google or their map provider. openstreetmap is wikipedia for maps - in some areas (where all those geeks with the gps equipped bicycles are around) openstreetmap map data is MUCH more accurate than google maps.. evenfootpaths, bicycle paths... and so on

P.P.S.:
yes, i'll integrate coreloc*****, but we don't talk about coreloc****

P.P.P.S.:
if apple wouldn't provide such a nice toolchain and sometimes even nice products, currently i'd be really frustrated enough with all this iphone sim-locking, opensource counterproductive appstore concept, nda shizzle marketing tactics, ..... to move one to another platform.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/bdudney%40mac.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to