Simple Flow for Add, custom Button and Save #936
-
Hello.
I am sure its a very common flow so any one that can help with 1 of the steps above it will be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
To create custom buttons you can take a look into Custom Control. Create a copy of the Circle control with a custom title:
To overwrite the tooltips of the Circle you can change the translation strings:
To create a custom button to execute code like "store on db" you can use this:
To get all layers on the map as GeoJSON, you can call Example: https://jsfiddle.net/falkedesign/yngq8daj/ Does this answer your questions? |
Beta Was this translation helpful? Give feedback.
-
This is exactly what is needed. And well implemented. FOr example someone draws a circle... once done a popup open to select a filed or enter a token value and on click save i am actually setting token attribute to this shape.... The idea is to have thos shapes saved to the DB rferrgin to other items. I wonder if u can guid me in the direction.... Again. i can not appreciate much your help. saved me tons of time!!! |
Beta Was this translation helpful? Give feedback.
-
You can listen on the
Look for example into: https://jsfiddle.net/falkedesign/qcaxzn4j/ |
Beta Was this translation helpful? Give feedback.
To create custom buttons you can take a look into Custom Control.
Create a copy of the Circle control with a custom title:
To overwrite the tooltips of the Circle you can change the translation strings:
To create a custom button to execute code like "store on db" you can use this: