PDA

View Full Version : Google map in Layoutdialog ?



Footeuz
27 Sep 2007, 12:10 AM
I make a new topic for this problem :

In my website http://300gp.ovh.net/~dedistor/blankass/concerts_passes.php my google map does'n't want to be show in my Panel "Details" ?!!!!!!
It was shown when I had a BasicDialog.

The page source code is


<div id="map" style="width: 500px; height: 300px;"></div>

<script type="text/javascript">
function createMarker(point,text) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(text); });
return marker;
}

if (GBrowserIsCompatible()) {
var Lat=50.333135 // longitude
var Lng=3.404303 // attitude
var Zoom=12 // zoom
var TextAffiche="Denain/Plein Air - Place Wilson"; //texte

var map = new GMap2(document.getElementById("map")); // affiche le module
map.setCenter(new GLatLng(Lat,Lng ),Zoom ); //affiche la carte au lieu precis
map.addControl(new GSmallMapControl()); // affiche le curseur de zoom
map.addControl(new GMapTypeControl()); // affiche le curseur

var point = new GLatLng(Lat,Lng);
var marker = createMarker(point,TextAffiche);
map.addOverlay(marker);
}
</script>


So I thinks there is an interference between the javascript but I don't see where?

Footeuz
1 Oct 2007, 1:36 AM
I read that I must have a fixed div for my map.
But I think that's done so I don't understand where is the problem

Footeuz
3 Oct 2007, 5:48 AM
Nobody for help me ?
:">

Footeuz
5 Oct 2007, 2:05 AM
:(

Footeuz
7 Oct 2007, 11:49 PM
nobody solved this problem ?!!!! :((

tryanDLS
8 Oct 2007, 10:50 AM
Please stop repeatedly bumping your threads b/c you don't get a response. If somebody has an answer or suggestion, they will provide it.