I have been tweaking codes and searching high and low for days now, but am looking for something like this but for it to also display in the results the country code that GoogleMaps has an element.
Here is the coding of the map i have on my site (fairly simple i'll have you agree) and i'm wondering if theres anything I have missed
I look forward to hearing from you all soon
Make Sense? I hope so (-:
Here is the coding of the map i have on my site (fairly simple i'll have you agree) and i'm wondering if theres anything I have missed
Code:
<script type="text/javascript"> //<![CDATA[
var map = null;
var geocoder = null;
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(51.43, 0), 1);
map.addControl(new GLargeMapControl());
geocoder = new GClientGeocoder();
GEvent.addListener(map, 'click', function(overlay, point) {
if (point) {
document.getElementById("show_x").innerHTML = point.x;
document.getElementById("show_y").innerHTML = point.y;
}
});
GEvent.addListener(map, 'zoomend',
function(oldZoomLevel, newZoomLevel) {
document.getElementById("zoom_old").innerHTML = oldZoomLevel;
document.getElementById("zoom_new").innerHTML = newZoomLevel;
});
}
}
function showAddress(address) {
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " not found");
} else {
map.setCenter(point, 14);
var marker = new GMarker(point);
map.addOverlay(marker);
document.getElementById("zoom_new").innerHTML = 14;
document.getElementById("long").value=point.x;
document.getElementById("lat").value=point.y;
}
}
);
}
}
//]]>
</script>
<div class="noshow" id="long">long</div>
<div class="noshow" id="lat">lat</div>
<div class="noshow" id="country">country</div>
I look forward to hearing from you all soon
Make Sense? I hope so (-: