-
Notifications
You must be signed in to change notification settings - Fork 148
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
Google Maps Styles not working? #140
Comments
Doing some research, I've got the example URL from google maps with the style and inserted the PATH property on the URL the gmAPI generated for me: That's the resulting (and working) one: I've failed to find a solution so far, but it's going dark already so I'll probably get back to it tomorrow. If anyone has any answers for that, I would be grateful. Thanks a lot. |
There is a PR that fix that issue, you can copy/past style from https://mapstyle.withgoogle.com/ |
I've been trying to apply a style to the static maps api, I've got a template one from google.
Google gave me this JSON:
[
{
"elementType": "geometry",
"stylers": [
{
"color": "#1d2c4d"
}
]
},
{
"elementType": "labels",
"stylers": [
{
"visibility": "off"
}
]
},
{
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#8ec3b9"
}
]
},
{
"elementType": "labels.text.stroke",
"stylers": [
{
"color": "#1a3646"
}
]
},
{
"featureType": "administrative.country",
"elementType": "geometry.stroke",
"stylers": [
{
"color": "#4b6878"
}
]
},
{
"featureType": "administrative.land_parcel",
"stylers": [
{
"visibility": "off"
}
]
},
.
.
.
{
"featureType": "water",
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#4e6d70"
}
]
}
]
But it won't show on the static map using the params.style.
So I tried switching some attributes to fit the example that is on the home-page, switched elementType to element, featureType to feature and stylers to rules. That way, my URL significantly increased, but still, no style for me...
Can anyone shed some light on the issue for me? Thanks a lot!
The text was updated successfully, but these errors were encountered: