@@ -155,44 +161,46 @@ header('X-UA-Compatible: IE=edge,chrome=1');
-
-
+
+
-
-
-
+
+
- getCoordsFromExif($IMG);
- if ($point) {
- $long = $point->getX();
- $lat = $point->getY();
- $latShort = round($lat,3);
- $longShort = round($long,3);
+ /** @var helper_plugin_spatialhelper_index $spatial */
+ $spatial = plugin_load('helper', 'spatialhelper_index');
+ if ($spatial && plugin_load('helper', 'geophp')) {
+ global $IMG;
+ $point = $spatial->getCoordsFromExif($IMG);
+ if ($point) {
+ $long = $point->getX();
+ $lat = $point->getY();
+ $latShort = round($lat, 3);
+ $longShort = round($long, 3);
- $hrefOSM = "https://www.openstreetmap.org/?mlat=$lat&mlon=$long#map=18/$lat/$long";
- $srcOSM = 'https://www.openstreetmap.org/export/embed.html?bbox='.($long-0.004).','.($lat-0.002).','.($long+0.004).','.($lat+0.002).'&layer=mapnik&marker='.$lat.','.$long;
- echo '
';
- echo '- OSM:
- ';
- echo '
View Larger Map';
- echo ' ';
- echo '
';
- }
- }
- ?>
-
-
+ $hrefOSM = "https://www.openstreetmap.org/?mlat=$lat&mlon=$long#map=18/$lat/$long";
+ $srcOSM = 'https://www.openstreetmap.org/export/embed.html?bbox=' . ($long - 0.004) . ',' . ($lat - 0.002) . ',' . ($long + 0.004) . ',' . ($lat + 0.002) . '&layer=mapnik&marker=' . $lat . ',' . $long;
+ echo '
';
+ echo '- OSM:
- ';
+ echo '
View Larger Map';
+ echo ' ';
+ echo '
';
+ }
+ }
+ ?>
+
+