| .. | |||||
| examples.gmap.js | |||||
| examples.map.builder.js | |||||
| examples.vector.maps.js | |||||
| snazzy.themes.js |
| Server IP : 103.169.32.36 / Your IP : 216.73.217.13 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/dpmptsp/public_html/home/admin/assets/javascripts/maps/ |
Upload File : |
/*
Name: Maps / Basic - Examples
Written by: Okler Themes - (http://www.okler.net)
Theme Version: 1.3.0
*/
(function( $ ) {
'use strict';
var initBasic = function() {
new GMaps({
div: '#gmap-basic',
lat: -12.043333,
lng: -77.028333
});
};
var initBasicWithMarkers = function() {
var map = new GMaps({
div: '#gmap-basic-marker',
lat: -12.043333,
lng: -77.028333,
markers: [{
lat: -12.043333,
lng: -77.028333,
infoWindow: {
content: '<p>Basic</p>'
}
}]
});
map.addMarker({
lat: -12.043333,
lng: -77.028333,
infoWindow: {
content: '<p>Example</p>'
}
});
};
var initStatic = function() {
var url = GMaps.staticMapURL({
size: [725, 500],
lat: -12.043333,
lng: -77.028333,
scale: 1
});
$('#gmap-static')
.css({
backgroundImage: 'url(' + url + ')',
backgroundSize: 'cover'
});
};
var initContextMenu = function() {
var map = new GMaps({
div: '#gmap-context-menu',
lat: -12.043333,
lng: -77.028333
});
map.setContextMenu({
control: 'map',
options: [
{
title: 'Add marker',
name: 'add_marker',
action: function(e) {
this.addMarker({
lat: e.latLng.lat(),
lng: e.latLng.lng(),
title: 'New marker'
});
}
},
{
title: 'Center here',
name: 'center_here',
action: function(e) {
this.setCenter(e.latLng.lat(), e.latLng.lng());
}
}
]
});
};
var initStreetView = function() {
var gmap = GMaps.createPanorama({
el: '#gmap-street-view',
lat : 48.85844,
lng : 2.294514
});
$(window).on( 'sidebar-left-toggle', function() {
google.maps.event.trigger( gmap, 'resize' );
});
};
// auto initialize
$(function() {
initBasic();
initBasicWithMarkers();
initStatic();
initContextMenu();
initStreetView();
});
}).apply(this, [ jQuery ]);| .. | |||||
| examples.gmap.js | |||||
| examples.map.builder.js | |||||
| examples.vector.maps.js | |||||
| snazzy.themes.js |