Difference between revisions of "OpenStreetMap and ARK"

From ARK
Jump to: navigation, search
 
(Things to note)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
===What is OpenStreetMap?===
 
===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 http://www.openstreetmap.org/] for more info.
+
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 [http://www.openstreetmap.org/ OpenStreetMap] for more info.
  
 
===OSM and ARK===
 
===OSM and ARK===
Line 17: Line 17:
 
====Things to note====
 
====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. This may be changed in future versions of ARK.
+
*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.
 
*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.

Latest revision as of 12:55, 21 August 2009

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.