ishiland / cmv-widgets Goto Github PK
View Code? Open in Web Editor NEWdojo widgets for the Esri JS API https://ishiland.github.io/cmv-widgets/
dojo widgets for the Esri JS API https://ishiland.github.io/cmv-widgets/
Hi,
It appears there is a bug where the text symbology can not be edited. I'm unsure if this is intentional, but clicking Edit Symbol after right clicking on text will cause the edit popup window to appear which then can not be closed. As an immediate solution I have removed the edit symbol function from the right click menu to avoid my end users having to restart their maps.
Allow for drawings to persist between browser sessions by saving to local storage. Possibly by using Dojo.toJson
(link).
Optionally save/load drawings from outside browser to share between users in either json
or geoJson
format.
Currently, the only way to clear the map of all drawn features is to use the "undo" button repeatedly until all drawings have been cleared.
Need to implement functionality to clear all drawn features with a single button.
First thanks Ishiland to share your code with us... Its a great tools your Advance Draw
I go in advancedDrawConfig.js and I add the angle for the text, its work perfectly...
Do you know how to add that in your tool to be able to change the angle with a number, then I will be able to put the text parallel with my line or polygon, its will be super addin, also how to make a save file of or work int the Advance Draw???
},
defaultTextSymbol: {
color: [255, 0, 255, 255],
type: 'esriTS',
angle:'40',
verticalAlignment: 'middle',
horizontalAlignment: 'center',
text: 'New Text',
rotated: false,
kerning: true,
//haloSize: 12, // no esrijs support - try to make it work
//haloColor: [255, 255, 255, 255], // no esrijs support - try to make it work
//borderLineSize: 12, // no esrijs support - try to make it work
//borderLineColor: [255, 0, 0, 255], // no esrijs support - try to make it work
font: {
size: 12,
style: 'normal',
variant: 'normal',
weight: 'bold',
family: 'sans-serif'
}
},
Thanks again for you great work
Hi, i'm using Advanced Draw widget in my system application, the issues is when i export the draw, the coord not included in the attribute, the attribute just:
OBJECTID: object_id++,
draw_type: type, // eslint-disable-line
draw_text_string: null, // eslint-disable-line
can you help me about this, add coord in the attribute.
On editing previously drawn text, the editor reverts the selected style and changes the opacity to 0, hiding the text.
I suspect this has something to do with not being able to set the graphic text symbol here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.