Thanks but I knew that already. I couldnt get it to work. here is
mycode where can you suggest I put the marker code for my own image.
I can do each of this samples seperatly I just can do one map that has
both features.
var map;
var geocoder;
function initialize() {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(28.536274512989912, -88.2861328125), 5);
geocoder = new GClientGeocoder();
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
}
// addAddressToMap() is called when the geocoder returns an
// answer. It adds a marker to the map with an open info window
// showing the nicely formatted version of the address and the country
code.
function addAddressToMap(response) {
map.clearOverlays();
if (!response || response.Status.code != 200) {
alert("Sorry, we were unable to geocode that address");
} else {
place = response.Placemark[0];
point = new GLatLng(place.Point.coordinates[1],
place.Point.coordinates[0]);
marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(place.address + '<br>' +
'<b>Country code:</b> ' +
place.AddressDetails.Country.CountryNameCode);
}
}
// showLocation() is called when you click on the Search button
// in the form. It geocodes the address entered into the form
// and adds a marker to the map at that location.
function showLocation() {
var address = document.forms[0].q.value;
geocoder.getLocations(address, addAddressToMap);
}
// findLocation() is used to enter the sample addresses into the
form.
function findLocation(address) {
document.forms[0].q.value = address;
showLocation();
On Sep 3, 4:39 pm, Barry Hunter <[email protected]> wrote:
> What is "Geocode Extracting Structured Addresses"?
>
> If you mean the sample
> here:http://code.google.com/apis/maps/documentation/services.html#Geocodin...
>
> Its just using a normal GMarker. Can use the information
> herehttp://code.google.com/apis/maps/documentation/overlays.html#Custom_I...
>
> On 03/09/2009, RFOC <[email protected]> wrote:
>
>
>
> > Can I use my own image as a marker with teh geocode Extracting
> > Structured Addresses?
>
> > If so, can someone post me some code own how to do this?
>
> --
> Barry
>
> -www.nearby.org.uk-www.geograph.org.uk-
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---