bug fix in views.py getLayerPoints