var lat=50.055375373799976;
var lng=19.941558837890625;
var zoom=12;
function load() {
if (GBrowserIsCompatible()) {
var baseIcon = new GIcon();
baseIcon.iconSize=new GSize(32,32);
baseIcon.shadowSize=new GSize(56,32);
baseIcon.iconAnchor=new GPoint(16,32);
baseIcon.infoWindowAnchor=new GPoint(16,0);
var conf = new GIcon(baseIcon, "http://maps.google.com/mapfiles/kml/pal2/icon28.png", null, "http://maps.google.com/mapfiles/kml/pal2/icon14s.png");
var objconf = new GIcon(baseIcon, "http://maps.google.com/mapfiles/kml/pal2/icon20.png", null, "http://maps.google.com/mapfiles/kml/pal3/icon21s.png");
function createMarker(point, html, map, icon) {
var marker = new GMarker(point, icon);
GEvent.addListener(marker, "mouseover", function() {
marker.openInfoWindowHtml(html);
});
return marker;
}
function createStateMarker(point, zoom, map, icon) {
var marker = new GMarker(point, icon);
GEvent.addListener(marker, "click", function() {
map.setCenter(point , zoom, null)
});
return marker;
}
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(lat, lng), zoom);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
mgr = new GMarkerManager(map);
//MAŁOPOLSKIE
var point = new GLatLng(50.01832895590886, 20.302734375);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// PODKARPACKIE:
var point = new GLatLng(50.02185841773444, 22.2528076171875);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// LUBELSKIE:
var point = new GLatLng(51.22408779639158, 22.69775390625);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// MAZOWIECKIE:
var point = new GLatLng(52.17056279155013, 21.2200927734375);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// PODLASKIE:
var point = new GLatLng(53.173119202640635, 22.664794921875);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// WARMIŃSKO-MAZURSKIE:
var point = new GLatLng(53.92051610357604, 20.9454345703125);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// POMORSKIE:
var point = new GLatLng(54.12382170046237, 18.1768798828125);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// ZACHODNIOPOMORSKIE:
var point = new GLatLng(53.6120622350988, 15.6829833984375);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// KUJAWSKO-POMORSKIE:
var point = new GLatLng(52.928774525801366, 18.1219482421875);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// ŁÓDZKIE:
var point = new GLatLng(51.56682701546225, 19.500732421875);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// WIELKOPOLSKIE:
var point = new GLatLng(52.210972768075365, 16.8035888671875);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// LUBUSKIE:
var point = new GLatLng(52.00179230422271, 15.8587646484375);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// DOLNOŚLĄSKIE:
var point = new GLatLng(51.07937094724242, 16.2652587890625);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// ŚLĄSKIE:
var point = new GLatLng(50.33844888725473, 18.8140869140625);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// OPOLSKIE:
var point = new GLatLng(50.764259357116465, 17.99560546875);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
// ŚWIĘTOKRZYSKIE:
var point = new GLatLng(50.774681682270334, 20.4840087890625);
mgr.addMarker(createStateMarker(point, 8, map, conf), 6, 7);
html = '
Cracow HostelRynek Glówny 18Cracow () Located in the very center of Krakow, the Cracow Hostel is a friendly place where guests will find relaxing atmosphere, friendly and helpful personnel and comfortable interiors decorated in nice
| Price from | To the centre | Location |
|---|
| 0 EUR | 0.50 km | Podgórze |
More about o Cracow Hostel
';
var point = new GLatLng(50.0606888,19.9370526);
mgr.addMarker(createMarker(point, html , map, objconf), 8);
html = '';
var point = new GLatLng(50.0623290,19.8739456);
mgr.addMarker(createMarker(point, html , map, objconf), 8);
html = '
Hostel GiraffeKrowoderska 31Kraków (Małopolskie) Located close to the main square of Cracow, the Hostel Giraffe is a friendly place where young personnel will help guests to see the most interesting places in Cracow and surroundings. Ro
| Price from | To the centre | Location |
|---|
| 0 EUR | | Centrum |
More about o Hostel Giraffe
';
var point = new GLatLng(50.0687291,19.9372152);
mgr.addMarker(createMarker(point, html , map, objconf), 8);
html = '
Stranger Hostel Krakówul. Dietla 97/5Cracow () Located in center of the Old Town of Krakow, in a 3 minute walk to the biggest town square in Europe, within a 10 minute walk to the train station, and close to the the Kazimierz District, the Stra
| Price from | To the centre | Location |
|---|
| 0 EUR | | Stare Miasto |
More about o Stranger Hostel Kraków
';
var point = new GLatLng(50.0501453,19.9370642);
mgr.addMarker(createMarker(point, html , map, objconf), 8);
html = '';
var point = new GLatLng(50.0572585,19.9406707);
mgr.addMarker(createMarker(point, html , map, objconf), 8);
html = '';
var point = new GLatLng(50.0670299,19.9278631);
mgr.addMarker(createMarker(point, html , map, objconf), 8);
html = '
Trzy Kafki PLUS Hostelul. Dolnych Mlynów 9Cracow () Located in the very center of Cracow, the Trzy Kafki hostel is set in a historical building and offers cozy rooms with bathrooms. Rooms The Trzy Kafki Plus hostel offers 24 cozy rooms w
| Price from | To the centre | Location |
|---|
| 0 EUR | | Centrum |
More about o Trzy Kafki PLUS Hostel
';
var point = new GLatLng(50.0643381,19.9277785);
mgr.addMarker(createMarker(point, html , map, objconf), 8);
html = '';
var point = new GLatLng(50.0707724,19.9249726);
mgr.addMarker(createMarker(point, html , map, objconf), 8);
html = '';
var point = new GLatLng(50.0571968,19.9299479);
mgr.addMarker(createMarker(point, html , map, objconf), 8);
html = '';
var point = new GLatLng(50.0653925,19.9528235);
mgr.addMarker(createMarker(point, html , map, objconf), 8);
mgr.refresh();
}
}