Select to view content in your preferred language

OpenStreetMapLayer

424
2
05-03-2022 05:39 AM
Wade
by
Occasional Contributor

Using the OSM layer, is it possible to customize SpatialReference ?

0 Kudos
2 Replies
jcarlson
MVP Esteemed Contributor

Can you clarify what you're referring to when you say "OSM layer"? Do you mean the feature services? Or the vector tile basemap service?

- Josh Carlson
Kendall County GIS
0 Kudos
Wade
by
Occasional Contributor

the vector tile basemap service 

 

      require(["esri/layers/OpenStreetMapLayer", "esri/Map", "esri/views/SceneView"], (
        OpenStreetMapLayer,
        Map,
        SceneView
      ) => {
        const map = new Map({
          ground: "world-elevation"
        });

        const view = new SceneView({
          map: map,
          container: "viewDiv"
        });

        const osmLayer = new OpenStreetMapLayer();
        map.add(osmLayer);
      });