views:

1102

answers:

2

I am looking to replicate the panning (not necessarily the zooming) effect of the Google Maps API, but without the images. Essentially, I want to position HTML elements in a large coordinate system and be able to navigate around them, Prezi style (though without the rotation).

Preferably, I'd like to preload the elements dynamically through jQuery/AJAX, but if I have to load everything initially, I will.

Any libraries out there that will allow me to do this? I could just code the thing myself, but I can't imagine noone else has thought of something similar before.

Can this be done with the Google Maps API, and if so, how? Implementing the GOverlay interface?

+1  A: 

Oh, you will have so much fun doing this yourself, and sure will be no too much time consuming if you use jQuery, here is a brief of what you'll do...

Build you container/containing layout (use overflow:hidden to show only the desired size)

Then capture user actions with the mousedown and mouseup events.

Act accordingly based on the containing div position properties (use the "dimensions" plugin)

You might get your first working attempt within minutes.

Greetings

Manoloweb
+1  A: 

Open layers - http://www.openlayers.org/ is an open source implementation of the Google maps component, which might be more than you need, but is a good place to start.

micmcg
Actually this might be more than I need, but it's a really helpful answer for anyone who comes here to solve a similar problem. Accepted
Jens Roland