Skip to content

choropleth: when geojson is set, the geojson file from cdn.plot.ly is still loaded first #6767

Open
@LucaVazz

Description

@LucaVazz

When using type: choropleth and setting a geojson url, the geojosn file from cdn.plot.ly still is loaded first.
I'd expect that only the specified geojson file is loaded and used.

(This would be useful to e.g. implement a strict CSP on a site using plotly)


Example: https://codepen.io/lucavazz/pen/jOdrWgV
(baed on https://codepen.io/lucavazz/pen/poGbybw / #4267)

var data = [{
   // ...
   geojson: 'https://unpkg.com/sane-topojson@4.0.0/dist/world_110m.json' 
   // this url is an example, in practice this would point to a relative assets path
}]

image


Is this intended behavior / is some configuration missing in the example to only use the provided geojson or is this a bug in the implementation?

Thanks in advance :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething brokensev-4cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions