javascript - Google Maps API Utilizing iOS's Native Compass Device Orientation -


if open maps on ipad , click location arrow twice. notice map rotate depending on device's orientation. want application's map in ios native web application. it's google maps mashup using ios's native compass point in direction turn. i'm needing done javascript. if can point me in right direction appreciate it.

though technically possible injecting javascript uiwebview, rotation of map can tricky.

i used have web app wrapped inside uiwebview native ios version. difference in ios version tapped cllocationmanager heading ios device, , injected javascript on each heading update webpage responded substituting 1 of 36 arrow icons (one every 10 degrees) showing user's current direction. check out stringbyevaluatingjavascriptfromstring on uiwebview.

when did it, modified user's current location icon though, rather rotating entire map. remember experimenting rotation entire map, had issues rotate map rectangle, end white triangular areas on screen map no longer covers. should possible somehow oversize map bleeds off screen when straight extent still covers entire screen regardless of rotation. don't know whether mess other aspects of google maps though.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -