Open PedroFabrino opened 7 years ago
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:
https://maps.googleapis.com/maps/api/staticmap?key=
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!