Airmapview

A view abstraction to provide a map user interface with various underlying map providers
Alternatives To Airmapview
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
React Google Maps4,4974,324325a year ago101January 05, 2018266mitJavaScript
React.js Google Maps integration component
Google Maps Services Python3,9641,153424 days ago42February 02, 202228apache-2.0Python
Python client library for Google Maps API Web Services
Google Maps Services Js2,6427921384 days ago24April 30, 202021apache-2.0TypeScript
Node.js client library for Google Maps API Web Services
Google Maps For Rails2,3013,85135 years ago103February 17, 201441mitJavaScript
Enables easy Google map + overlays creation in Ruby apps
Mapsmodelsimporter1,964
21 days ago85gpl-3.0Python
A Blender add-on to import models from google maps
Airmapview1,824
12a year ago18October 10, 201927apache-2.0Java
A view abstraction to provide a map user interface with various underlying map providers
Privacy Redirect1,675
16 days ago202gpl-3.0JavaScript
A simple web extension that redirects Twitter, YouTube, Instagram & Google Maps requests to privacy friendly alternatives.
Cordova Plugin Googlemaps1,65745910a year ago63April 09, 202048apache-2.0JavaScript
Google Maps plugin for Cordova
Google Maps Services Java1,59988026a month ago57June 03, 202223apache-2.0Java
Java client library for Google Maps API Web Services
Google Maps React1,5991,321815 months ago37April 21, 2020295mitJavaScript
Companion code to the "How to Write a Google Maps React Component" Tutorial
Alternatives To Airmapview
Select To Compare


Alternative Project Comparisons
Readme

AirMapView

Build Status

AirMapView is a view abstraction that enables interactive maps for devices with and without Google Play Services. It is built to support multiple native map providers including Google Maps V2 and soon Amazon Maps V2. If a device does not have any supported native map provider, AirMapView will fallback to a web based map provider (currently Google Maps). Easy to integrate, it is a drop-in replacement for the Google Maps V2 package. AirMapView's original author is Nick Adams.

Features

  • Google Maps V2
  • Swap map providers at runtime
  • Web based maps for devices without Google Play Services

Download

Grab via Gradle:

compile 'com.airbnb.android:airmapview:1.8.0'

Snapshots of the development version are available in Sonatype's snapshots repository.

Sample App

The project includes a sample app which uses AirMapView. The sample app allows toggling between map providers, exemplifies adding map markers, and displays various callback information. The sample project can be built manually or you can download the APK.

How to Use

  1. Define AirMapView in your layout file

    <com.airbnb.android.airmapview.AirMapView
        android:id="@+id/map_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
    
  2. Initialize in code

    mapView = (AirMapView) findViewById(R.id.map_view);
    mapView.initialize(getSupportFragmentManager());
    
  3. Add markers/polylines/polygons

    map.addMarker(new AirMapMarker(latLng, markerId)
            .setTitle("Airbnb HQ")
            .setIconId(R.drawable.icon_location_pin));
    

Mapbox Web setup

To use Mapbox Web maps in AirMapView, you'll need to sign up for a free account with Mapbox. From there you'll use an Access Token and Map ID in your AirMapView app. They're are then included in your app's AndroidManifest.xml file as meta-data fields.

<meta-data
    android:name="com.mapbox.ACCESS_TOKEN"
    android:value=ACCESS_TOKEN/>
<meta-data
    android:name="com.mapbox.MAP_ID"
    android:value=MAP_ID/>

Native Google Maps setup

With AirMapView, to support native Google maps using the Google Maps v2 SDK you will still need to set up the Google Maps SDK as described here. Follow all the instructions except the one about adding a map since AirMapView takes care of that for you. See the sample app for more information about how to set up the maps SDK.

License

Copyright 2015 Airbnb, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Popular Google Projects
Popular Google Maps Projects
Popular Companies Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Google
Google Maps
Mapbox