leforthomas / cesium-drawhelper Goto Github PK
View Code? Open in Web Editor NEWA shape editor for Cesium.
License: Other
A shape editor for Cesium.
License: Other
When I try to host the cesium-drawhelper-master directory in IIS I can load the page fine but when I click on any off the tool icon it says: scene.camera.pickEllipsoid is not a function
I just wanted to know if there was a way to rotate the toolbar horizontally?
When you create a polyline or polygon there's extra 2 points in the end. I think it's because of Cesium that catches the double click as a regular left click AND double click. but i still don't know how it explain the second extra point.
Please see this line : https://github.com/leforthomas/cesium-drawhelper/blob/master/index.html#L78 . I think billboard collection should be created only first time, rather than creating it again and again for every new marker. If i am correct, then please confirm. I will submit a pull request
When trying to draw a self-intersecting polygon (e.g. an hourglass shape) nothing happens. The shape is not drawn and there is no error.
As of Cesium 1.17 RectanglePrimitve has been deprecated so this will need to be updated as the Extent primitive can no longer be drawn.
If you double click the toolbar there is an error "ERROR TypeError: Cannot read property 'remove' of null"
I want to zoom in on objects created by the ' DrawHelper ' .
I managed to do with the rectangle by :
oViewer.camera.flyTo({
destination : new Cesium.Rectangle(oTargetEntity.getExtent().west, oTargetEntity.getExtent().south, oTargetEntity.getExtent().east, oTargetEntity.getExtent().north)
});
with 'oTargetEntity' is the object returned after drawing he object.
But for other things, I was not able to recover their limits below to zoom (polygon, circle, line).
I am experiencing a halting of rendering for Cesium at seemingly random times due to the following line in DrawHelper.js:
DrawHelper.js:249: lineWidth : Math.min(this.strokeWidth || 4.0, context._aliasedLineWidthRange[1])
I commented out the line and the error appears to have gone away and I don't see any changes reflected in the appearance of Cesium.
What is this line being used for? I am confused as to why it would be throwing an error that would prompt Cesium to crash.
Is it possible to add some simple localization for tooltip? Now tooltip text is hardcoded, but maybe it's no so difficult to add options in settings for defining tooltip text for every state of every tool. For example how it done in LeafletDraw: http://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html#l-drawlocal
Hi, I tried launching a very simple Node+Express web server, and I can't get anything more than the GUI + a black box to show up.
http://i.imgur.com/bYmeqRg.png
Not sure if this is source issue or me being stupid. I can't quite get normal cesium to work either
I included the Drawhelper.js the img folder and the index file (renamed index2.html so as not to inerfere with Cesiums index file) but the Toolbar isn't showing up on the index file. Is this version compatible with b29 if not are you planning to update to make it compatible?
How to set "CLAMP_TO_GROUND" option for circle and polygons like:
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND
OR
height: Cesium.HeightReference.CLAMP_TO_GROUND
I want to know where in the code the points for the Logging toolbar are generated. I want it to display the Lat/Long in Degrees of the point for the Billboards and for the Polygon/Lines. I changed what shows up in the tooltip to do so. But I can figure out where those Positions are being generated for the logging message
When i try to draw something at high zoom levels, the drawing disappears after double click.
Please help.
After drawing line or dot or polygon or circle, how do we get longitude and latitude or location?
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.