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

Support multiple style parameters #1

Open
ArcadeRenegade opened this issue Oct 7, 2017 · 1 comment
Open

Support multiple style parameters #1

ArcadeRenegade opened this issue Oct 7, 2017 · 1 comment

Comments

@ArcadeRenegade
Copy link

Is there a way to support multiple style parameters for the static map API?

A JS object cannot have multiple keys with the same name.

https://developers.google.com/maps/documentation/static-maps/styling#style-syntax

    const query = {
        center: `${this.props.location}`,
        zoom: "15",
        scale: "2",
        size: "640x320",
        maptype: "terrain",
        format: "png",
        visual_refresh: "true",
        markers: "scale%3A2%7Cshadow%3Atrue%7C${this.props.location}",
        style: "feature%3Awater%7Ccolor%3A0x9bcae1%7Cvisibility%3Aon",
        style: "feature%3Aroad%7Cvisibility%3Aon%7Csaturation%3A-100%7Clightness%3A0",
        style: "feature%3Alandscape%7Cvisibility%3Aon%7Ccolor%3A0xe6e1d7",
        style: "feature%3Aroad.highway%7Cvisibility%3Asimplified",
        key: `${AppConfig.GOOGLE_API_KEY}`
    };
@chocobuckle
Copy link

chocobuckle commented Jun 15, 2018

@temsa any update on this? :)

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