MAP on satellite view mode

GK User
Fri Feb 17, 2017 2:11 am
Hello,
How can I set the bottom map on satellite view mode?
Best regards,
A.T.
User avatar
Fresh Boarder

Joshua M
Fri Feb 17, 2017 10:02 am
User avatar
Moderator

GK User
Thu Feb 23, 2017 12:04 am
Hello,
Got my API key.... The map does display (as it used to) showing the right place (thanks to the right coordinates), but it is shown in a map view mode and I would like that as a satellite (or hybride) view mode.
What should I add in the code :
Code: Select all
<div class="gk-map" data-latitude="43.73879155" data-longitude="7.42850661" data-zoom="17" data-ui="yes" data-key="My-API-Key"></div>

I tried with:
Code: Select all
data-map-type="k"

but didn't work.
I'm trying to understand how the gk.script.js is working for the Google map part.
Can you help?
Best regards,
User avatar
Fresh Boarder

Joshua M
Thu Feb 23, 2017 11:53 am
Hi,

Please try to edit your gk_steakhouse/js/gk.scripts.js file and add this line:
Code: Select all
mapTypeId: 'satellite',


after:
Code: Select all
zoom: parseInt(map.data('zoom'), 10) || 12,

around line 27.
User avatar
Moderator

GK User
Thu Feb 23, 2017 5:39 pm
You are a chief!!
Thank you very much.
User avatar
Fresh Boarder


cron