[OpenLayers-Users] Limitng the number of points that DrawFeature
can create
Greg Allensworth
gregor at greeninfo.org
Tue Oct 25 17:51:32 EDT 2011
On 10/25/2011 2:47 PM, Greg Allensworth wrote:
> if (layer.features.length > 0) {
Sorry, typo there.
It could read like either of these:
// get the layer from the feature
if (feature.layer.features.length > 0) {
// get the feature count from the layer, which is the callback's context
if (this.features.length > 0) {
--
Greg Allensworth, Web GIS Developer
BS A+ Network+ Security+ Linux+ Server+
GreenInfo Network - Information and Mapping in the Public Interest
564 Market Street, Suite 510 San Francisco CA 94104
PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor at greeninfo.org
Web: www.GreenInfo.org www.MapsPortal.org
Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org
More information about the Users
mailing list