Good morning, sorry for my English.
I've 2 types of maps:
1 - autocenter with a select on a city (e.g. Rome, Venice....)... It
uses V3. From a city name, e.g. Rome, appended with ", IT",
automatically geocode() and center map
function codeAddress() {
var ind1 = document.getElementById("comune").value;
var ind2 = " ,IT";
var address = ind1 + ind2;
if (geocoder) {
geocoder.geocode( { 'address': address}, function(results, status)
{
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
2 - auto load marker point from a XML autogenerated by a PHP (see your
link, http://code.google.com/intl/it-IT/apis/maps/articles/phpsqlajax.html),
but I think is version 2!
Now i need to merge in only one map :)
The problem, I think, is in merge to go out:
function codeAddress() {
var ind1 = document.getElementById("comune").value;
var ind2 = " ,IT";
var address = ind1 + ind2;
if (geocoder) {
geocoder.geocode( { 'address': address}, function(results, status)
{
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
// FROM HERE OLD CODE... SIGH
GDownloadUrl("generazione_xml.php", function(data) { // <-----
var xml = GXml.parse(data);
My question is...
>From a MYSQL i need to go out "position" (like a city nome, no problem
thanks to geoCode() )... how I can to cicle in JS?
Thank YOU!
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.