]> git.mxchange.org Git - friendica-addons.git/blob - openstreetmap/README
provide sane osm defaults if nothing has been configured
[friendica-addons.git] / openstreetmap / README
1  ____ OpenStreetMap Plugin ____
2 by Mike Macgirvin
3    Klaus Weidenbach
4
5 This addon allows you to use OpenStreetMap for displaying locations.
6
7 ___ Requirements ___
8
9 To use this plugin you need a tile Server that provides the maps.
10 OpenStreetMap data is free for everyone to use. Their tile servers are not.
11 Please take a look at their "Tile Usage Policy":
12 http://wiki.openstreetmap.org/wiki/Tile_usage_policy
13 You can run your own tile server or choose one from their list of public
14 tile servers: http://wiki.openstreetmap.org/wiki/TMS
15 Support the OpenStreetMap community and share the load.
16
17 ___ Configuration ___
18
19 Open the .htconfig.php file and add "openstreetmap" to the list of activated
20 addons.
21     $a->config['system']['addon'] = "openstreetmap, ..."
22
23 You have to add two configuration variables for the addon:
24     $a->config['openstreetmap']['tmsserver'] = 'http://www.openstreetmap.org/';
25     $a->config['openstreetmap']['zoom'] = '18';
26
27 The *tmsserver* points to the tile server you want to use. Use the full URL,
28 with protocol (http/s) and trailing slash. You can configure the default zoom
29 level on the map with *zoom*. 1 will show the whole world and 18 is the highest
30 zoom level available.