Change config for map in Contact section

khm's picture
khm
Tue, 10/27/2015 - 15:25
#1
Change config for map in Contact section

Hi

Is it possible to change configuration for the map in contact section and if so where? I would like to

- enable zoom function with either buttons (?/-) and if possible, mouse-wheel/swipe.
- change rendering to show colors

Thanks

phuonght's picture
phuonght
Wed, 10/28/2015 - 22:43

Hi,

1 - If you would like to configure Google map, please open md-max/templates/views/contact/views-view-field--field-webform-location.tpl.php .

  • Edit line 34 ( disableDefaultUI: true => disableDefaultUI: false ): to enable "zoom" button and default UI of Google map

  • Edit line 35 to enable "zoom by scrolling"

2 - Change rendering to show colors:
          Back to default color: delete var styles = [ ..... ] ( from line 33 to line 53 )
          Or you can customize following instruction at Google Javascript API:

https://developers.google.com/maps/documentation/javascript/

khm's picture
khm
Mon, 11/02/2015 - 07:18

Thanks very much!

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.