Git Product home page Git Product logo

Comments (7)

ChristineMarie avatar ChristineMarie commented on September 27, 2024 1

Hi,
I am also having the following error:
TypeError: scene.getCamera is not a function
var cartesian = scene.getCamera().pickEllipsoid(position, ellipsoid);
I am using the version of Cesium that comes with the plug in. Was this ever resolved?

from cesium-drawhelper.

leforthomas avatar leforthomas commented on September 27, 2024

Hi, which version of Cesium do you use? I haven't updated the DrawHelper since 1.0, so it's possible there has been some API changes since then.

from cesium-drawhelper.

carsonpowers avatar carsonpowers commented on September 27, 2024

I'm using the Cesium js file provided in the downloadable zip for this project. I've tried adding different versions but I still get the same error.

I have my project hosted publically: http://bit.ly/1bwo5bx if that helps you at all.

I REALLY appreciate any help.

from cesium-drawhelper.

leforthomas avatar leforthomas commented on September 27, 2024

Can you compare with the online demo version http://pad.geocento.com/DrawHelper/? At first sight, it looks like you are using an older Cesium for your application.

from cesium-drawhelper.

carsonpowers avatar carsonpowers commented on September 27, 2024

It is not a different version. I'm using the Cesium.js provided in the downloadable zip on this github. Just to make sure I just went into the resources for the page: http://pad.geocento.com/DrawHelper/? and took the cesium.js file it was using and it still is doing the same thing.

That website I gave you is just the unchanged directory the zip created when it was unpacked

from cesium-drawhelper.

alberto-acevedo avatar alberto-acevedo commented on September 27, 2024

I'm using the drawHelper in Cesium 1.8. I made some minor corrections to make it to work. The issue I was having was unhandlled undefined markers and mouseHandlers. The fixes are below:

In the startDrawingMarker's startDrawing function:

_.prototype.startDrawingMarker = function(options) {

    var options = copyOptions(options, defaultBillboard);

    this.startDrawing(
        function() {
            //markers.remove(); //---> unhandled undefined condition
           // mouseHandler.destroy(); //---> unhandled undefined condition
            if (markers) markers.remove();
            if (mouseHandler)  mouseHandler.destroy();
            tooltip.setVisible(false);
        }
    );
     .........
     .............

In the startDrawingPolyshape's startDrawing function:

_.prototype.startDrawingPolyshape = function(isPolygon, options) {

    this.startDrawing(
        function() {
            debugger;
            primitives.remove(poly);
            //markers.remove(); //---> unhandled undefined condition
            //mouseHandler.destroy(); //---> unhandled undefined condition
            if (markers) markers.remove();
            if (mouseHandler)  mouseHandler.destroy();
            tooltip.setVisible(false);
            return  positions;
        }
    );
    ..................
    ...................

Alberto

from cesium-drawhelper.

basilmohammed avatar basilmohammed commented on September 27, 2024

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

Same here for me too. I think the version difference is creating issue.

from cesium-drawhelper.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.