diff --git a/src/territory_bro/ui/printout_templates.clj b/src/territory_bro/ui/printout_templates.clj index c674904d..aebc37b3 100644 --- a/src/territory_bro/ui/printout_templates.clj +++ b/src/territory_bro/ui/printout_templates.clj @@ -51,7 +51,7 @@ [:div {:class (:map styles)} (print-date-notice print-date - [:territory-map {:location (:location territory) + [:territory-map {:territory (:location territory) :map-raster map-raster :printout true}])] diff --git a/src/territory_bro/ui/territory_page.clj b/src/territory_bro/ui/territory_page.clj index bc85ead4..ee3fffc4 100644 --- a/src/territory_bro/ui/territory_page.clj +++ b/src/territory_bro/ui/territory_page.clj @@ -138,7 +138,7 @@ [:div.pure-u-1.pure-u-lg-2-3.pure-u-xl-3-4 [:div {:class (:map styles)} - [:territory-map {:location (:location territory) + [:territory-map {:territory (:location territory) :map-raster "osmhd" :printout false}]] [:div.no-print diff --git a/web/src/maps/TerritoryMap.ts b/web/src/maps/TerritoryMap.ts index ebf06327..09b12082 100644 --- a/web/src/maps/TerritoryMap.ts +++ b/web/src/maps/TerritoryMap.ts @@ -67,7 +67,7 @@ export class TerritoryMapElement extends OpenLayersMapElement { } createMap({root, printout, mapRaster}) { - const location = this.getAttribute("location"); + const location = this.getAttribute("territory"); const map = initTerritoryMap(root, {location} as Territory, printout) map.setStreetsLayerRaster(mapRaster); return map