Skip to content

de-bkg/geo.okapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online Karten API (geo.okapi)

repository currently under construction

Online Karten API (geo.okapi) is a JavaScript library that encapsulates features for creating interactive maps. It is based on OpenLayers and adds some useful features to this library.

Getting Started

To use geo.okapi you need the appropriate .js and .css files. Those files are created with the build process as described here

If you don't want to rebuild the project, you can follow the instructions given at the projects release page

A minimal map setup would be:

<script src="geo.okapi.min.js"></script>
<link rel="stylesheet" href="geo.okapi.min.css">
<div id="map" style="width:500px;height:500px"></div>
<script>
new okapi.MapBuilder()
  .setTarget('map')
  .setView({ projection: 'EPSG:25832' }) 
  .setLayers({
      baseLayers: [{
        type: 'BKG',
        ref: 'topplus_open'
      }]
    })
  .setControls({
    tools: {
      copyright: {active: true},
      zoom: {active: true}
    }
  })
  .create();             
</script>

Libraries overview

  • Builds including external libraries (e.g. OpenLayers)

    • Uncompressed:
      okapi.js
      okapi.css
    • Compressed:
      okapi.min.js
      okapi.min.css
  • Builds without any external libraries

    • Uncompressed:
      okapi.no.libs.js
      okapi.no.libs.css
    • Compressed:
      okapi.no.libs.min.js
      okapi.no.libs.min.css

External Libraries

If you use the geo.okapi builds without external libraries, you need to include the following in your web site before including the geo.okapi JavaScript and CSS files:

Documentation

Further information, tutorials and the API documentation can be found at the project website

Informations concerning development within this repository are located under doc/develop

Quick links