Extended API Help

This page describes how to use the Extended API. The Extended API provides a JavaScript API for inserting maps with rich functionality to web pages.

See the Simple API Help page for help on the Simple API.


To use the API you should add the following HTML:

<script src="https://geomapfish-demo.camptocamp.net/1.6/wsgi/xapi.js"></script>
window.onload = function() {
    // add the code here

To put a new map in the page you'll have to put a div element with a certain id where you want your map to be:

<div id='map1' style='width:700px;height:400px;'></div>

A map

var map = new demo.Map({
    div: 'map1', // id of the div element to put the map in
    zoom: 14,
    center: [537900, 152070]