Closed (outdated)
Project:
Geolocation Field
Version:
8.x-1.x-dev
Component:
Google Maps geolocation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2016 at 20:54 UTC
Updated:
26 Aug 2016 at 17:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dinarcon commentedI have created a patch the modifies that GeolocationGoogleMapFormatter to allow the Google Map to be displayed in grayscale. This makes use of Styled Maps as described in https://developers.google.com/maps/documentation/javascript/styling
Note that the new type definition only specifies the saturation value which produce the grayscale effect. The code can be further extended to implement more features of the Google Maps API and make them configurable.
Comment #3
mlncn commentedWorks great! Allows Google Maps to fit in with any theme.
Comment #4
christianadamski commentedHelp me out here for a second. I'm not very familiar with custom styles in Google Maps.
When I look at this issue: https://www.drupal.org/node/2734643
Is this kinda the same thing? Could these issues be joined? What would be the ideal result here?
Comment #5
christianadamski commentedComment #6
christianadamski commentedPlease see the referenced issue for a patch version against current git that integrates Google Map styles. It does so, by settings the "styles" option, not by adding a new MapStyle. One could add that as an additional optional feature.
Comment #7
christianadamski commentedI just comitted the referenced issue. You can now add a style array for each map. However, they do not show up as separate styles, there are used as default on the specific map.
Do you actually want separate styles? Is that possible right now? If that is a common usecase not achievable right now, I would imagine a site wide management of styles.
Comment #8
christianadamski commentedClosing for lack of activity