aboutsummaryrefslogtreecommitdiff
path: root/README
blob: 5eb92bbe4e577ad444150edb1e0f42074a3c5b0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# OSM examples for ikiwiki

This repository contains a number of examples for the ikiwiki osm
(OpenStreetMap) plugin.

The osm plugin is included in Ikiwiki, but at the time of writing this README,
none of the included examples will work without patching the plugin. The
Makefile will build the examples using a patched version of Ikiwiki, that will
get most of them working.

## Known Issues

 - The icon on the map for the icon-kml is distorted (compare with the
 icon-geojson example)
 - The simple-csv example does not work
 - There are no map icons in the tags-geojson example
 - The (non square) map icon is distorted in the tags-kml example

## Build Details

Unless each example is viewed at the root of the webserver, the example will
not work. You must set the url option in each of the setup files to the correct
url. For example, if you symlink the dest directory to osm-examples in the
public_html of "username", then this would be the valid url for the
osm-icon-geojson.setup file.

    url: 'http://localhost/~username/osm-examples/icon-geojson/'

The included makefile will download ikiwiki, build it, and then use it to
build all of the examples.

The examples will end up in dest.

You may need some packages to build ikiwiki, running the following will
probably work:

    apt-get build-dep ikiwiki