Unfortunately, that helps no little bit where can i get a solution?
On 4 Feb., 14:19, Ralph <[email protected]> wrote: > See this thread > > http://groups.google.com/group/Google-Maps-API/browse_thread/thread/9... > > Ralph > > On Feb 4, 3:14 pm, "Stefan Schiffner" <stefan.schiff...@liquida- > > > > inkasso.de> wrote: > > i have written the script where the site shows themapwith the > > adress from customers. but if there is a adressnotfound, the > > standard alert message is shown and a blankgooglemap. But i want, > > that if adressnotfound, there should be a echo or something where > > stands:Googlemap: Adressnotfound and then he shouldNOTshowa > > blankmap. Only a echo message, that the adress isnotfound ingoogle > > maps. this is my code, unfortunately i can`tshowit, yet because it`s > >noton a server. Can anybody help me andshowme what i have to > > change. It´snotmuch. Thanks a lot! > > > <script src="http://maps.google.com/maps? > > file=api&v=2&key=xxxxx" type="text/javascript"></script> > > <script type="text/javascript"> > > > //<![CDATA[ > > > varmap= null; > > var geocoder = null; > > > function load() { > > if (GBrowserIsCompatible()) { > > varmap= new GMap2(document.getElementById("map")); > > var control = new GLargeMapControl(); > > map.addControl(control); > > control = new GMapTypeControl(); > > map.addControl(control); > > map.setCenter(new GLatLng(49.403769,8.67538), 14); > > map.setMapType(G_NORMAL_MAP); > > > var marker = new GMarker(point); > > map.addOverlay(marker); > > GEvent.addListener(marker, "click", function() { > > marker.openInfoWindowHtml("Das hier ist ein Marker"); > > > }); > > } > > > } > > > function load() { > > > if (GBrowserIsCompatible()) { > > > map= new GMap2(document.getElementById("map")); > > > map.addControl(new GSmallMapControl()); > > >map.addControl(new GMapTypeControl()); > > > geocoder = new GClientGeocoder(); > > > } > > > } > > > function showAddress(address) { > > > if (geocoder) { > > > geocoder.getLatLng( > > > address, > > > function(point) > > > { > > if (!point) > > > { > > alert(address + "notfound"); > > > } > > > else { > > map.setCenter(point, 13); > > > var marker = new GMarker(point); > > > //Marker setzen > > map.addOverlay(marker); > > > } > > } > > ) > > } > > } > > //]]> > > </script> > > > </head> > > > <body background="../../pics/hg.jpg" onload="load(); showAddress('<? > > php echo $oSch->strasse ?>, <?php echo $oSch->plz ?>, <?php echo $oSch- > > > >ort ?>, <?php echo $oSch->land ?>');" onunload="GUnload()"> > > > <script language="javascript"> > > if (1) > > { > > document.write("<center><div id='map' style='width: 339px; height: > > 300px'></div></center>"); > > } > > else > > { document.write("Mapnotfound") } > > </script> > > > <?php unset($oSch); ?> > > > <script type="text/javascript"> > > x = screen.availWidth; > > y = screen.availHeight; > > window.scrollTo(1,1); > > window.resizeTo(x,y); > > </SCRIPT> > > > </body> > > </html> > > > mfg- Zitierten Text ausblenden - > > - Zitierten Text anzeigen - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
