• [MOD] Google-Maps Integration V.01 5 0 5 1
Currently:  

Author Topic: [MOD] Google-Maps Integration V.01  (Read 290757 times)

0 Members and 2 Guests are viewing this topic.

Rembrandt

  • Guest
Re: [MOD] Google-Maps Integration V.01
« Reply #165 on: March 04, 2010, 05:00:40 PM »
perfect, thx!

so..to your problem, you have a white background and white font color  :mrgreen: look the  attachment

mfg Andi

Offline igor3000

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Google-Maps Integration V.01
« Reply #166 on: March 04, 2010, 05:11:18 PM »
 :mrgreen: :mrgreen: :mrgreen: I did not sleep 3 days, puzzled! Thanks huge!!!

And the background of this window varies in css or in Mod. And how to make, that to users, this function too was accessible?
« Last Edit: March 05, 2010, 12:51:12 PM by igor3000 »

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] Google-Maps Integration V.01
« Reply #167 on: March 27, 2010, 12:00:52 AM »
Super Mod,hab´s endlich hinbekommen.
Allerdings ist die Map elend langsam und lässt zu lange einen leeren Fleck.
Gibt es eine möglichkeit diese Map extern aufzurufen,etwa mit Link?

Und besteht die Möglichkeit die erweiterten Felder für Adresse und Stadt automatisch zu übergeben?

Thanks,this Mod works great.
But Map works very slow,it just seems long time a empty place.
Is it possible vor better integration,maybe open Map with Link?

Thanks

Rembrandt

  • Guest
Re: [MOD] Google-Maps Integration V.01
« Reply #168 on: March 27, 2010, 05:40:10 AM »
..
Allerdings ist die Map elend langsam und lässt zu lange einen leeren Fleck.
Gibt es eine möglichkeit diese Map extern aufzurufen,etwa mit Link?
...

suche:

$gmap_java 
"";

füge davor ein:

$google_info 
"
&nbsp;<a href = 'http://maps.google.de/maps?q=
$image_gmap_latitude,$image_gmap_longitude&amp;t=h&amp;ie=UTF8&amp;ll=$GPSLatitude,$$image_gmap_longitude&amp;spn=0.002316,0.005021&amp;z=18&amp;om=1' onclick=\"void(window.open(this.href, '', '')); return false;\">Position in Google Karte öffnen</a>
<br>
	

&nbsp;<a href = 'http://maps.live.com/default.aspx?v=2&amp;cp=
$image_gmap_latitude~$image_gmap_longitude&amp;style=h&amp;lvl=17&amp;tilt=-90&amp;dir=0&amp;alt=-1000&amp;scene=6176719&amp;encType=1' onclick=\"void(window.open(this.href, '', '')); return false;\">Position in Microsoft Live Karte öffnen</a>
<br>
	

&nbsp;<a href = 'http://www.flashearth.com/?lat=
$image_gmap_latitude&amp;lon=$image_gmap_longitude&amp;z=15.8&amp;r=0&amp;src=ggl' onclick=\"void(window.open(this.href, '', '')); return false;\">Position in Flash Earth öffnen</a><br>";


suche:

 $site_template
->register_vars(array(
    
"gmap"   => $gmap,
    
"gmap_java" => $gmap_java,
  ));

ersetze es:

 $site_template
->register_vars(array(
    
"google_info" => $google_info,
    
"gmap"   => $gmap,
    
"gmap_java" => $gmap_java,
  ));


mittels {google_info} kannst du dir in der html datei, die links anzeigen lassen.
ungetestet, sollte aber funktionieren.

mfg Andi

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] Google-Maps Integration V.01
« Reply #169 on: March 27, 2010, 03:11:13 PM »
Hey super,deine Erweiterung läuft bestens.
Allerding geht bei der Umleitung zu Google die Sprechblase mit den angezeigten Bild verloren.
Lässt sich das doch irgendwie beibehalten?
Ansonsten,Tiptop und fettes merci für die Hilfe
 :D

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [MOD] Google-Maps Integration V.01
« Reply #170 on: August 25, 2010, 02:40:05 PM »
How difficult would it be to allow user to choose photo position direct from Google Map? I found similar function on Flickr...

Rembrandt

  • Guest
Re: [MOD] Google-Maps Integration V.01
« Reply #171 on: August 25, 2010, 04:09:37 PM »
How difficult would it be to allow user to choose photo position direct from Google Map? I found similar function on Flickr...
mean you, choose photo position direct from Google Map from the member upload form?

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [MOD] Google-Maps Integration V.01
« Reply #172 on: August 25, 2010, 04:25:52 PM »
How difficult would it be to allow user to choose photo position direct from Google Map? I found similar function on Flickr...
mean you, choose photo position direct from Google Map from the member upload form?

Yes exactly, user select position direct from Google Map. Because I know its difficult to know all coordinates for position.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Google-Maps Integration V.01
« Reply #173 on: August 25, 2010, 07:52:02 PM »
@Lucifix

... it is possible ... you can test it on my website* (and use it from my website*) ...
... my website -> Dein Bild hochladen -> Easyform or Expertform -> IE Geocoder ...
... only one downside : the geodata transfer from my geocodertool into the uploadform works only with MSIE not with FF ...
... for FF-user I offer a own FF Geocoder, but it is not so comfortable ...

* is at time a big construction site
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 Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [MOD] Google-Maps Integration V.01
« Reply #174 on: August 26, 2010, 09:30:44 AM »
I've found solution for that ;)

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
Latitude: <input class="required" type="text" name="latitude" id="latitude" value="" />
Longitude: <input class="required" type="text" name="longitude" id="longitude" value="" />
<br /><br />
<div id="map" style="width: 600px; height: 420px"></div>

<!-- add your map api key here -->
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=YOUR-API-KEY"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<script type="text/javascript">
        $(document).ready(function(){
                map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());       
map.addControl(new GMapTypeControl());
map.enableScrollWheelZoom();
                map.checkResize();
                map.setCenter(new GLatLng(46.21785176740299,14.9908447265625), 8);

                GEvent.addListener(map, 'click', function(overlay, point) {
                        if (overlay) {
                                map.removeOverlay(overlay);
                        }
                        else if (point) {
                                map.panTo(point);
                                map.clearOverlays();
                                var marker = new GMarker(point);
                                map.addOverlay(marker);
                                $("#latitude").val(point.x);
                                $("#longitude").val(point.y);
                        }
                });

        });
</script>
</body>
</html>
« Last Edit: August 26, 2010, 11:40:10 AM by Lucifix »

Offline karimeiad

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] Google-Maps Integration V.01
« Reply #175 on: September 19, 2010, 05:53:37 AM »
Problem :(


An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.

An unexpected error occured. Please try again later.
Error
  ALTER TABLE 4images_images ADD `image_gmap_longitude` varchar(20) NOT NULL DEFAULT '0'

Error
  ALTER TABLE 4images_images ADD `image_gmap_latitude` varchar(20) NOT NULL DEFAULT '0'

Error
  ALTER TABLE 4images_images ADD `image_gmap_zoom` char(2) NOT NULL DEFAULT '0'

Error
  ALTER TABLE 4images_images ADD `image_gmap_type` tinyint(1) NOT NULL DEFAULT '0'

Error
  ALTER TABLE 4images_images ADD `image_gmap_show` tinyint(1) NOT NULL DEFAULT '0'

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] Google-Maps Integration V.01
« Reply #176 on: September 19, 2010, 06:12:30 AM »
Welcome to 4images forum.

You must have started the installer more then once. It should be all installed already.
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 bergblume

  • Sr. Member
  • ****
  • Posts: 463
  • on to the top!
    • View Profile
Re: [MOD] Google-Maps Integration V.01
« Reply #177 on: October 17, 2010, 12:17:13 PM »
Hallo zusammen,

ich verwende diesen MOD schon sehr lange... nachdem meine inhalte auf den detail-seiten immer mehr geworden sind, bin ich gerade dabei die usability zu verbessern indem ich einzelne inhalte auf den detailseiten in Tabs abbilden möchte..
hierbei soll u.a. in einem Tab (nicht im ersten sondern im dritten = hidden) die googlemaps angezeigt werden.
ich bin hierbei auf dieses problem gestoßen => problematik der anzeige von google maps in hidden tabs mit
Quote
style="display:none"

d.h. die googlemap schaut dann nicht vollständig geladen aus =>


wie kann ich dies lösen und wo und wie muss ich auf meiner details.php (oder .html?) das erwähnte map.checkResize() einfügen, damit die googlemap in meinem Hidden-tab richtig geladen wird?

in meiner details.html schaut man ausklappmenu vom code wie folgt aus:

Code: [Select]
<script>
  function SwitchMenu(id){
   var row = document.getElementById(id);
   row.style.display    = (row.style.display == "none") ? row.style.display = "" : row.style.display = "none";
}
</script>


          <tr onClick="SwitchMenu('sub1')">
            <td class="row2" ><b style="cursor:pointer">Karte:</b></td>
            <td class="row2" width="100%">Klicke hier um die Landkarte und Webcams zu sehen</td>
          </tr>


          <tr id="sub1" style="display:none" >
            <td class="row1">Karte: </td>
            <td class="row1">    
                  {if gmap}
                            <div id="map" style="width: 100%; height: 500px"></div>
                  {endif gmap}
            </td>
          <tr>

Danke für eure Hilfe!
bergblume

Rembrandt

  • Guest
Re: [MOD] Google-Maps Integration V.01
« Reply #178 on: October 17, 2010, 12:52:45 PM »
...wie kann ich dies lösen und wo ...
auf deutsch, du hast damit probleme wenn du die googlemap in eine aufklappbare tabelle steckst, diese nicht vollständig oder gar nicht geladen wird?
als Bspl.: meine detailseiten (links unter den bildern auf "bildinformation klicken")
ist das soweit richtig?

mfg Andi

Offline bergblume

  • Sr. Member
  • ****
  • Posts: 463
  • on to the top!
    • View Profile
Re: [MOD] Google-Maps Integration V.01
« Reply #179 on: October 17, 2010, 12:54:04 PM »
ja, genau!