Skip to content

Cesium Troubles #371

@Zekiye-VAP

Description

@Zekiye-VAP

Been trying to get the add_cesium function to work but have come across a few obstacles.

First, I was not able to get the example running and figured out an alternate method of calling the tile data using the tileset.json URL from this api call; https://api.cesium.com/v1/assets/{ion_asset}/endpoint (however this only seems to work for the Cesium OSM Buildings tileset).

I am trying to add the Cesium Open Street Map Buildings layer to my map and using the below chunk, I managed to get the buildings rendered HOWEVER it seems the projections do not match and many buildings are misaligned. Seems cesium only supports web mercator and WGS84, not EPSG:4326 which mapdeck renders in. (CesiumGS/cesium#3877) Wondering if you encountered this issue with the original example?

Not really sure what to do to get this layer working and would appreciate any solutions.

        tile_data <- "https://assets.ion.cesium.com/asset_depot/96188/OpenStreetMap/2023-01-02/tileset.json"
        
        mapdeck(
          location = c(144.95, -37.82)
          , zoom = 14
          , pitch = 60
        ) %>%
          add_cesium(
            data = tile_data
            , ion_token = ion_token
          )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions