Tags

Tags specific to this layer

access — Geometries and relations
if ( ! fields.name_id ) {
  value = 'unknown';
}
construction — Geometries and relations
if ( fields.status == "under construction" ) {
   value = "yes"
}
highway — Geometries and relations
value = 'road';
lanes — Geometries and relations
value = fields.lane_count;
LINZ:name_id — Geometries and relations
value = fields.name_id;
LINZ:surface — Geometries and relations
value = fields.surface
name — Geometries and relations
function capFirst(s) {
  s = s.toLowerCase();
  return s.substr(0,1).toUpperCase() + s.substr(1);
}

if (fields.name === null) {
  value =null;
} else {
  var words = fields.name.split(" ");
  for (var i=0; i<words.length; i++) {
    words[i] = capFirst(words[i]);
  }
  value = words.join(" ");
}
oneway — Geometries and relations
if (fields.way_count == 'one way') {
  value = 'yes';
}
else if (fields.way_count == 1 ) {
  value = 'yes';
}
ref — Geometries and relations
if (fields.hway_num && fields.hway_num > 0) {
  value = fields.hway_num;
}
surface — Geometries and relations
switch (fields.surface) {
  case "sealed":
    value = 'paved'; break;
  case "metalled":
    value = 'gravel'; break;
  case "unmetalled":
    value = 'dirt'; break;
}

Tags for group linz

attribution — Geometries and relations
value = "http://wiki.osm.org/wiki/Attribution#LINZ"
LINZ:dataset — Geometries and relations
value = fields.dataset_name;
LINZ:layer — Geometries and relations
value = fields.layer_name;
LINZ:source_version — Geometries and relations
value = fields.dataset_version;

Tags for group linz_topo

source_ref — Geometries and relations
value = "http://www.linz.govt.nz/topography/topo-maps/"