Is there an example that shows how to add a custom control panel in OpenLayers 3?
Asked
Active
Viewed 9,895 times
1 Answers
4
check this example. Shows how to build a custom control. custom control
And here is a fiddle just to demonstrate a custom toolbar
pavlos
- 3,538
- 14
- 18
-
the sample is just a button and it cannot put a lot controls or panel. If using Openlayers 2, I can use control.panel. I can implement it by OL 3 – Hu Kenneth Oct 28 '15 at 04:55
-
do not expect to get everything up and running. The example just shows the way to do things. Here is a fiddle(http://jsfiddle.net/p_tsagkis/dpe4zggq/) I have made to add some extra button and a select list. But you may add as many html stuff you want – pavlos Oct 28 '15 at 18:10
-
Hi Pavios, thank you very much. I know I should not expect to get everything up and running. This is because client and supervisor want this and It can be implement in google map. This is why I think it should be done. Anyway, Thank you very much. – Hu Kenneth Oct 30 '15 at 01:14
-
Hi Pavios, do you know how to do a local map. My client's environment is offline. I need a direction to study. I have study about Geoserver but it seems only show line, points,road and so on. – Hu Kenneth Oct 30 '15 at 01:24
-
I havent had such requirement in the past, so I am not very familiar. Better add a new question. glad to help – pavlos Oct 30 '15 at 08:56
-
Hi Pavios, Sorry for the late reply and thank you for your help. I implement it by GeoServer. – Hu Kenneth Mar 03 '17 at 07:09
-
Great example. Apparently there is no default layer selection control in OpenLayers. – tony gil Jul 19 '17 at 16:59
