Module:EXIF GPS move under the photo? or in the photo_bottom.

slart

Joined: 2013-11-11
Posts: 112
Posted: Fri, 2014-01-24 15:05

edit: first i testet the Modules:tagsmap and then taken the Module:Exif GPS.

Hello, many questions to the Modules:tagsmap.

I have in my Gallery3 (Theme Canvas) the Modules:tagsmap installed, but it does not work correctly.

If I get coordinates to an image in maps.google.com and enter them in the picture as a tag, then they appear in the admin panel by "Edit GPS Data for Tag" just above the map. Below in the text boxes are wrong coordinates and other coordinates. They are not carried correctly.

I have over 4,000 photos. It is very inconvenient every time still specially in the admin panel to unlock each coordinates in the admin panel.

I would also position the map with only the photo associated marker below the photo. How do I do that?
Now I have only one Map with all markes. This is not very convenient if a visitor wants to leave a position of the photos themselves.

I have seen this possibility with the map in the sidebar. How does it work?
see here: http://galleryproject.org/files/navcarousel.jpg

greetings

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Fri, 2014-01-24 16:01

I found the Module: EXIF GPS, is better.

How do I put the map under the photo?

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Fri, 2014-01-24 16:35

OK, i can put the code from the
/modules/exif_gps/views/exif_gps_dynamic_sidebar.html.php
in the
/themes/clean_canvas/views/photo.thml.php
and than is a problem:
i must have the module activate loading in the sidebar (admin panel), else is printig "Loading ...".
than, its print "Loading ..." when no have coordinates under the photo, and print "Loading ..." when have coordinates in the sidebar.

Have anybody an idea?

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sat, 2014-01-25 15:57

I have found a solution and have a question.

My question:

In the sidebar is now the entry "Location" blank. I would like to be there the GPS coordinates. How do I do that?
Can I also link coordinates with the coordinates according to maps.google.com?
Example: maps.google.de / maps q = 12.345678,12.876543

Solution for Gallery3 theme Clean Dark Canvas with fixed width and EXIF GPS Settings Map Interactive.

Delete in the File
modules\exif_gps\exif_gps\views\exif_gps_dynamic_sidebar.html.php

Line 161 to 169

Quote:
<div id="wrapper">
<div id="map_canvas" style="width:205px; height:214px"></div>
<div id="over_map" style="width:205px; height:214px">
<p id="exif-gps-status" class="exif-gps-status" style="text-align: center; display: table-cell; vertical-align: middle; width:205px; height:214px">
<font size="4" color="white"><strong><?= t("Loading..."); ?></strong></font><br /><br />
<img src="<?= url::file("modules/exif_gps/images/exif_gps-loading-map-large.gif"); ?>" style="vertical-align: middle;"></img>
</p>
</div>
</div>

Write in the File:
themes\clean_canvas\views\photo.html.php

to the end before the last </div>

Quote:
<div id="wrapper">
<div id="map_canvas" style="width:700px; height:500px"></div>
<div id="over_map" style="width:700px; height:500px">
<p id="exif-gps-status" class="exif-gps-status" style="text-align: center; display: table-cell; vertical-align: middle; width:700px; height:500px">
<font size="4" color="white"><strong><?= t("Loading..."); ?></strong></font><br /><br />
<img src="<?= url::file("modules/exif_gps/images/exif_gps-loading-map-large.gif"); ?>" style="vertical-align: middle;"></img>
</p>
</div>
</div>

Don't forget my question please. :)

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sat, 2014-01-25 18:36

I'm good.

put this in the file on the end.
modules\exif_gps\exif_gps\views\exif_gps_dynamic_sidebar.html.php

Quote:
<ul>

<li><a href="https://maps.google.com/maps?q=<?=$latitude; ?>,<?=$longitude; ?>" target="_blank"><?=$latitude; ?>,<?=$longitude; ?></a>

</ul>

Change in the file:
modules\exif_gps\exif_gps\helpers\exif_gps_block.php

Line 119

Quote:
$block->title = t("Google Maps GPS coordinates");

I have not found the translation for other languages.

One Problem: the Box is always present in the albums with coordinates 0,0. Thats not so fine. We can i fix it?

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sat, 2014-01-25 17:37

OK, i found it and fix it whit that:

in the file
modules\exif_gps\exif_gps\helpers\exif_gps_block.php
delete in the line 136 this on the end of the line:

Quote:
{

and delete the line 137 to 158:

Quote:
// If coordinates were NOT found, and this is an album with a dynamic map, then map the contents of the album.

$items_count = ORM::factory("item", $theme->item->id)

->join("exif_coordinates", "items.id", "exif_coordinates.item_id")

->viewable()

->order_by("exif_coordinates.latitude", "ASC")

->descendants_count();

if ($items_count > 0) {

$block = new Block();

$block->css_id = "g-exif-gps-location";

$block->title = t("Location");

$block->content = new View("exif_gps_dynamic_sidebar.html");

if (module::get_var("exif_gps", "sidebar_maptype") == 0) $block->content->sidebar_map_type = "ROADMAP";

if (module::get_var("exif_gps", "sidebar_maptype") == 1) $block->content->sidebar_map_type = "SATELLITE";

if (module::get_var("exif_gps", "sidebar_maptype") == 2) $block->content->sidebar_map_type = "HYBRID";

if (module::get_var("exif_gps", "sidebar_maptype") == 3) $block->content->sidebar_map_type = "TERRAIN";

$block->content->album_id = $theme->item->id;

$block->content->latitude = 0;

$block->content->longitude = 0;

$block->content->items_count = $items_count;

$block->content->google_map_key = module::get_var("exif_gps", "googlemap_api_key");

}

}

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sun, 2014-01-26 08:36

grrrrrrrrrrr. It's another Problem!

In the photopages without coordinates is the "Loading ..." images under the photos. Whats that?

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sun, 2014-01-26 08:35

Good Morning!

Have anybody no idea?
My new idea is: can i put the module in the "photo_bottom" php box? I have seen this, and the module navcarousel is in the "photo_bottom".
We can i put the exif_gps in the "photo_bottom"?

Please help me!

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Mon, 2014-01-27 19:13

the Modules: Exif is in the bottom of the sidebar. My pictures have no exif, only GPS Exif. so this is unnecessary.

isn't function to deactivate.

delete in /modules/exif/views/exif_sidebar.html.php

<a id="g-exif-data-link" href="<?= url::site("exif/show/{$item->id}") ?>" title="<?= t("Photo details")->for_html_attr() ?>"
class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-info"></span>
<?= t("View more information") ?>
</a>