Skip to content

Instantly share code, notes, and snippets.

@procrastinatio
Last active October 10, 2015 18:27
Show Gist options
  • Save procrastinatio/3732422 to your computer and use it in GitHub Desktop.
Save procrastinatio/3732422 to your computer and use it in GitHub Desktop.
Most simple GeoAdmin possible example
<body onload="init();">
<div id="map"></div>
<script type="text/javascript" src="https://api.geo.admin.ch/loader.js"></script>
<script type="text/javascript" src="simple.js"></script>
<link href="simple.css" />
</body>
#map {
width:500px;height:340px;border:1px solid grey;padding: 0 0 0 0;margin:10px !important;}
function init() {
var api = new GeoAdmin.API();
api.createMap({
div: "map"
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment