Giter Site home page Giter Site logo

initialState property not added to webmap.definition or get_data() when the ArcGIS API for Python is used to create a WebMap about arcgis-python-api HOT 2 OPEN

Clubdebambos avatar Clubdebambos commented on June 12, 2024
initialState property not added to webmap.definition or get_data() when the ArcGIS API for Python is used to create a WebMap

from arcgis-python-api.

Comments (2)

nanaeaubry avatar nanaeaubry commented on June 12, 2024 1

@Clubdebambos
Some of these changes are being applied in the new mapping module implementation.

The reason this is occurring is because some properties (such as initial state) depend on a rendered map in the current implementation. The initial state is created on the Javascript side and not through the python side. We are working on changing this and relying more on python to initialize as much as we can.

Thanks for pointing out the time slider issue. I will test this on the new implementation and make sure the expected behavior is present

from arcgis-python-api.

nanaeaubry avatar nanaeaubry commented on June 12, 2024 1

@Clubdebambos I've looked into this more and the time slider widget can only be created if the map is rendered either inside a jupyter notebook (in future a lab) or the GUI (i.e. map viewer).
This is because it is created with Javascript code and JS needs a browser to run. Any sort of widget will have this limitation since it is Javascript backend that we are calling.

We are working on a python implementation of the webmap but not of the individual widgets at this point so we don't plan on having this work without the map being rendered.

Initial state is part of the webmap definition so this will be handled in the new python implementation of the module.

from arcgis-python-api.

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.