On Jul 26, 6:55 pm, "[email protected]" <[email protected]>
wrote:
> On Jul 26, 4:16 pm, Ivan <[email protected]> wrote:
>
> > Thanks again Larry,
>
> > I rectified my polygon distortion..but am having issues figuring out
> > how/ where the center of the polygon bounds would be implemented...a
> > short example snippet would be a big help.
>
> > Alternatively, since I have already manually found the polygon centers
> > (point)...would it be possible to utilize those to have the windows
> > display from that location.
>
> Yes. You need to make it available to the map.openInfoWindow function
> so it can be used as the first argument (where "point" is currently).
>
> It might be a while before I can put together a sample that works with
> your existing code (actually I don't know that I can, how do I get
> access to that value?).
>
> If you pass it into the createPolygon function, but still can't get it
> working, I can take a look.

I see you have point already in you JSON processing routine.  This
seems to work:

function CreatePolygon(lines, levels, title, label1, tab1, label2,
tab2, label3, tab3, html, type, point){
<snip> ... </snip>

poly.mypoint = point;

GEvent.addListener(poly, "click", function(point) {
if (!point) {
   point = poly.mypoint;
}

No guarantees it will work for you...


   -- Larry

>
>
> > Thanks

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