Black Mamba
Black Mamba

Reputation: 205

Android Map View v/s Web View?

I am confused between webview and mapview, which is better?? in terms of flexibility, overlays, usage, load-speed, zoom levels etc etc

Upvotes: 1

Views: 2030

Answers (2)

Reno
Reno

Reputation: 33792

MapView is the native built-in class for doing Map related stuff. WebView is a native element for the browser. It has a javascript to Java bridge, so you can call Java methods in your native Android application from the JavaScript page.

For my personal experience:

  • WebView is less flexible, kinda sluggish for UI interaction.
  • MapView has better optimizations and has richer content.
  • MapView has definitely better caching.
  • MapView loads faster (imo)
  • The MapView api's make life much easier. Zooming/handling etc is great.

Though if you are good at JavaScript and the V3 you should go for WebView. It all boils down to the feature set (WebView has a larger feature set, or so I've heard) that you want to use, your project duration (MapView is faster and easier to code for)

Upvotes: 3

Mats Hofman
Mats Hofman

Reputation: 7240

Those 2 classes are completely different.

The WebView class is there to show a webpage, the MapView class is there to intergrate Google Maps into your application. So depending on what you want to achieve you can pick one.

Since your tags say Google and Maps you should use the MapView, see also the Google Map View tutorial on the Android Developers site.

--
for future questions please provide some more information in your question.

Upvotes: 0

Related Questions