From cdb97330a4dc57da14dd4acbbc5c38e6e70d11a9 Mon Sep 17 00:00:00 2001 From: csammons7 Date: Mon, 20 Apr 2020 10:55:19 -0600 Subject: [PATCH 1/3] added meta and updated js and css to get html file to work --- cesiumpy/base.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cesiumpy/base.py b/cesiumpy/base.py index 2b0fe13..8604211 100644 --- a/cesiumpy/base.py +++ b/cesiumpy/base.py @@ -101,10 +101,11 @@ def __init__(self, divid=None, width='100%', height='100%', @property def _load_scripts(self): - js = """""" - css = """""" + meta = """""" + js = """""" + css = """""" - return [js, css] + return [meta, js, css] @property def container(self): From 52a0ba5c9ada59646437979ebe30aa6eed45bfbc Mon Sep 17 00:00:00 2001 From: csammons7 Date: Mon, 20 Apr 2020 10:58:40 -0600 Subject: [PATCH 2/3] updated divid to match cesiumjs tutorial --- cesiumpy/util/trait.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cesiumpy/util/trait.py b/cesiumpy/util/trait.py index a9175ca..6c6c0cd 100644 --- a/cesiumpy/util/trait.py +++ b/cesiumpy/util/trait.py @@ -99,7 +99,7 @@ class _DIV(_HTMLObject): def __init__(self, divid=None, width='100%', height='100%'): if divid is None: - divid = 'container-{0}'.format(id(self)) + divid = 'cesiumContainer' self.divid = divid self.width = width From 0ffa7509fdac03644f0e2fb91385106c40284aa1 Mon Sep 17 00:00:00 2001 From: csammons7 Date: Mon, 20 Apr 2020 11:20:55 -0600 Subject: [PATCH 3/3] Updated geocoder to one that does not require a Key API --- cesiumpy/extension/geocode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cesiumpy/extension/geocode.py b/cesiumpy/extension/geocode.py index f6b2bfa..ae3b12b 100644 --- a/cesiumpy/extension/geocode.py +++ b/cesiumpy/extension/geocode.py @@ -9,7 +9,7 @@ import cesiumpy.util.common as com # ToDo: want different geocoders? -_GEOCODER = GoogleV3() +_GEOCODER = GeocodeFarm() def _maybe_geocode(x, height=None):