• [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen 4 0 5 1
Currently:  

Author Topic: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen  (Read 104133 times)

0 Members and 1 Guest are viewing this topic.

Offline Skorpion501

  • Pre-Newbie
  • Posts: 4
    • View Profile
    • Galerie von mir ;)
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #45 on: September 29, 2008, 07:34:11 PM »
hab den Mod so ca. 10 mal entfernt und wieder neu gemacht (bzw. eingepflegt)... hat alles keine Hilfe gebracht..
im FF alles wunderbar, im IE wird´´s nicht angezeigt...

dann hab ich hier quasi das Forum auswendig gelernt....und die Lösung gefunden:
No I have moved this one from header.html
<script type="text/javascript" language="javascript" src="{template_url}/behavior.js"></script>
<script type="text/javascript" language="javascript" src="{template_url}/rating.js"></script>
{css_starratings}

just befor the /body Tag in footer.html

bei mir hat´´s dann auch funktioniert ..

Demo: http://bilder.data-trend.de/details.php?image_id=1245

 *Link Removed*

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #46 on: September 30, 2008, 05:52:08 AM »
Hallo,

Code: [Select]
{css_starratings}würde ich aber schon in header.html lassen.

Für das js werde ich den modcode für starrating ändern (Hinweis)...


Kurt

Offline Skorpion501

  • Pre-Newbie
  • Posts: 4
    • View Profile
    • Galerie von mir ;)
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #47 on: September 30, 2008, 05:32:55 PM »
Code: [Select]
<script type="text/javascript" language="javascript" src="{template_url}/behavior.js"></script>
<script type="text/javascript" language="javascript" src="{template_url}/rating.js"></script>

hat zwar nichts mit diesem mod zutun...
hauptsache es läuft nun ;)

will ich auch nicht sagen. bitte nicht falsch verstehen.. ich sehe das Problem eher in Richtung IE .. ;)

 *Link Removed*

Rembrandt

  • Guest
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #48 on: October 01, 2008, 05:19:04 AM »
...
will ich auch nicht sagen. bitte nicht falsch verstehen.. ich sehe das Problem eher in Richtung IE .. ;)

löscht halt mal das raus:
Quote
<body onload='load()' onunload='GUnload()'>

mfg Andi

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #49 on: November 04, 2008, 05:12:19 AM »
There is a small bug - longitude values shows as negative or positive same as latitude

This line is wrong:
Code: [Select]
        $GPSLongGrad = $GPSLatfaktor * ($GPSLong_h + ($GPSLong_m + ($GPSLong_s / 60))/60);

It supposed to be:
Code: [Select]
        $GPSLongGrad = $GPSLongfaktor * ($GPSLong_h + ($GPSLong_m + ($GPSLong_s / 60))/60);

[EDIT]
A little cosmetic tweak:
replace
Code: [Select]
<div id='map' style='width: 700px; height: 300px'></div>with:
Code: [Select]
<div id='map' style='width: 700px; height: 300px; overflow: hidden;'></div>This will remove very long white ink copyright line that doesn't fit into a small map and prints all over the webpage.
« Last Edit: November 04, 2008, 07:13:10 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #50 on: November 04, 2008, 09:43:13 AM »
A little cosmetic tweak:
replace
Code: [Select]
<div id='map' style='width: 700px; height: 300px'></div>with:
Code: [Select]
<div id='map' style='width: 700px; height: 300px; overflow: hidden;'></div>This will remove very long white ink copyright line that doesn't fit into a small map and prints all over the webpage.

... not for me on your site ...
... I think you should try this in your map code ...

Code: [Select]
var CopyrightDivMap = map.firstChild.nextSibling;
CopyrightDivMap.style.display = 'none';
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #51 on: November 04, 2008, 02:35:35 PM »
nope, gives JS error

This is how it looks without the tweak:
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #52 on: November 04, 2008, 02:53:57 PM »
This will remove ...

... ok ... your solution hide the copyright-note, but not removed it ...
... my solution removed the note ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #53 on: November 04, 2008, 03:17:42 PM »
Actually, sorry to tell you that, but your code does nothing to the copyright.
Google maps put different copyright depends on the location and zoom. If you navigate on your site to USA -> Florida -> St. Petersburg and zoom in it will show the overflowed copyright.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #54 on: November 04, 2008, 03:32:17 PM »
... sorry ... ?
... you try it only in the big map on details, my example on my page for removing the note is to find in the small "Weltkarte" ...
... or in mini maps ... here ...
... and there you find any note ... ?
... btw. it was only a hint ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #55 on: November 04, 2008, 03:48:08 PM »
It appears only on satellite/hybrid map types.

[EDIT]
Ok, got your method to work:
Code: [Select]
document.getElementById('map').firstChild.nextSibling.style.display = 'none';but it's more violates Google's TOS then the work around the overflow ;)
« Last Edit: November 04, 2008, 04:10:53 PM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #56 on: November 04, 2008, 04:32:30 PM »
... as always ... you are right ...  :wink:
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline jmschwoerer

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #57 on: November 10, 2009, 09:58:09 PM »
Habe seit geraumer Zeit diesen MOD ... und alles hat wunderbar funktioniert.

Letzte Woche war ich in New York ;) ... und nun wollte ich die ersten Bilder online stellen ... doch der Ort wird in Kasachstan angezeigt. Da wird wohl OSt mit West vertauscht ...
Im Ersten Post dieses Threads steht das ja schon, dass da war vertauscht war ... aber ich habe die Änderungen gemacht. Kann mir jemand da auf die weiter helfen?

Beispiel: http://galerie.jmshome.net/details.php?image_id=3638

An den falschen GPS Daten kann es wohl kaum liegen, da in Geo-Setter (mit dem Programm schreibe ich die GPS Daten auf in die jpgs) und wenn ich die Bilder in mein PPicasa Album hoch lade stimmt der Ort.

Grüße jms

Rembrandt

  • Guest
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #58 on: November 10, 2009, 10:42:58 PM »
Hi!
..
Letzte Woche war ich in New York ;) ... und nun wollte ich die ersten Bilder online stellen ... doch der Ort wird in Kasachstan angezeigt. Da wird wohl OSt mit West vertauscht ...
Im Ersten Post dieses Threads steht das ja schon, dass da war vertauscht war ... aber ich habe die Änderungen gemacht. Kann mir jemand da auf die weiter helfen?...
aus meine mod http://www.4homepages.de/forum/index.php?topic=21017.msg114214#msg114214 kannst du dir den gps teil rauskopieren, der sollte stimmen.

mfg Andi

Offline jmschwoerer

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MOD] GPS Exif Informationen auslesen & in Google Map anzeigen
« Reply #59 on: November 11, 2009, 08:30:20 PM »
Hallo Andi,

danke für die Antwort ... aber kannst du mir nochmals genau sagen welchen teil ich wo einfügen muss?

Das wäre super ....


Ich habe diesen Teil in die function.php kopiert (bzw. den alten Quellcode damit überschrieben):
Code: [Select]
elseif ($key == "GPSLatitudeRef") {
if ($exif_info == N) {$GPSLatitudeRef = "Nord";$GPSLatfaktor = 1;}
if ($exif_info == S) {$GPSLatitudeRef = "Süd"; $GPSLatfaktor = -1;}
  $exif_array[$exif_match[$key]] = ($GPSLatitudeRef);
        }
        elseif ($key == "GPSLongitudeRef") {
 if ($exif_info == E) {$GPSLongitudeRef = "Ost";$GPSLongfaktor = 1;}  
 if ($exif_info == W) {$GPSLongitudeRef = "West";$GPSLongfaktor = -1;}
  $exif_array[$exif_match[$key]] = ($GPSLongitudeRef);

Leider ist das Problem immernoch ;(

Grüße jms
« Last Edit: November 11, 2009, 09:43:03 PM by jmschwoerer »