Dear Grok,
Thank you I will take some think to analyse it. In you
opinion once I have got this value from my query for instance
POLYGON((100.30695140361786 5.379924108386956,100.30693262815475
5.379811951847182,100.30695140361786
5.379534230802661,100.30695140361786 5.379924108386956)) what is the best
mechanism to extract the lat long value and put it into the array for the
GPolygon? Thank you.
On Wed, Aug 18, 2010 at 3:39 AM, Grok Lobster <[email protected]>wrote:
> See Larry's page for an example.
> http://www.geocodezip.com/overlappingPolygons.asp
>
> On Aug 17, 11:44 am, ss ss <[email protected]> wrote:
> > Dear Grok,
> > For the single point I will have also radius value read
> from
> > the database in km. So how can I draw a circle based on a single lat long
> > and radius value in km? Thank you.
> >
> > On Wed, Aug 18, 2010 at 2:19 AM, Grok Lobster <[email protected]
> >wrote:
> >
> >
> >
> > > Yes, you are correct. And in your GPolygon array, the values are
> > > Lat,Lng pairs - e.g. [(5.37, 100.30), (5.27, 100.21)]
> >
> > > On Aug 17, 10:16 am, ss ss <[email protected]> wrote:
> > > > Dear All,
> > > > Sorry if my information is not enough here. Ok for
> instance I
> > > > make a query then I get a list of information for instance
> > > > POLYGON((100.30695140361786 5.379924108386956,100.30693262815475
> > > > 5.379811951847182,100.30695140361786
> > > > 5.379534230802661,100.30695140361786 5.379924108386956))
> > > > ,POINT(103.92508506774902 1.461838406932495) etc. Thus my next step
> will
> > > be
> > > > to split the information to extract out the lat long is it? Then I
> put
> > > each
> > > > of the lat long into this function var polygon = new GPolygon([ ])?
> Am I
> > > > correct please correct me if I am wrong here? Thank you.
> >
> > > > On Tue, Aug 17, 2010 at 10:34 PM, Grok Lobster <
> [email protected]
> > > >wrote:
> >
> > > > > And it looks like your values are in LngLat order, so they will
> need
> > > > > to be reversed for the API.
> >
> > > > > On Aug 17, 3:52 am, Rossko <[email protected]> wrote:
> > > > > > > I have no problem in getting the value from the
> > > database
> > > > > as I
> > > > > > > have shown my two sample values. The problem is how to show it
> in
> > > the
> > > > > google
> > > > > > > map?Into what function must I send this value in order for the
> geo
> > > > > fences to
> > > > > > > appear? Thank you.
> >
> > > > > > Larry did say
> > > > > > "The Google Maps API allows you to display polygons that are
> > > defined
> > > > > > by either arrays of GLatLng objects or encoded"
> > > > > > So you should look at how to parse your data out of whatever
> package
> > > > > > you are using to send it to the client, and build an array of
> > > > > > GLatLng's with it.
> >
> > >http://code.google.com/apis/maps/documentation/javascript/v2/overlays.
> > > > > ..
> > > > > > One technique
> > > > > > http://econym.org.uk/gmap/basic7.htm
> >
> > > > > > No-one can see what you already know or have already implemented,
> and
> > > > > > you're not giving us much info to go on.
> >
> > > > > --
> > > > > 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]<google-maps-api%[email protected]>
> <google-maps-api%2bunsubscr...@googlegroups.com>
> > > <google-maps-api%2bunsubscr...@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-maps-api?hl=en.-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]<google-maps-api%[email protected]>
> <google-maps-api%2bunsubscr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-maps-api?hl=en.- 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]<google-maps-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
>
>
--
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.