Skip to content

Commit

Permalink
Add link to Bing Satellite
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Dec 21, 2024
1 parent ab4b153 commit d4caaca
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@
"google-maps": "Google Maps",
"google-maps-satellite": "Google Maps (Satellit)",
"bing-maps": "Bing Maps",
"bing-maps-satellite": "Bing Maps (Satellit)",
"park4night": "park4night"
},
"toolbox-tools-dropdown": {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,7 @@
"google-maps": "Google Maps",
"google-maps-satellite": "Google Maps (Satellite)",
"bing-maps": "Bing Maps",
"bing-maps-satellite": "Bing Maps (Satellite)",
"park4night": "park4night"
},
"toolbox-tools-dropdown": {
Expand Down
13 changes: 13 additions & 0 deletions frontend/src/lib/components/toolbox/toolbox-map-style-dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
google: `https://www.google.com/maps/@?api=1&map_action=map&center=${v.center.lat},${v.center.lng}&zoom=${v.zoom}`,
googleSatellite: `https://www.google.com/maps/@?api=1&map_action=map&center=${v.center.lat},${v.center.lng}&zoom=${v.zoom}&basemap=satellite`,
bing: `https://www.bing.com/maps?cp=${v.center.lat}~${v.center.lng}&lvl=${v.zoom}`,
bingSatellite: `https://www.bing.com/maps?cp=${v.center.lat}~${v.center.lng}&lvl=${v.zoom}&style=h`,
park4night: `https://park4night.com/${["fr", "de", "es", "it", "nl"].includes(i18n.currentLanguage) ? i18n.currentLanguage : "en"}/search?lat=${v.center.lat}&lng=${v.center.lng}&z=${v.zoom}`
};
});
Expand Down Expand Up @@ -133,6 +134,18 @@
</a>
</li>

<li v-if="!context.hideCommercialMapLinks">
<a
class="dropdown-item fm-toolbox-new-window-item"
:href="links.bingSatellite"
target="_blank"
draggable="false"
>
<span>{{i18n.t("toolbox-map-style-dropdown.bing-maps-satellite")}}</span>
<Icon icon="new-window"></Icon>
</a>
</li>

<li v-if="!context.hideCommercialMapLinks">
<a
class="dropdown-item fm-toolbox-new-window-item"
Expand Down

0 comments on commit d4caaca

Please sign in to comment.