Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESRI ArcGIS JavaScript API demo fails #152

Closed
DLS-2019 opened this issue Feb 3, 2021 · 3 comments
Closed

ESRI ArcGIS JavaScript API demo fails #152

DLS-2019 opened this issue Feb 3, 2021 · 3 comments

Comments

@DLS-2019
Copy link

DLS-2019 commented Feb 3, 2021

The ESRI ArcGIS JavaScript API demo (https://arthur-e.github.io/Wicket/sandbox-arcgis.html) is failing

image

@DLS-2019
Copy link
Author

DLS-2019 commented Feb 4, 2021

I tried to use wicket in an Angular app:

const wkt = new Wkt.Wkt();
wkt.read("POLYGON ((30 10, 10 20, 20 40, 40 40, 30 10))");
console.log(wkt.components); //it works up to here

// but then fails on
wkt.toObject();

image

I noticed that the arcgis.html demo code uses wkt.toObject(config);

        config = {
            spatialReference: {
                wkid: 4326 // WGS84 unprojected
            },
            editable: editable
        };
        obj = wkt.toObject(config); // Make an object

But wkt.toObject() is expecting 0 arguments....... it also results in the error above.

@arthur-e
Copy link
Owner

arthur-e commented Feb 4, 2021

Thanks, @DLS-2019. I don't think the ArcGIS module in Wicket has been updated in a few years now, and the ArcGIS Javascript extension has likely made some breaking changes since then. See related issue #90.

@DLS-2019
Copy link
Author

DLS-2019 commented Feb 5, 2021

Thank you for the feedback @arthur-e - I switched to using the TerraFormer plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants