javascript - OpenLayers resolutions from web.config -
I'm trying to be stored in web.config resolution of their maps and property string in my Aspiknet
web.config When I read the item [19.1092570678711, 9.55462853393555,4.777314 a ?? | 66661945,0.5 9 71642833709725] No method 'sort' I think it can be because it is a string, but how can I solve it? My JavaScript It is suspected or because / Block> ex> The Outlook: an array of strings, rather than just a string: & lt; Mplayer & gt; & Lt; Use buffer mapsBuffarmaps = "1" zoom offset = "13" resolution = "19.1092570678711,9.55462853393555,4.77731426696777,2.38865713348389,1.19432856674 1945,0.5 971642833709725" /> & Lt; / Maplayers & gt;
resolutions property in my Javascript, I get the following error:
var str1 = "["; Var str2 = "]"; Var res_str = str1.concat (ob.resolutions, str2); Var mapnik_layer = New Open Layer. Leyrkosm ( "OpenStreetMap", "http: // Sthaniyhost / Vebclent / Opanstriitmap / $ {z} / $ {x} / $ {y} Kpianjiji" {Jhumofset: 13, Resolution: Res_str}); Map.addLayers ([mapnik_layer]);
resolution considered An array instead of string.
var res_str = ob.resolutions. Split (',');
[ "19.1092570678711", "9.554628533 9 3555", "4.77731426696777", "2.38865713348389", "1.194328566741945", "0.5971642833709725 "]
" [19.10 9 2570678711, 9.554628533 9 3555, 4.77731426696777, 2.38865713348389, 1.194328566741945, 0.5971642833709725] "
Comments
Post a Comment