This is how QGIS writes the proj-string and WKT with +towgs84-parameter:
+proj=longlat +ellps=bessel +towgs84=598.1,73.7,418.2,0.202,0.045,-2.455,6.7 +no_defs
GEOGCS["DHDN",DATUM["Deutsches_Hauptdreiecksnetz",SPHEROID["Bessel 1841",6377397.155,299.1528128,AUTHORITY["EPSG","7004"]],TOWGS84[598.1,73.7,418.2,0.202,0.045,-2.455,6.7],AUTHORITY["EPSG","6314"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4314"]]
But keep in mind that there is no overall value for converting any Bessel-1841-Data to WGS84.
For Germany, there were a lot of parametres published, until a NADgrid for the whole country was created. This applies the correct shift for every point inside Germany.
Other surveying authorities have done similar conversions, but with other values.
EDIT
There is a forum entry in Russian http://gis-lab.info/forum/viewtopic.php?t=9386
giving the following proj parameters:
+proj=tmerc +lat_0=55.6666666667 +lon_0=37.5 +x_0=0 +y_0=0 +k_0=1. +a=6377397 +rf=299.15 +towgs84=396,165,557.7,-0.05,0.04,0.01,0 +no_defs
Maybe you get lucky with those values.
Welp, figured out my answer after posting this, naturally. The code below is much different but works like a charm.
// define map
var map = L.map('map').setView([57.8915,86.8359], 3);
// define addLayer function
function addLayer(layer, name, zIndex) {
layer
.setZIndex(zIndex)
.addTo(map);
}
// add basemap only
addLayer(L.mapbox.tileLayer('mymapboxaccount.7xu07ldi'), 'Base Map', -1);
// here are the new layers we're going to add
var layers = [L.mapbox.tileLayer('mymapboxaccount.wv29be29'),
L.mapbox.tileLayer('mymapboxaccount.d08p8pvi'),
L.mapbox.tileLayer('mymapboxaccount.0tivygb9'),
L.mapbox.tileLayer('mymapboxaccount.lv8l4n29'),
L.mapbox.tileLayer('mymapboxaccount.mlr9hpvi')
];
// and the length of said array so that the timer will stop
var arrayLength = layers.length;
// set the counter for the timer
var i = 0;
// set the timer delay function to add layers to map, calling function name in HTML button
function gogogo () {
setTimeout(function () {
addLayer(layers[i], i); // adding one layer at a time from the array
i++;
if (i < arrayLength) {
gogogo();
}
}, 2000); // delay between layer adds in milliseconds
}
Best Answer
You have a syntax error when declaring the object properties.
Do not do this:
Do this instead:
Note
=
vs:
, and read the docs on object literals while you're at it.