user37620
user37620

Reputation: 13

how to add image ol.control.ZoomToExtent in openlayers 3

In ol.control.ZoomToExtent,Openlayers3 use 'E' character for view (http://openlayers.org/en/v3.5.0/examples/navigation-controls.html). But i want to add image.How to do this ?

Upvotes: 0

Views: 626

Answers (1)

user4773894
user4773894

Reputation:

When you set up the control you can pass it several options, one of those is label (ZoomToExtent Documentation).

Set that label to '' and set a className to a particular style, style the element in CSS, adding an image as required.

Upvotes: 2

Related Questions