Openlayers simple custom control example

المشرف العام

Administrator
طاقم الإدارة
On the official openlayers site there is a custom class based control example.

Can anyone give an example of a simple custom control without class usage?

According to the ol.control.Control specification, it should be possible to create one using the following statement

var myControl = new ol.control.Control({element: myElement}); but I'm quite new to javascript and cannot figure out yet how to use it.
Thanks in advance.



أكثر...
 
أعلى