Hei, I have one code where i show multiples mark from a string[](c#) but sometime i get null in the point (this return lat,lgn) variable and while others i get all, all adreses is valide if i search in maps.google.no, but in the api i don't get all. any can explain to me what that happens and can i fix that. thanks
here u can see http://www.rubrikk.no/ItemMapsII.aspx string[] Locations = { "0574 Oslo, Norge", "5143 Fyllingsdalen, Norge", "5561 Bokn, Norge", "2006 Løvenstad, Norge", "2410 Hernes, Norge", "1388 Borgen, Norge", "0674 Oslo, Norge", "3880 Dalen, Norge", "3036 Drammen, Norge", "0986 Oslo, Norge", "1363 Høvik, Norge", "1178 Oslo, Norge", "0971 Oslo, Norge", "6789 Loen, Norge", "1152 Oslo, Norge", "4017 Stavanger, Norge", "4900 Tvedestrand, Norge", "6869 Hafslo, Norge", "2750 Gran, Norge" }; js.Text = @"<script type='text/javascript'> function initialize() { var lat; var map = new GMap2(document.getElementById ('mapsat')); map.setCenter(new GLatLng(59.913820, 10.738741), 5); map.addControl(new GMapTypeControl()); map.addControl(new GLargeMapControl()); map.addControl(new GScaleControl()); showAddress(map); } function showAddress(map) { var miIcono = new GIcon(G_DEFAULT_ICON); miIcono.image = '../../images/ for_sale.png'; geocoder = new GClientGeocoder(); if (geocoder) {"; for (int idx = 0; idx < Locations.Length ; idx++) { Label1.Text += idx.ToString() + "-" + Locations[idx] + "<br>"; js.Text += @" geocoder.getLatLng('" + Locations[idx] + @"', function(point) { alert(point+' - " + Locations[idx] + @"') var marker = new GMarker (point,miIcono); map.addOverlay(marker); GEvent.addListener(marker, 'mouseover', function (){ marker.openInfoWindowHtml('" + idx.ToString() + "-" + Locations[idx] + @"'); }) }); "; } js.Text += @"}}</script>"; -- 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.
