Any easy was to migrate gMap settings (footer code) from v5 to v6 without changing to "inline"? For reference, what I mean by "inline" is shown per documentation and not preferred:
<div class="gmap" style="height: 250px;" data-address="Melbourne, Australia" data-zoom="12" data-markers='[{address: "Melbourne, Australia",html: "Melbourne, Australia"}]' data-icon='{image: "one-page/images/icons/map-icon-red.png",iconsize: [32, 32],iconanchor: [14,44]}'></div>The following is what I previously had and although I think it is able to migrate inline to one line of code, it will be rather complex to tweak in future:
<div id="google-map" style="height: 300px; margin-bottom: 20px;" class="gmap"></div>JS in HTML Footer:
<script>
$('#google-map').gMap({
address: '37.296, -76.644',
maptype: 'ROADMAP',
zoom: 11,
markers: [
{
address: "37.296, -76.644",
icon: {
image: "images/icons/map-icon-red-dubs.png",
iconsize: [26, 40],
iconanchor: [13, 40]
},
html: "<strong>New Quarter Park</strong>
1000 Lakeshead Dr, Williamsburg, VA 23185"
},
{
address: "37.315, -76.703",
icon: {
image: "images/icons/map-icon-red-dubs.png",
iconsize: [26, 40],
iconanchor: [13, 40]
}, html: "<strong>Waller Mill Park</strong>
901 Airport Rd, Williamsburg, VA 23185"
}
],
doubleclickzoom: true,
controls: {
panControl: true,
zoomControl: true,
mapTypeControl: false,
scaleControl: false,
streetViewControl: false,
overviewMapControl: false
},
styles:
[
{
"featureType": "administrative",
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#444444"
}
]
},
{
"featureType": "landscape",
"elementType": "all",
"stylers": [
{
"color": "#f2f2f2"
}
]
},
{
"featureType": "poi",
"elementType": "all",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "road",
"elementType": "all",
"stylers": [
{
"saturation": -20
},
{
"lightness": 35
}
]
},
{
"featureType": "road.highway",
"elementType": "all",
"stylers": [
{
}
]
},
{
"featureType": "road.arterial",
"elementType": "labels.icon",
"stylers": [
{
"visibility": "on"
}
]
},
{
"featureType": "water",
"elementType": "all",
"stylers": [
{
"color": "#6699cc"
},
{
"visibility": "on"
}
]
},
{
"featureType": "water",
"elementType": "labels.text",
"stylers": [
{
"visibility": "on"
},
{
"color": "#333333"
}
]
},
{
"featureType": "poi.park",
"elementType": "all",
"stylers": [
{
"visibility": "on"
}
]
}
]
});
</script>