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

Map component pin configuration option #993

Open
bhainesva opened this issue Jul 27, 2020 · 0 comments
Open

Map component pin configuration option #993

bhainesva opened this issue Jul 27, 2020 · 0 comments

Comments

@bhainesva
Copy link
Contributor

bhainesva commented Jul 27, 2020

Hello, I'm trying to use the pin configuration option of the Map component and the Mapbox provider.

Specifically I'm trying to use a custom svg icon by returning:

                return {
                  icon: {
                    anchor: null,
                    svg: `<svg width="100" height="100"><circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" /></svg> `,
                    url: null,
                    scaledSize: null,
                  },
                  labelType: 'numeric'
                };

from my pin function.

This seems to have no effect. Here's a codepen with an example: https://codepen.io/bhaines-yext/pen/xxZeomj (although I removed the client's api keys/experience keys so it won't run without some tweaks).

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