1

Is there an example that shows how to add a custom control panel in OpenLayers 3?

enter image description here

4

check this example. Shows how to build a custom control. custom control

And here is a fiddle just to demonstrate a custom toolbar

  • 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 4:55
  • do not expect to get everything up and running. The example just shows the way to do things. Here is a fiddle(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 1: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 1: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 8:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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