Putting an HTML5 game on iphone + zoom/pan + HUD?
===

I have a html5 game i'm planning to make. I like it to be on iphone, android, etc, it would require websockets.

My question is how do i deal with zooming and pan? The map would be large and characters wouldnt be that large and there may be layers of zoom like closeup (for tapping), regular (see the general area but too small to tap) and full map which would make everything tiny so you could see the entire map.

Do i program this as a fixed 4000x4000 map and let iphone features do the zooming and pan? What if i wanted a HUD fixed at the top left would that be a problem when its zommed in/out? Also i'd make this an app with some kind of html wrapper (which i dont know how to do ATM). How do i deal with zoom/pan + HUD?