Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Google maps Api grey map

Started by Jan Smitt 8 years ago · 10 replies · 3320 views
8 years ago

Your map options are all set to false. The colour settings are just above the below call, as well. You just need to adjust the settings to your liking.

The code is from the map.html.twig template file. You need to inherit the theme and customize the file. Better yet, extract those to the theme's config file and then submit a pull request so the theme can be better for future users, too.

JAVASCRIPT
var map_options = {
                center: new google.maps.LatLng($latitude, $longitude),
                zoom: $map_zoom,
                panControl: false,
                zoomControl: false,
                mapTypeControl: false,
                streetViewControl: false,
                mapTypeId: google.maps.MapTypeId.ROADMAP,
                scrollwheel: false,
                styles: style,
            }
8 years ago

Thankx Perlkonig... I already played with the true/false settings direct in the footer.js.. but that didn't seem to work..

8 years ago

The demo page you provided seems to work for me, does your browser block location services perhaps?

8 years ago

I opened your site, everything worked fine.

8 years ago

Dear Chris,

What works fine? When trying to visit/use the google maps under contact, all I see is a grey google map with the streets.... normally I can use such cards to calculate the distance etc, just like in google.maps... That is not fine... I used different computers/different browsers...

8 years ago

Dear Rob, I used different computers/different browsers and its the same everywhere... I rather think google changed the workings of the API

8 years ago

, so this is what I see, and what you don't need right?

last edited 04/05/18
8 years ago

This is what I saw as well. "grey google maps window" is from my experience something different. ;-)

8 years ago

Yep guys, this is what I see too... just a grey "print screen" version of my street... no interactivity at all... That's not right, right?

8 years ago

Well,
You can move the map, you can click on every marker (except yours), so I wouldn't say that there is no interactivity.
But I have to admit that you can do way better with the google maps api.
Having said that, I don't know about the theme, so I can't tell if it's because of a parameter you would have missed...

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 50 6 hours ago
Support · by Anna, 2 days ago
2 58 9 hours ago
Support · by Justin Young, 10 hours ago
1 28 10 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 53 5 days ago