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

Issues on Running the Plugin With ArcGIS JavaScript API 3.21 #41

Open
BeClevest opened this issue Aug 4, 2017 · 0 comments
Open

Issues on Running the Plugin With ArcGIS JavaScript API 3.21 #41

BeClevest opened this issue Aug 4, 2017 · 0 comments

Comments

@BeClevest
Copy link

Using the plugin with ArcGIS JavaScript API 3.21 and following documentation from Usage , I am getting following warning and errors:

error

<script src="https://js.arcgis.com/3.21/"></script>
<script src="geojsonlayer.js"></script>
<script src="terraformer.min.js"></script>
<script src="terraformer-arcgis-parser.js"></script>
<script>
    var map;
    require(["esri/map",
               "geojsonlayer.js",
               "dojo/on",
               "dojo/domReady!"
    ], function(Map, GeoJsonLayer, on) {
        map = new Map("map", {
            center: [-118, 34.5],
            zoom: 2,
            basemap: "topo"
        });

        var geoJsonLayer = new GeoJsonLayer({
            url: "./data/canada.json"
        });

        map.addLayer(geoJsonLayer);
    });
</script>`

Can you please let me know what I am missing?

[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

and

Error: multipleDefine

src: dojoLoader

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

1 participant