<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm having trouble using and then removing a vector layer.</DIV><DIV>removeFeatures() - produces errors saying that the feature is not defined when feature.geometry is referenced.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>calling destroy on the layer causes continuous mouse event errors </DIV><DIV>- it seems that the getFeatureFromEvent method keeps getting called even though I've destroyed the layer.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I've tried calling removeLayer before destroying it, to no avail. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Any suggestions?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thank you.</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Roger Kunkel</DIV><DIV>CERES Program</DIV><DIV>Dept. of Land Air &amp; Water Resources</DIV><DIV>UC Davis</DIV><DIV><A href="mailto:rakunkel@ucdavis.edu">rakunkel@ucdavis.edu</A></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN> </DIV><BR></BODY></HTML>