Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5980417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:47:52+00:00 2026-05-22T21:47:52+00:00

I want to make an html5-based webpage for mobile devices that shows a map

  • 0

I want to make an html5-based webpage for mobile devices that shows a map from Google Maps (or other map provider, however I prefer GMaps), with multitouch support. Is this possible?

By this I mean: If you open Google Maps’ android native app you see that you can pinch to zoom, rotate the map with two fingers, etc. However if you look at Google Maps’ html5 app on a mobile platform, while you can still pan around with one finger you can’t pinch to zoom etc. To zoom in the latter (html5) app, you have to press the provided “+” and “-” buttons.

Lastly, there may be some funky way of doing this that works for my particular application that is not the regular way of embedding GMaps in html5, so I want to share my application idea briefly. The overall goal is to make an html5 mobile app that shows only a limited area (say, 20km around a developer-chosen location) at only a few zoom levels (say, 4 levels). This means that there is only a small finite number of tiles that ever need to be displayed. So perhaps these tiles could be prepackaged and stored locally when the app is first loaded, in order that the user never has to wait for a tile to load on-the-fly. Therefore the GMaps APIs may never need to be used by the app user, it may be simply like a large image I am just panning/zooming around inside. In fact, we can use another map provider, not GMaps, if that is easier. Is there some other funky way of doing this other than the regular way of embedding (Google)Maps data in html5 document?

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:47:52+00:00Added an answer on May 22, 2026 at 9:47 pm

    Google Maps API v3 understands pinch-to-zoom on mobile devices. It does not require the use of the + and – buttons. Example: http://tiny.ucsf.edu/parnassus_map

    Exception: It seems that some HTC hardware running Android OS doesn’t handle pinch-to-zoom in an expected way in this context. I believe this has to do with ignoring the viewport settings in the web page that tell the browser to not handle the zooming itself. I am unaware of any workaround for this problem and have been living with it for some time. I have experienced this problem on HTC hardware like the Evo and Thunderbolt, but not on hardware by other manufacturers.

    UPDATE: OP reports problem on Droid 2, so I guess it’s not just HTC hardware. One device that does not exhibit the problem is a Galaxy Tab running Honeycomb, so it would appear that not all Android devices are affected.

    YET MORE FURTHER SON OF UPDATE: It would appear that, currently, you cannot rely on being able to receive pinch-to-zoom events in JavaScript on Android browsers. Here it is in the Android issue tracker: http://code.google.com/p/android/issues/detail?id=11909

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make an etag that matches what Apache produces. How does apache
I want to make a table in SqlServer that will add, on insert, a
I want to make an entity that has an autogenerated primary key, but also
I want to make sure that a set of functions have the same signature
I want to make a JavaScript application that's not open source, and thus I
I want to make a copy of an ActiveRecord object, changing a single field
I want to make a .NET Form as a TopMost Form for another external
I want to make sure people can't type the name of a PHP script
I want to make a login system using ASP.NET (MVC). On the internet, I
I want to make a really simple iphone app: one screen with a single

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.