我想让谷歌地图默认为卫星视图,但我迷路了。这是来自模板怪物?我已经到处寻找,但找不到任何可以实现这一点的东西。请帮忙。
(function ($) {
'use strict'
var def_settings = {
cntClass: 'map',
mapClass: 'map_model',
locationsClass: 'map_locations',
marker: {
basic: 'images/gmap_marker.png',
active: 'images/gmap_marker_active.png'
},
styles: []
},
defaults = {
map: {
x: -90.044545,
y: 37.967563,
zoom: 16
},
locations: []
};
var getLocations = function ($map, settings) {
var $locations = $map.parent().find('.' + settings.locationsClass).find('li');
var locations = [];
if ($locations.length > 0) {
$locations.each(function (i) {
var $loc = $(this);
if ($loc.data('x') && $loc.data('y')) {
locations[i] = {
x: $loc.data('x'), …Run Code Online (Sandbox Code Playgroud)