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

Arc global options are not used #64

Closed
duccio opened this issue Mar 5, 2014 · 2 comments
Closed

Arc global options are not used #64

duccio opened this issue Mar 5, 2014 · 2 comments

Comments

@duccio
Copy link

duccio commented Mar 5, 2014

    <script src="http://datamaps.github.io/scripts/datamaps.world.js"></script>
    […]
    var map = new Datamap({
        element: document.getElementById('container'),
        projection: 'mercator',
        geographyConfig: {
            popupOnHover: false,
            highlightOnHover: false
        },
        arcConfig: {
            strokeColor: '#000000',
            strokeWidth: 10
        }
    });

    map.arc([{
        origin: { latitude: 10, longitude: 20 },
        destination: { latitude: 50, longitude: 90 },
    }])

Arcs are not black and 10px width!

@markmarkoh
Copy link
Owner

Since arc is a plugin, I've been trying to move all plugin options to the actual plugin call itself. So you would do this:

    map.arc([{
        origin: { latitude: 10, longitude: 20 },
        destination: { latitude: 50, longitude: 90 },
    }], {
            strokeColor: '#000000',
            strokeWidth: 10
   });

@duccio
Copy link
Author

duccio commented Mar 5, 2014

Hi Mark, thanks for you reply. Yes, I can move this 2 options to "datum", how about animationSpeed and arcSharpness? My above was only an example, I'm interested in animationSpeed :-)


UPDATE: Sorry, you says to move the plugin options to plugin, not datum. It works, thanks.

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

2 participants