On Aug 3, 3:51 pm, Ivan <[email protected]> wrote:
> It's strange, all the properties are properly defined at the end of my
> create polygon function. However, whichever one I pass as the second
> parameter becomes undefined (but without throwing off a javascript
> error) and I can't figure out where or why.
it looks like all calls to show() only have a single parameter, and
this will be the first parameter.
TYPES
show('Park');
show('Access');
show('Restoration');
show('Other');
show('Monitoring');
shouldn't that be show(null, 'Park') etc??
PROPONENTS
show('MRCA');
show('SCC');
also in this for loop, i should start at zero, not 1??
function show(proponents, type) {
for (var i=1; i<polys.length; i++) {
if ((polys[i].myproponents == proponents) || (polys[i].mytype ==
type)){
polys[i].show();
makeSidebar();
}
}
}
...
--
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.