From d714dfc49eaa2b20e11978a89354ec94082da218 Mon Sep 17 00:00:00 2001
From: Simon Brooke
Date: Sat, 11 Apr 2020 11:44:02 +0100
Subject: [PATCH] Getting better
---
README.md | 2 ++
resources/public/index.html | 12 +++++++++++-
src/geocsv_lite/data.cljs | 17 ++++++++++++-----
3 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 7937b95..5df9828 100644
--- a/README.md
+++ b/README.md
@@ -40,6 +40,8 @@ Note that, unlike in **geocsv**, *THERE IS NO DEFAULT PIN*, as there is no serve
`geocsv-lite` now experimentally displays GPX and KML formated XML, by using [leaflet-omnivore](https://github.com/mapbox/leaflet-omnivore). While `leaflet-omnivore` also parses CSV, it doesn't
handle the CSV as richly as GeoCSV does natively, so we don't use Omnivore to parse CSV.
+Having said that, while omnivore correctly extracts and renders boundaries from KML there's a lot of other data in KML that it doesn't (e.g. it doesn't render the requested `Style` on elements, including the rather important `BallonStyle`), so I'm not entirely satisfied and might revisit this to do my own parse/render engine.
+
## Setup
To get an interactive development environment run:
diff --git a/resources/public/index.html b/resources/public/index.html
index a989e53..d9b368e 100644
--- a/resources/public/index.html
+++ b/resources/public/index.html
@@ -110,6 +110,16 @@ crossorigin=""/ -->
+
+ Map using inline KML
+
+
+ This is more limited than I would like, because of cross-site scripting
+ blocks; the URL must be sourced from the same host as the page.
+
+
+
Use this page as a crib for how to use GeoCSV Lite in your projects. In order
@@ -282,7 +292,7 @@ crossorigin="">
geocsv_lite.core.initialise_map_element("url-map", csv_url);
/* Map using KML from URL */
- geocsv_lite.core.initialise_map_element("kml-map", url + "data/wild-lands/doc.kml");
+ geocsv_lite.core.initialise_map_element("kml-map", url + "data/wild-lands/doc-with-balloons.kml");