Select to view content in your preferred language

Cannot read property 'transparency' of undefined

631
0
09-20-2016 06:29 AM
LukeSteadman
Deactivated User

Using the following code and passing a public map GUID produces the following error when I've created a Layer with notes (the notes contain a symbol (point / marker)). 

Note: If I convert the below to use version 3.x of the API, the layer is rendered correctly.

<script>
require([
  "esri/WebMap",
  "esri/views/MapView",
  "dojo/domReady!"
], function(WebMap, MapView){
  var guid = "PUBLIC_WEB_MAP_GUID";
  var map = new WebMap({
    portalItem: {
      id: guid
    }
  });
  var view = new MapView({
    container: "map",  // Reference to the scene div created in step 5
    map: map,  // Reference to the map object created before the scene
  });
});
</script>

Is there a resolution to the above using JS API 4.x

Tags (4)
0 Kudos
0 Replies