Skip to content

Commit

Permalink
♻️ Rename TerritoryMapElement.location to territory
Browse files Browse the repository at this point in the history
Why:
- Unify naming with TerritoryMiniMapElement.
  • Loading branch information
luontola committed Jul 10, 2024
1 parent 7ba368a commit 2d70566
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/territory_bro/ui/printout_templates.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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}])]

Expand Down
2 changes: 1 addition & 1 deletion src/territory_bro/ui/territory_page.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion web/src/maps/TerritoryMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d70566

Please sign in to comment.