Extracted error argument from DOM state in update_items().

It makes no sense to re-create 'limit' everytime but not 'error'. I will move
this in a 'param' object or something later, for now this will do.
Removed now-redundant function state iteration.

What a day but I see the light at the end of the tunnel.
Fixed broken geometry limit input.

Now it ACTUALLY CHANGES the amount of geometries on the map, and the use of a
custom function to be enqueued in the call object provides the illusion of
making real good sense!!! Dropping all the viewports seems a bit harsh, though.