Skip to content

Cannot switch to default from 3D to 2D when follow a link to 3d #2888

@offtherailz

Description

@offtherailz

Description

When open the map in 3D directly (getting the URL #/viewer/cesium/new for instance) you switch to leaflet map. If a custom map type is selected (like current mapstore that changed to openlayers as default for desktop) you will switch to leaflet. If you didn't included leaflet libs, the app will crash

In case of Bug (otherwise remove this paragraph)

Browser Affected
any

Steps to reproduce

  • Open a map from desktop
  • see that the URL has a path like this: #/viewer/openlayers/<number>
  • toggle 3d mode
  • see that the URL has a path like this: #/viewer/cesium/<number>
  • refresh the page (press F5)
  • toggle 3d mode (to back to 2d visualization)

Expected Result

  • see that the URL has a path like this: #/viewer/openlayers/<number>

Current Result

  • see that the URL has a path like this: #/viewer/leaflet/<number>

Other useful information (optional):

This is due to recent changes to default map.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions