Added site marker (and settings for that)
Shows radars location on map. Default is not showing. Settings: SiteShow is boolean [true|false] SiteLat & SiteLon in decimal format. If using untrackedDeveloperSettings.js-file these settings can be copy-pasted on that file: SiteShow = false; SiteLat = 45.0; SiteLon = 9.0; modified: public_html/config.js modified: public_html/script.js modified: public_html/style.css
This commit is contained in:
parent
6cb5c2b0ff
commit
8b8f74697c
3 changed files with 32 additions and 9 deletions
public_html
|
@ -144,6 +144,21 @@ function initialize() {
|
|||
}));
|
||||
|
||||
GoogleMap.mapTypes.set("dark_map", styledMap);
|
||||
|
||||
// Add home marker if requested
|
||||
if (SiteShow) {
|
||||
var siteMarker = new google.maps.LatLng(SiteLat, SiteLon);
|
||||
var markerImage = new google.maps.MarkerImage('http://maps.google.com/mapfiles/kml/pal4/icon57.png',
|
||||
new google.maps.Size(32, 32), // Image size
|
||||
new google.maps.Point(0, 0), // Origin point of image
|
||||
new google.maps.Point(16, 16)); // Position where marker should point
|
||||
var marker = new google.maps.Marker({
|
||||
position: siteMarker,
|
||||
map: GoogleMap,
|
||||
icon: markerImage,
|
||||
title: 'My Radar Site'
|
||||
});
|
||||
}
|
||||
|
||||
// Did our crafty user need some setup?
|
||||
extendedInitalize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue