This question already has an answer here:

I am a beginner in web programming using OpenLayers 3.

In my project i want to add a button to zoom in the map by clicking or selecting a part in the map using OpenLayers 3.

marked as duplicate by PolyGeo Sep 7 '16 at 10:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


I think your question is a duplicate of this: Zoom in/out on click in OpenLayers 3? and it is already answered.

Not the answer you're looking for? Browse other questions tagged or ask your own question.