add vector layer and fix retina issue