OpenStreetMap and ARK

From ARK
Jump to: navigation, search

What is OpenStreetMap?

OpenStreetMap is a free editable map of the whole world. It is made by the community to provide open mapping data that anyone can use. Please see OpenStreetMap for more info.

OSM and ARK

As of v0.7 ARK supports using OSM as a baselayer in all of the mapping. It is very easy to turn this on, but you should take note of the points below before you do it.

Setting It Up

If you wish to use OpenStreetmap all you need to do is add the variable:

 $openstreetmap = TRUE;

into your settings.php file.

Things to note

  • Currently if you use OSM data, you will not be able to use any other WMS layers for your map. Therefore OSM has to be your one and only base layer. The mapping code will ignore your '$wms_layers' array. This may be changed in future versions of ARK.
  • OSM data only really works well with mapping data in EPSG:4326 (WGS84 Lat/Longs) or EPSG:27700 (British National Grid). If you are using other projections (such as UTMs, etc.) you may run into problems with your data not being projected in the right place.