On May 16, 11:39 am, [email protected] wrote: > I have a similar problem with being unable to add a point, after doing > a geocode, into a polygon. My initial page shows all the polygons for > the Memphis Police Department's different precincts, and I've got a > legend and a form with an address field that will call the showaddress > () function. My problem is, I can get it to do the geocode and put the > point on the map, but the polygons go away. Can someone offer a clue > on what I am doing wrong?
It doesn't do that for me. > Here's the page : > > https://kiosk.memphispolice.org/precinctmap.htm Did you check your javascript errors? FF 3.0.10: Error: showAddress is not defined Source File: https://kiosk.memphispolice.org/precinctmap.htm Line: 1 Where is the showAddress function? -- Larry > > Thanks, > > John Harvey > [email protected] > > On Apr 14, 1:36 am, Mike Williams <[email protected]> wrote: > > > Wasn't it bryan who wrote: > > > >I have a similar question. I have a website with a bunch of geocoded > > >locations (mapsforamerica.com). I want to be able to check and see > > >whether apointis located in apolygon. Thepolygoncomes from an API > > >I'm using that returns a shape like this (below). I looked at Larry's > > >linkhttp://econym.org.uk/gmap/epoly.htm. I think the answer is there. > > >But I couldn't figure out exactly how to make it work. Any suggestions > > >would be greatly appreciated. > > > You need to persuade your "API" to separate the creation of thepolygon > > from the addOverlay > > > var poly = new GPolygon(...); > > map.addOverlay(polygon); > > > Then you can use poly.Contains(latlng) > > > The way your code works at the moment, you don't have a reference to > > thepolygon, and there's no way to obtain such a reference from the Maps > > API. > > > --http://econym.org.uk/gmap > > The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
