On Jun 4, 9:05 pm, padu <[email protected]> wrote:
>   Actually After finding the getNorthEast() and getSouthWest()
>
>   TopRight[0] =  northEast.lat()
>    TopRight[1] =  northEast.lng();
>
>    BottomLeft[0]=  southWest.lat();
>   bottomleft[1] = southWest.lng();
>
> We are fetching lat and lon from data base
> then checking condition like
>   if((float.Parse(strLng) >= float.Parse(BottomLeft[1].ToString()) &&
> float.Parse(strLng) <= float.Parse(TopRight[1].ToString())))
>
> {
>
> }
>
> This was working fine but for some of the zoom levels or when we drag
> the map then this condition fails some times can you tell me the right
> approach .we need to fetch in data based on this bouded rectabgle
>
> Thanks
>
> On Jun 4, 5:58 pm, Larry <[email protected]> wrote:
>
> > On Jun 4, 5:36 am, padu <[email protected]> wrote:
>
> > > Hi All,
>
> > >  After fetching the getBounds(),
>
> > > Top-left lon = left bound of your rectangle.
> > > bottom-right lon = right bound of your rectangle
>
> > getBounds()http://code.google.com/apis/maps/documentation/reference.html#GLatLng...
>
> > Last I checked has a getNorthEast() and a getSouthWest() method.
>
> > > Database search something like
> > >    SELECT cities FROM mytable WHERE (lat > left bound) AND (lat <
> > > right bound) ...
>
> > > For this in some of the zoom levels not getting data,
> > > Can you help me on bounded rectangle to fetch the data based on the
> > > Top-Right corner and bottom-Left Corner ..
>
> > Perhaps you can post a link to your map so we can see what you are
> > actually 
> > doing...http://groups.google.com/group/Google-Maps-API/web/suggested-posting-...

Perhaps you can post a link to your map so we can see what you are
actually doing...

http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

>
> >http://groups.google.com/group/Google-Maps-API/web/why-including-a-li...
>
> > On this map:http://www.geocodezip.com/v2_volcanoBrowser.asp
> > the "load all in view" button sends the map bounds to the database and
> > returns results (if there are any...).
>
> >   -- Larry
>
> > > Thanks- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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