Map Embed

MADB Map Embed Interface

Version 1.0.3 vom 15.07.2016

To embed a country specific Map with Airfields to your own homepage you have to inculde some simple code onto your page where you will show the map.

  1. You can define the language of the map interface with the language=xx parameter
  2. On loadmap(‘de’); you can put a 2 letter ISO countrycode to select the displayed country

Google Maps API Key

You have to register a Google Maps Javascript API Key for your site (free) and obtain it from https://console.developers.google.com/apis/api/maps_backend/

HTML Code:

Replace YOUR_API_KEY with your API Key from Google:

<div class="madbmap" id="madbmap" style="width:100% ; height:500px;"> </div>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?language=de&key=YOUR_API_KEY"></script>
<script type="text/javascript" src="https://www.ma-db.com/js/embedmap.js"></script>
<script type="text/javascript">loadmap('de');</script>

You can style the map <div> for your own needs! If you have successfully used this feature please let us know at info@ma-db.com! Thank You!

Demo



Kommentare sind geschlossen