added better support for geoms and made view a subclass of Layer
updated demo