📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 17:35:36
📂
/ (Root)
/
home
/
orkouolp
/
web
/
testing.orkobd
/
public_html
/
admin
/
assets
/
js
/
page
📍 /home/orkouolp/web/testing.orkobd/public_html/admin/assets/js/page
🔄 Refresh
✏️
Editing: gmaps-geolocation.js
Writable
"use strict"; // initialize map var map = new GMaps({ div: '#map', lat: -6.5637928, lng: 106.7535061 }); // initialize map geolocation GMaps.geolocate({ // when geolocation is allowed by user success: function(position) { // set center map according to user position map.setCenter(position.coords.latitude, position.coords.longitude); // add a marker to the map map.addMarker({ lat: position.coords.latitude, lng: position.coords.longitude, title: 'You' }); }, // when geolocation is blocked by the user error: function(error) { toastr.error('Geolocation failed: '+error.message); }, // when the user's browser does not support not_supported: function() { toastr.error("Your browser does not support geolocation"); } });
💾 Save Changes
❌ Cancel