RikText.legendaButton = "THEMA'S";
RikText.locatieZoekenButton = "ZOEK LOCATIE";

function StartRik() {

	var proxyLocation = "JavascriptProxy/Proxy.ashx";
	RikConfig.proxyLocation = proxyLocation;
	RikConfig.useProxy = true;
	Gwr.Rik.updateProxyHost();

	// Opvragen van de mapConfig
	RikConfig.urlMapConfigHandler = urlMapConfigHandler;
	RikConfig.urlThemaVeldenHandler = urlThemaVeldenHandler;
	var mapconfig = rikMapConfig; //Gwr.Rik.getMapConfig('rik');

	if (mapconfig) {
		RikConfig.urlLocatieZoekenHandler = urlLocatieZoekenHandler;
		mapconfig.VoorloopSchermEnabled = true;

		deGroteKaart = new Gwr.Rik.KaartControl('KaartGroot', mapconfig);

		deGroteKaart .map.map.addControl(new OpenLayers.Control.ScaleLine({ metricVisible: true, usVisible: false }));
	} else {
		alert("Fout bij laden van de kaart");
	}

	var points = [];
	for (var i = 0; i < 800; i++) {
		var x = Math.floor(512 * Math.random());
		var y = Math.floor(512 * Math.random());
		var size = 16;
		points.push({ left: x - (size / 2), top: y - (size / 2), right: x + (size / 2), bottom: y + (size / 2) });
	}
				
}
