I am trying to modify the World Map so when I am viewing the site, the map only shows what is in my area.
I found what I need to change and where, but can't figure out how.
In the /modules/boonex/world_map/templates/base/map.html, I changed the zoom: & center: and it works like I want. How do I insert the users Latitude & Longitude?
Where does Boonex grab the __map_lat__ & __map_lng__ variables from???
BxWmapOnloadCallback__suffix__ = function () {
var mapOptions = {
scrollwheel: false,
draggable: (1 == __map_is_dragable__) ? true : false,
//zoom: __map_zoom__,
//center: new google.maps.LatLng(__map_lat__, __map_lng__),
zoom: 12,
center: new google.maps.LatLng(34.1615135, -118.3403506),
panControl: false,
overviewMapControl: (1 == __map_is_overview_control__ ? true : false),
overviewMapControlOptions: { opened: false },
disableDoubleClickZoom: false,
zoomControl: true,
zoomControlOptions: { style: google.maps.ZoomControlStyle.DEFAULT },
mapTypeControl: (1 == __map_is_type_control__ ? true : false),
mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DEFAULT },
scaleControl: (1 == __map_is_scale_control__ ? true : false),
mapTypeId: google.maps.MapTypeId.ROADMAP
}