From fbb17ef2d286f9e035eabd54a71631aa1b42d946 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 22 Sep 2019 22:13:15 +0200 Subject: [PATCH] Add a missing comma in example JSON and fix a typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 51c79981..51e7b312 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ File: foo.json "12": "(node[highway~'^(motorway_junction)$'];way[highway~'^(motorway|trunk)$'];)", "14": "(node[highway~'^(motorway_junction|mini_roundabout|crossing)$'];way[highway~'^(motorway|trunk|primary)$'];)", "16": "(node[highway];way[highway];)" - } + }, "feature": { "style": { "color": "{% if tags.highway == 'motorway' %}#ff0000{% elseif tags.highway == 'trunk' %}#ff7f00{% elseif tags.highway == 'primary' %}#ffff00{% else %}#0000ff{% endif %}" @@ -87,7 +87,7 @@ The following values are possible for categories (the only mandatory value is qu * query: either a string or an object of strings with the minimal zoom level as index. Give the Overpass API queries without the header (e.g. `[out:json]` or bounding box) and footer (e.g. `out meta geom` or so). * minZoom: Show layer only from the given zoom level (default: 14). If `query` is an object and `minZoom` is not set, the lowest zoom level of a query will be used. * maxZoom: Show layer only up to the given zoom level (default: no limit). -* feature: an object describing how the feature will be formated resp. styled. +* feature: an object describing how the feature will be formatted resp. styled. * style: a Leaflet style. * stroke: Whether to draw stroke along the path. Set it to false or empty string to disable borders on polygons or circles. (boolean, true) * width: Stroke width in pixels (number, 3)