//JavaScript generated by Ordnance Survey OpenSpace
//Copyright 2011 Ordnanace Survey

//declare marker variables
var pos, size, offset, infoWindowAnchor, icon, content, popUpSize;

function initmapbuilder()
{
//initiate the map
var options = {resolutions: [2500, 1000, 500, 200, 100, 50, 25, 10, 5, 2, 1]};
osMap = new OpenSpace.Map('map', options);

//configure map options (basicmap.js)
setglobaloptions();

//set the center of the map and the zoom level
osMap.setCenter(new OpenSpace.MapPoint(459071,162121),10);

// add a marker
pos = new OpenSpace.MapPoint(459037,162097);
size = new OpenLayers.Size(17,17);
offset = new OpenLayers.Pixel(-8,-8);
infoWindowAnchor = new OpenLayers.Pixel(8,8);
icon = new OpenSpace.Icon('http://openspace.ordnancesurvey.co.uk/osmapapi/img_versions/img_1.1/OS/images/markers/round-marker-lrg-blue.png', size, offset, null, infoWindowAnchor);
content = '<strong>Car Parking</strong> available at Tadley Dental Care';
popUpSize = new OpenLayers.Size(250,150);
osMap.createMarker(pos, icon, content, popUpSize);

// add a marker
pos = new OpenSpace.MapPoint(459014,162067);
size = new OpenLayers.Size(17,17);
offset = new OpenLayers.Pixel(-8,-8);
infoWindowAnchor = new OpenLayers.Pixel(8,8);
icon = new OpenSpace.Icon('http://openspace.ordnancesurvey.co.uk/osmapapi/img_versions/img_1.1/OS/images/markers/round-marker-lrg-blue.png', size, offset, null, infoWindowAnchor);
content = '<strong>Car Parking</strong> available at St Mary&#39;s Church';
popUpSize = new OpenLayers.Size(250,150);
osMap.createMarker(pos, icon, content, popUpSize);

// add a marker
pos = new OpenSpace.MapPoint(459129,162080);
size = new OpenLayers.Size(17,17);
offset = new OpenLayers.Pixel(-8,-8);
infoWindowAnchor = new OpenLayers.Pixel(8,8);
icon = new OpenSpace.Icon('http://openspace.ordnancesurvey.co.uk/osmapapi/img_versions/img_1.1/OS/images/markers/round-marker-lrg-red.png', size, offset, null, infoWindowAnchor);
content = '<strong>Tadley Common Methodist Church</strong><br><em>the home of</em> <strong>Christchurch Players</strong>';
popUpSize = new OpenLayers.Size(250,150);
osMap.createMarker(pos, icon, content, popUpSize);

clusterControl = new OpenSpace.Control.ClusterManager();
osMap.addControl(clusterControl);
clusterControl.activate();}

