Coder Social home page Coder Social logo

Comments (8)

aparveen avatar aparveen commented on August 16, 2024 1

@sumitzarkar JS API team is fixing this issue

from crowdsource-manager.

sumitzarkar avatar sumitzarkar commented on August 16, 2024 1

@aparveen - We checked in devExt and we don't see undefiend, and now the app is working as expected.

Please let us know if any action required from our end.

from crowdsource-manager.

sumitzarkar avatar sumitzarkar commented on August 16, 2024

@skrishn

  • This issue is related to Reporter issue #526
  • We have updated the code for CSM and CSR for this ticket. However, we see is some differences in the way how the visibility of the layers is maintained in the webmap when featureservice is added.
  • In issue #526 for reporter , we got to know that - visibility is an optional property with an implicit default of true
  • Whereas in this case, we are getting undefined value in the layers visibiity flag and undefined in JavaScript means false, the app is considering that the layer visibility for all the layers is false and hence we are not able to see any layers
    image
  • We can fix this by changing the code to check the visibility value is false or true, before that it would be helpful if we get AGOL team's input if this expected to add visibility as undefined in webmap

FYI - @aparveen

from crowdsource-manager.

aparveen avatar aparveen commented on August 16, 2024

@sumitzarkar thanks so much for looking into this, will reach out to AGOL map viewer team.

from crowdsource-manager.

aparveen avatar aparveen commented on August 16, 2024

@sumitzarkar Map viewer team is saying there is not difference in the json between grouped and ungrouped layer. Is there something else going on in our app?
image

from crowdsource-manager.

sumitzarkar avatar sumitzarkar commented on August 16, 2024

@aparveen @skrishn

We analyzed this in more detail and here are our findings:

  • We are using ArcGIS JS API to load the details of each webmap
  • For this we are using createmap method from JS API
  • In response we get the itemInfo and itemData.
  • So, the root cause is here, when we get the data using this method we see 'undefined' value in the visibility property of the operational layer
  • image

from crowdsource-manager.

aparveen avatar aparveen commented on August 16, 2024

@sumitzarkar JS API team fixed it, the fix is in devext. Could you please see if you still getting undefined.
Test web map: https://sg-em-devext.mapsdevext.arcgis.com/apps/mapviewer/index.html?webmap=f089c1f8545242ccb7bc5aa2742d597e

from crowdsource-manager.

aparveen avatar aparveen commented on August 16, 2024

Thanks @sumitzarkar for looking into it.

from crowdsource-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.