Skip to content

Example from README gives Google warning and shows nothing #77

@astrojuanlu

Description

@astrojuanlu

I tried to run this on a recent version of Jupyter notebook:

import cesiumpy

v = cesiumpy.Viewer()

v.entities.add(cesiumpy.Box(dimensions=(40e4, 30e4, 50e4),
                            material=cesiumpy.color.RED, position=(-120, 40, 0)))
v

But I get this warning:

/home/juanlu/.pyenv/versions/3.7.4/envs/mbp37/lib/python3.7/site-packages/cesiumpy/extension/geocode.py:12: UserWarning: Since July 2018 Google requires each request to have an API key. Pass a valid `api_key` to GoogleV3 geocoder to hide this warning. See https://developers.google.com/maps/documentation/geocoding/usage-and-billing
  _GEOCODER = GoogleV3()

a JavaScript error message:

ReferenceError: Cesium is not defined

and a blank recangle:

Screenshot from 2019-10-11 11-49-25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions