Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rotation in hc_mapView() not working as expected #793

Open
zhangw2 opened this issue Apr 3, 2023 · 0 comments
Open

rotation in hc_mapView() not working as expected #793

zhangw2 opened this issue Apr 3, 2023 · 0 comments

Comments

@zhangw2
Copy link

zhangw2 commented Apr 3, 2023

I tried to use hc_mapView() function to make a world map pacific centric. The example of using Highcharts can be found here (https://jsfiddle.net/BlackLabel/p5or2gfe/). I then tried to replicate it in R but cannot get it working.

I used highcharter 0.9.4.9 installed from Github (the Dev version).

library(highcharter)

hcmap("custom/world", 
            showInLegend = FALSE) |>
            hc_mapView(  projection = list(  name = 'Miller', rotation = 210 ) )

## use different format for rotation
hcmap("custom/world", 
            showInLegend = FALSE) |>
            hc_mapView(  projection = list(  name = 'Miller', rotation = '[210]' ) )

## use different format for rotation
hcmap("custom/world", 
            showInLegend = FALSE) |>
            hc_mapView(  projection = list(  name = 'Miller', rotation = list('[210]') ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant