got the same problem, though it seems that the map loads above the header and leaves the map window div open and empty...
it works fine in 1.3.2 the problem seems to be in 1.3.5 only
Printable View
got the same problem, though it seems that the map loads above the header and leaves the map window div open and empty...
it works fine in 1.3.2 the problem seems to be in 1.3.5 only
just changed in jscript_googlemapinator.php
toQuote:
var map = new GMap2(document.getElementById("map"));
Quote:
var map = new GMap2(document.getElementById("map1"));
and then in define_ contact_us i changed the div id to same "map1"
that seemed to put the map in it's window, but still left a space above header...
i don't know much about this stuff but i got this far, for now.
still not working properly.:unsure:
The Latitude and Longitude in the admin / My Store has been labelled wrong. I put the co-ordinates in reverse. Where it said to put Google Maps API Longitude - this should be a positive co-ordinate, not a negative, and vice versa for the Google Maps API Latitude, it should be a negative co-ordinate and not a positive...
Great mod tho'!
I have the longitude as a negative coordinate, and the latitude as a positive coordinate and the map appears fine ...:blink:
Are you in the southern hemisphere/on the other side of the world? :smile:
Yes, Australia. I couldn't get the map to load, everything but the map. Got the co-ordinates from Google and Maporama. When everything else failed, I reversed the co-ordinates thinking 'theres no way this is going to work' but da-daa. The mod developer had a few typo's apparently in the SQL, I was also wondering if the Language defines were supposed to be around the other way...anyway, I'm happy now, but thought I'd just post an alternative solution if others may be having the same problem.
So maybe its a Southern Hemisphere thing? I don't know...hmm interesting tho'.
I'm not an expert on geography, but it appears from a quick bit of Googling that latitude is expressed in relation to the equator, usually suffixed by North or South, and longitude is expressed in relation to the Greenwich meridian, suffixed by East or West. Longitude is a maximum of 180 degrees east or west.
So when you use a decimal notation for entering latitude and longitude the 'South or 'West' parts are expressed as a negative number.
So it would seem that it really does depend on where you live in the world whether the numbers are positive or negative - although, of course, latitude would still need to be entered in the 'Latitude' box in the mod, and longitude in the 'Longitude' box in the mod.
Clear as mud? :smile:
Hi,I signed up, had a look at the code and documentation
http://www.google.com/apis/maps/documentation/
After reading the documentation I started experimenting and this is what I came up with. Just cut and paste into an ezpage, and customize to your own requirements.
Put your key (from the signup) in where the abcdefg is and the rest should be self explanatory.
I only require one tab so I deleted the second tab from the original contribution. You can easily add it back in if you want the telephone number/other details on another tab.
Best regardsCode:<div class="center">
<script src="http://maps.google.com/maps?file=api&v=2&key=abcdefg"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var GOOGLE_LAT = 37.4419;
var GOOGLE_LNG = -122.1419;
var GOOGLE_ZOOM = 13;
var STORE_NAME_ADDRESS = "Test<br />99 Road<br />Any Town<br />Any City<br />T:999 999 999";
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(GOOGLE_LAT, GOOGLE_LNG), GOOGLE_ZOOM);
map.addControl(new GMapTypeControl());
map.addControl(new GSmallMapControl());
map.addControl(new GOverviewMapControl());
var point = new GLatLng(GOOGLE_LAT, GOOGLE_LNG);
var infoTabs = [
new GInfoWindowTab("Address", STORE_NAME_ADDRESS)
];
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() { marker.openInfoWindowTabsHtml(infoTabs);});
map.addOverlay(marker);
marker.openInfoWindowTabsHtml(infoTabs);
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" style="width: 500px; height: 300px"></div>
</div>
Alan
Hi,
Many thanks to Graham (snorkpants) :thumbsup: for the contribution otherwise I wouldn't have begun to look at this.
But before he comes out with a version that can do different pages, my hack, and it definitely is a hack, seems to work ok with ezpages, but it doesn't when I paste it into 'contact us' (original contribution works fine though :thumbsup:).
When I paste my hack into 'page 2' as a part of define pages, it works fine so I'm very puzzled on the finer details of html & zencart.
Just my own little puzzle :lamo:
Best regards
Alan