Skip to content

GeoJSON output incorrectly has two representations #215

@markmiro

Description

@markmiro

Create a code cell with this to reproduce:

from IPython.display import GeoJSON
GeoJSON({})

This results in two outputs with mimeTypes:

  • application/geo+json
  • application/json

The application/json is also always empty, even if GeoJSON() is given content:

from IPython.display import GeoJSON
GeoJSON({
  "type": "Point",
  "coordinates": [-118.4563712, 34.0163116]
})
Image

Wrapping in display() fixes the issue.

Image

Related:
runtimed/intheloop#543

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