/// <reference path="../Scripts/jspack-vsdoc.js" />

var m = MindFusion.Mapping;

m.WebComponents.register();

// create a new instance of the mapView 
var view = m.MapView.find("mapView");
view.themesPath = "themes/";

var l = new m.MapLayer();
l.urlTemplate = "https://ubydesign.net/maps/meta_data2/{z}/{x}/{y}.png";
view.layers.add(l);

var mark = new m.Marker();
mark.location = new m.LatLong(51.505, -0.09);
view.decorations.add(mark);

view.load(new m.LatLong(51.505, -0.09), 4);

document.getElementById("theme").onchange = function () {
	view.theme = document.getElementById("theme").value;
}

