next problem was I get "mixed contents".
I figured I have to point the V3 script src to HTTPS aswell and also for all of my fusion tables further down the road.
It seems I need some API key now..? I think I got one following the link there so I replaced the "YOUR API KEY" in the src
Also I do not have a function as the example called initMap, mine is initialise, changed that too but it does not run anyway.
Do I need to call that? also tried without but no luck.
function initialize() {
var myLatlng = new google.maps.LatLng(gpslat,gpslon);
var myOptions = {
zoom: 17,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU },
navigationControl: true,
navigationControlOptions: { style: google.maps.NavigationControlStyle.ZOOM_PAN, position: google.maps.ControlPosition.TOP_RIGHT },
scaleControl: true,
scaleControlOptions: { position: google.maps.ControlPosition.BOTTOM_LEFT}
}
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
var image = 'img/point.png';
var infowindow = new google.maps.InfoWindow();
var marker, i;
for (i = 0; i < locations.length; i++) {
addOption(document.lagerform.anl, locations[i][0], locations[i][3]);
marker = new google.maps.Marker({
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
map: map,
icon: image
});
google.maps.event.addListener(marker, 'click', (function (marker, i) {
return function () {
infowindow.setContent(locations[i][0]);
infowindow.open(map, marker);
}
})(marker, i));
}
google.maps.event.addListener(map, 'idle', function () {
if (startad == false) {
document.getElementById('loader').style.display = "none";
startad = true;}
});
/* google.maps.event.addListener(map, 'dragend', function () {
if ((gronOn == true) || (vinterOn == true)) {
testArr();
}
});
*/