mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 23:43:42 +00:00
[openstreetmap] Ensure location key is available in hook data
- Address https://github.com/friendica/friendica/issues/10169#issuecomment-835548421
This commit is contained in:
parent
0464660cad
commit
7cad014049
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ function openstreetmap_generate_map(&$a, &$b)
|
|||
$cardlink .= '?mlat=' . $lat . '&mlon=' . $lon;
|
||||
}
|
||||
|
||||
$cardlink .= '#map=' . $zoom . '/' . $lat . '/' . $lon . '">' . ($b['location'] ? Strings::escapeHtml($b['location']) : DI::l10n()->t('View Larger')) . '</a>';
|
||||
$cardlink .= '#map=' . $zoom . '/' . $lat . '/' . $lon . '">' . ($b['location'] ??0? Strings::escapeHtml($b['location']) : DI::l10n()->t('View Larger')) . '</a>';
|
||||
if (empty($b['mode'])) {
|
||||
$b['html'] = '<iframe style="width:100%; height:300px; border:1px solid #ccc" src="' . $tmsserver .
|
||||
'/export/embed.html?bbox=' . ($lon - 0.01) . '%2C' . ($lat - 0.01) . '%2C' . ($lon + 0.01) . '%2C' . ($lat + 0.01) .
|
||||
|
|
Loading…
Reference in a new issue