Hi,

Could someone help me out, I just want to load the results based on the
center of the map, as the user moves the map.


On 28/01/10 11:06, "Sebastian de comocomo" <[email protected]> wrote:

> Hi
> 
> Can somone help me?
> 
> When the user moves the map, I want to call the searchLocationsNear with the
> new Center of the map, and reload the results based on the new center.
> 
> In my example: 
> 
> http://allmybookings.com/distance_maps_01.php
> 
> If you search right a way you get 2 results, if you increase the radius to 5km
> you get 5 more results to the right of the previous 2 results.
> 
> I want to get these, by just moving the map to the right.
> 
> I just don't know where to start to recall the function. I would need the lat
> & lng of the new center point.
> 
> function searchLocationsNear(center) {
>   var radius = document.getElementById('radiusSelect').value;
>   var searchUrl = 'phpsqlsearch_genxml.php?lat=' + center.lat() + '&lng=' +
> center.lng() + '&radius=' + radius;
> 
> ...
> 
> map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds));
> 
> Any help would be appreciated
> 
> Thanks
> Sebastian
> 
> 
> 
> 
> On 20/01/10 12:55, "sebastian de comocomo" <[email protected]> wrote:
> 
>> Hi,
>> 
>> I'm using the google store finder, and I'd like to reload the results
>> when I move the map.
>> 
>> I suppose I would need to relauch the search with a new center point
>> but
>> 
>> I don't know where to start.
>> 
>> http://allmybookings.com/distance_maps_01.php
>> 
>> This website has it working but I broke it into pieces and was still
>> too complex for me.
>> 
>> http://www.zimmo.be/Sint-Gillis
>> 
>> if you move the map it reloads the new results in the map.
>> 
>> Does anyone have a very simple code that does the same? reading from
>> an xml
>> 
>> thanks
>> sebastian


-- 
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.

Reply via email to