diff --git a/ocitysmap/stylelib/Umap.py b/ocitysmap/stylelib/Umap.py index 304b416..5ce809c 100644 --- a/ocitysmap/stylelib/Umap.py +++ b/ocitysmap/stylelib/Umap.py @@ -207,10 +207,10 @@ class UmapStylesheet(Stylesheet): marker_offsets = { 'Default': -18, - 'Square': -18, - 'Drop' : -18, - 'Circle': 0, - 'Ball' : -16 + 'Square' : -18, + 'Drop' : -18, + 'Circle' : 0, + 'Ball' : -16, } http = urllib3.PoolManager() @@ -258,7 +258,7 @@ class UmapStylesheet(Stylesheet): iconUrl = new_props['iconUrl'] # if icon class is one of those used by Umap: - if iconClass in ['Square', 'Drop', 'Default']: + if iconClass in ['Circle', 'Square', 'Drop', 'Default']: # check whether one of the default UMAP icons is used # by known URL pattern, or external if validators.url(iconUrl): diff --git a/templates/umap/template.xml b/templates/umap/template.xml index 47baa30..751aaf8 100644 --- a/templates/umap/template.xml +++ b/templates/umap/template.xml @@ -37,12 +37,12 @@ - (not ([iconUrl] = null or [iconUrl] = '')) and ([mapnik::geometry_type]=point) + (not ([iconClass] = 'Circle')) and (not ([iconUrl] = null or [iconUrl] = '')) and ([mapnik::geometry_type]=point) - (not ([iconLabel] = null or [iconLabel] = '')) and ([mapnik::geometry_type]=point) + (not ([iconClass] = 'Circle')) and (not ([iconLabel] = null or [iconLabel] = '')) and ([mapnik::geometry_type]=point) [iconLabel]