Plotly.js: Custom geo scope

Created on 6 Jul 2016  路  5Comments  路  Source: plotly/plotly.js

In the API there are just a handful of available scopes which include

  • world, usa, europe, asia, africa, north america
    (https://plot.ly/javascript/reference/#layout-geo-scope)

My main issue is, that I need a map of Europe with Turkey included, which is missing in the Europe scope.

I also would like to have a map of all of America, not just North America.

Are there any ways to achieve this?
And if you develop the thought further, are there any ways to define own - custom - scopes for the maps?

I would appreciate your help!

Most helpful comment

@Mike3010

plotly.js uses the scoped topojson files made in sane-topojson and the per-scope defaults are set here. I hope this helps.

All 5 comments

Adding more geo scopes isn't in our short term plans.

My main issue is, that I need a map of Europe with Turkey included, which is missing in the Europe scope.

To do so, I'd recommend using the world (the default) combined with custom lonaxis and lataxis ranges. See example here: http://codepen.io/etpinard/pen/XKamdk

Subsequent discussion(s) on this topic should be done on http://community.plot.ly/

Ok, thank you for the information.

I just got one more question. Can you tell me where the scopes are originally defined? Do they come from d3?

@Mike3010

plotly.js uses the scoped topojson files made in sane-topojson and the per-scope defaults are set here. I hope this helps.

How can I include PRI inside USA map and place it in bottom right (similar to Alaska )?

Was this page helpful?
0 / 5 - 0 ratings