Skip to content

Commit 2dca034

Browse files
committed
✏️ Change default copyright name and example tile provider
1 parent e125b5e commit 2dca034

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

exampleSite/content/docs/shortcodes/index.it.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ When life gives you lemons, make lemonade.
569569
| `minZoom` | Optional integer that sets the minimum zoom, default is `15` |
570570
| `maxZoom` | Optional integer that sets the maximum zoom, default is `19` |
571571
| `copyrightURL` | Optional string with URL that sets the copyright link, default is `"https://openstreetmap.org/copyright"` |
572-
| `copyrightName` | Optional string with URL that sets the copyright text, default is `OpenStreetMap` |
572+
| `copyrightName` | Optional string with URL that sets the copyright text, default is `OpenStreetMap Contributors` |
573573
| `markerX` | Optional float value with a coordinate (Longitude) for an optional marker in the map, for example `40.689272` |
574574
| `markerY` | Optional float value with a coordinate (Latitude) for an optional marker in the map, for example `-74.044512` |
575575
| `markerTooltip` | Optional string with text for a marker tooltip, for example `"Statue of Liberty"` |
@@ -580,10 +580,10 @@ When life gives you lemons, make lemonade.
580580
**Example:**
581581

582582
```md
583-
{{</* leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.de" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" */>}}
583+
{{</* leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.org" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap Contributors" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" */>}}
584584
```
585585

586-
{{< leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.de" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" >}}
586+
{{< leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.org" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap Contributors" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" >}}
587587

588588
<br/><br/><br/>
589589

exampleSite/content/docs/shortcodes/index.ja.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ Blowfish も、標準の Markdown 構文を使用して含まれる画像の自
566566
| `minZoom` | Optional integer that sets the minimum zoom, default is `15` |
567567
| `maxZoom` | Optional integer that sets the maximum zoom, default is `19` |
568568
| `copyrightURL` | Optional string with URL that sets the copyright link, default is `"https://openstreetmap.org/copyright"` |
569-
| `copyrightName` | Optional string with URL that sets the copyright text, default is `OpenStreetMap` |
569+
| `copyrightName` | Optional string with URL that sets the copyright text, default is `OpenStreetMap Contributors` |
570570
| `markerX` | Optional float value with a coordinate (Longitude) for an optional marker in the map, for example `40.689272` |
571571
| `markerY` | Optional float value with a coordinate (Latitude) for an optional marker in the map, for example `-74.044512` |
572572
| `markerTooltip` | Optional string with text for a marker tooltip, for example `"Statue of Liberty"` |
@@ -577,10 +577,10 @@ Blowfish も、標準の Markdown 構文を使用して含まれる画像の自
577577
**Example:**
578578

579579
```md
580-
{{</* leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.de" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" */>}}
580+
{{</* leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.org" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap Contributors" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" */>}}
581581
```
582582

583-
{{< leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.de" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" >}}
583+
{{< leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.org" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap Contributors" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" >}}
584584

585585
<br/><br/><br/>
586586

exampleSite/content/docs/shortcodes/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -573,21 +573,21 @@ When life gives you lemons, make lemonade.
573573
| `minZoom` | Optional integer that sets the minimum zoom, default is `15` |
574574
| `maxZoom` | Optional integer that sets the maximum zoom, default is `19` |
575575
| `copyrightURL` | Optional string with URL that sets the copyright link, default is `"https://openstreetmap.org/copyright"` |
576-
| `copyrightName` | Optional string with URL that sets the copyright text, default is `OpenStreetMap` |
576+
| `copyrightName` | Optional string with URL that sets the copyright text, default is `OpenStreetMap Contributors` |
577577
| `markerX` | Optional float value with a coordinate (Longitude) for an optional marker in the map, for example `40.689272` |
578578
| `markerY` | Optional float value with a coordinate (Latitude) for an optional marker in the map, for example `-74.044512` |
579579
| `markerTooltip` | Optional string with text for a marker tooltip, for example `"Statue of Liberty"` |
580580
| `mapHeight` | Optional height of the map element, default is `"600px"` |
581-
| `mapWidth` | Optional width of the map element, default is equal to `"600px"` |
581+
| `mapWidth` | Optional width of the map element, default is equal to `mapHeight` |
582582
<!-- prettier-ignore-end -->
583583

584584
**Example:**
585585

586586
```md
587-
{{</* leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.de" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" */>}}
587+
{{</* leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.org" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap Contributors" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" */>}}
588588
```
589589

590-
{{< leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.de" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" >}}
590+
{{< leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.org" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap Contributors" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" >}}
591591

592592
<br/><br/><br/>
593593

exampleSite/content/docs/shortcodes/index.zh-cn.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,21 +552,21 @@ When life gives you lemons, make lemonade.
552552
| `minZoom` | Optional integer that sets the minimum zoom, default is `15` |
553553
| `maxZoom` | Optional integer that sets the maximum zoom, default is `19` |
554554
| `copyrightURL` | Optional string with URL that sets the copyright link, default is `"https://openstreetmap.org/copyright"` |
555-
| `copyrightName` | Optional string with URL that sets the copyright text, default is `OpenStreetMap` |
555+
| `copyrightName` | Optional string with URL that sets the copyright text, default is `OpenStreetMap Contributors` |
556556
| `markerX` | Optional float value with a coordinate (Longitude) for an optional marker in the map, for example `40.689272` |
557557
| `markerY` | Optional float value with a coordinate (Latitude) for an optional marker in the map, for example `-74.044512` |
558558
| `markerTooltip` | Optional string with text for a marker tooltip, for example `"Statue of Liberty"` |
559559
| `mapHeight` | Optional height of the map element, default is `"600px"` |
560-
| `mapWidth` | Optional width of the map element, default is equal to `"600px"` |
560+
| `mapWidth` | Optional width of the map element, default is equal to `mapHeight` |
561561
<!-- prettier-ignore-end -->
562562

563563
**Example:**
564564

565565
```md
566-
{{</* leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.de" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" */>}}
566+
{{</* leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.org" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap Contributors" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" */>}}
567567
```
568568

569-
{{< leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.de" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" >}}
569+
{{< leaflet centerMapElement=true mapCenterX=40.690136 mapCenterY=-74.045301 defaultZoom=18 tileBaseURL="https://tile.openstreetmap.org" minZoom=10 maxZoom=18 copyrightURL="https://openstreetmap.org/copyright" copyrightName="OpenStreetMap Contributors" markerX=40.689272 markerY=-74.044512 markerTooltip="Statue of Liberty" mapHeight="550px" mapWidth="600px" >}}
570570

571571
<br/><br/><br/>
572572

layouts/shortcodes/leaflet.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{{ $minZoom := .Get "minZoom" | default 15 }}
1111
{{ $maxZoom := .Get "maxZoom" | default 19 }}
1212
{{ $copyrightURL := .Get "copyrightURL" | default "https://openstreetmap.org/copyright" }}
13-
{{ $copyrightName := .Get "copyrightName" | default "OpenStreetMap" }}
13+
{{ $copyrightName := .Get "copyrightName" | default "OpenStreetMap Contributors" }}
1414

1515
{{ $markerIcon := resources.Get "lib/leaflet/images/marker-icon.png" }}
1616
{{ $markerIconRetina := resources.Get "lib/leaflet/images/marker-icon-2x.png" }}

0 commit comments

Comments
 (0)