Zum Hauptinhalt gehen

Trigger Map Initialize on Layout Change?

Kommentare

2 Kommentare

  • Andrew Adamson

    Think I've figured this out creating 3 custom commands:
    1) map.remove-web-scene: Store OG scene in state and remove the web scene from the map extension
    2) map.swap-2D: Run a switchViewMode to map
    3) map.swap-3D: Add web scene back to the map extension and run a switchViewMode to scene

    With #1, storing and remove the scene from the map extensions kills the excessive requests I was getting under the hood. We take a hit on load when doing #3 but that's just the nature of the beast and can live with that.

    Command #1 gets run on the map init event. Buttons can now run cmds #2 and #3.

    I'd like to also remove the web map during cmd #3 but in doing so, it breaks the layer list component.

    0
  • Niluka Munasinghe

    I'm looking to implement something similar behavior. Please let me know more details about getting this sorted out.
    Thanks

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.