Hi Tine. Look at the request that your map makes to your database:
http://www.tinemuller.dk/new_new_test_drupal/sites/all/storelocator2/phpsqlsearch_genxml.php?lat=37.6922361&lng=-97.3375448&radius=25 The map has used the API to geocode 'Wichita', the geocoder has told the map that Wichita is located at lat,lng (37.6922361,-97.3375448). The map then requests stores within a 25 mile radius of that lat,lng. It's a bit of a FAQ 'why does the API geocoder return a different result than the main Google Maps geocoder?'. Search for 'Wichita' on the main Google Maps site and it returns the correct result. The API geocoder and main Google Maps geocoder use different databases perhaps and the API database is not as good as the main geocoder database? Martin. On Sep 24, 6:40 am, tinem <[email protected]> wrote: > Thanks for trying to help. > > The problem with "Wichita" is ALSO in the site I made directly after > following > tutorialhttp://code.google.com/intl/da/apis/maps/articles/phpsqlsearch_v3.html > as you can see > herehttp://api.tinemuller.dk/storelocator_v3_tutorial/phpsqlsearch_map.html. > After this I made > thishttp://api.tinemuller.dk/NEW_storelocator_v3_tutorial/phpsqlsearch_ma... > with left menu and in the > endhttp://www.tinemuller.dk/new_new_test_drupal/node/1394 > - ALL have problems searching for Wichita. :-( > Can you see why, please? > > And if I put nid in front of name from this code it doesn's function > so I have removed it again. > > function createSidebarElement(name, distance, num){ > var div=document.createElement('div'); > div.className='sidebarElement'; > div.innerHTML=name+'<br />Distance: '+distance; > div.onclick=function(){ > google.maps.event.trigger(markers[num], 'click'); > }; > document.getElementById('sidebar').appendChild(div); > } > > So have ANY of you got this tutorial to work when you search for > "Wichita"? -- 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.
