(index):119 [esri.core.Accessor] Accessor#set 'метр' is not a valid value for this property, only the following values are valid: 'centimeters', 'deci

171
0
06-29-2021 09:21 AM
Droden
by
New Contributor

(index):119 [esri.core.Accessor] Accessor#set 'метр' is not a valid value for this property, only the following values are valid: 'centimeters', 'decimal-degrees', 'decimeters', 'feet', 'inches', 'kilometers', 'meters', 'miles', 'millimeters', 'nautical-miles', 'us-feet', 'yards'

if I use map: map creating SceneView - no error

But I need this webscene 

 

$(document).ready(function () {
    require([
        "esri/Map",
        "esri/views/SceneView",
        "esri/WebScene",
        "esri/widgets/BasemapGallery",
        "esri/config"
    ], function (
        Map,
        SceneView,
        WebScene,
        BasemapGallery,
        esriConfig
    ) {
        var map = new Map({
            basemap: "gray-vector"
        });

        esriConfig.portalUrl = "https://url-portal";
        var webScene = new WebScene({
            portalItem: {
                id: "xxxxxxxxxxxxxxxxxxxxxxx"
            }
        });

        var view = new SceneView({
            container: "operator_screen",
            map: webScene
            // center: [139.68, 35.68],
            // zoom: 10
        });

        var basemapGallery = new BasemapGallery({
            view: view
        });

        // Add the widget to the top-right corner of the view
        view.ui.add(basemapGallery, {
            position: "top-right"
        });
    });
});

 

 

Tags (1)
0 Kudos
0 Replies