Using Address instead of GLatLng in Code
hi
i have a script which at the moment needs lat / long to get the
address.
Now i want to change that php-script to get directly the address.
-------------------------------------------------------------------------------------
following code:
new GLatLng
--------------------------------------------------------------------------------------
should be changed to:
geocoder = new GClientGeocoder();
function showAddress(address, zoomvalue) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " nicht gefunden");
} else {
map.setCenter(point, zoomvalue);
} } );}
---------------------------------------------------------------------------------------
the problem is that it does not work, here is the excerpt from
the php-script which should be "renamed":
var marker = new GMarker( new GLatLng( ".$params->get
("keyref")."));
marker.bindInfoWindow(\" ".$linkarticolo."<br />".$article-
>created_by_alias."\");
map.addOverlay(marker);
if ($googlesearch==1){map.enableGoogleBar();}
}
var fenwayPark = new GLatLng(".$params->get("keyref").");
panoramaOptions = { latlng:fenwayPark };
myPano = new GStreetviewPanorama(document.getElementById(\"pano
\"), panoramaOptions);
} ";
--------------------------------------------------------------------------------------
Thanks for any help/hint on this since i am completely lost since
hours and already 've broken a leg.
Best regards,
Yours,
PrinzAugust
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home