Skip to content

Can't set KeplerGL map height #2002

Closed
@giswqs

Description

@giswqs

The SedonaKepler create_map() method has a fixed height 400px because the height param is not passed into the KeplerGl() constuctor. A map hieght of 400px is just too tiny for exploring large datasets.

def create_map(cls, df=None, name="unnamed", config=None):
"""
Creates a map visualization using kepler, optionally taking a sedona dataFrame as data input
:param df: [Optional] SedonaDataFrame to plot on the map
:param name: [Optional] Name to be associated with the given
dataframe, if a df is passed with no name, a default name of 'unnamed' is set for it.
param config: [Optional] A map config to be applied to the rendered map :return: A map object
"""
try:
from keplergl import KeplerGl
except ImportError:
msg = "Install apache-sedona[kepler-map] to convert sedona dataframes to kepler maps."
raise ImportError(msg) from None
kepler_map = KeplerGl()

https://docs.kepler.gl/docs/keplergl-jupyter#keplergl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions