bootstrap map
by secretgspot
HTML
<h1>map</h1>
<div id="map-510-4f1f2a8fc7a77" class="wk-map wk-map-default" style="height: 500px; width: 100%; position: relative; background-color: rgb(229, 227, 223); overflow-x: hidden; overflow-y: hidden; " data-widgetkit="googlemaps" data-options="{"title":"Museum of Modern Art","location":"Museum of Modern Art, New York, NY 10019, USA","lat":"40.7613983","lng":"-73.9776179","icon":"red-dot","popup":2,"text":"<div class=\"wk-content\"><h3>Museum of Modern Art<\/h3>\r\n11 W 53rd St\r\n<br \/>New York, NY 10019\r\n<br \/>(212) 708-9400\r\n<br \/><a href=\"http:\/\/www.moma.org\">moma.org<\/a><\/div>","mainIcon":"red-dot","style":"default","width":"auto","height":500,"mapTypeId":"roadmap","zoom":13,"mapCtrl":1,"typeCtrl":1,"directions":1,"styler_invert_lightness":0,"styler_hue":"","styler_saturation":0,"styler_lightness":0,"styler_gamma":0,"adresses":[{"title":"Madison Square Garden","location":"Penn Station, New York, NY 10001, USA","lat":"40.75058","lng":"-73.99358","icon":"red-dot","popup":"<div class=\"wk-content\"><h3>Madison Square Garden<\/h3>\r\n2 Penn Plz # 15\r\n<br \/>New York, NY 10121\r\n<br \/>Get Directions\r\n<br \/>(212) 465-6000\r\n<br \/><a href=\"http:\/\/www.msg.com\">msg.com<\/a><\/div>"},{"title":"Rockefeller Center","location":"Rockefeller Plaza, Rockefeller Center, New York, NY 10112,...
JavaScript
//MAP
(function(d) {
var e = function() {},
g = !1,
i = !1,
f = [];
window.google && google.maps && (i = g = !0);
d.extend(e.prototype, {
name: "googlemaps",
options: {
lat: 53.553407,
lng: 9.992196,
marker: !0,
popup: !1,
text: "",
zoom: 13,
mapCtrl: 1,
zoomWhl: !0,
mapTypeId: "roadmap",
typeCtrl: !0,
directions: !0,
directionsDestUpdate: !0,
mainIcon: "red-dot",
otherIcon: "blue-dot",
iconUrl: "http://maps.google.com/mapfiles/ms/micons/"
},
initialize: function(a, c) {
this.options.msgFromAddress = $widgetkit.trans.get("FROM_ADDRESS");
this.options.msgGetDirections = $widgetkit.trans.get("GET_DIRECTIONS");
this.options.msgEmpty = $widgetkit.trans.get("FILL_IN_ADDRESS");
this.options.msgNotFound = $widgetkit.trans.get("ADDRESS_NOT_FOUND");
this.options.msgAddressNotFound = $widgetkit.trans.get("LOCATION_NOT_FOUND");
this.options = d.extend({}, this.options, c);
this.container = a;
i ? this.setupMap() : f.push(this)
},
setupMap: function() {
var a = this.options;
this.map = new google.maps.Map(this.container.get(0), {
mapTypeId: a.mapTypeId,
center: new google.maps.LatLng(a.lat, a.lng),
streetViewControl: a.mapCtrl ? !0 : !1,
navigationControl: a.mapCtrl,
scrollwheel: a.zoomWhl ? !0 : !1,
mapTypeControl: a.typeCtrl ? !0 : !1,
zoomControl: a.mapCtrl ? !0 : !1,
zoomControlOptions: {
style: a.mapCtrl == 1 ? google.maps.ZoomControlStyle.DEFAULT : google.maps.ZoomControlStyle.SMALL
}
});
this.infowindow =...