view() func now accepts ID or coords in OpenLayers

minor code style adjustments