CINXE.COM
FASTI - Home
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <!-- title --> <title>FASTI - Home</title> <base href="https://www.fastionline.org/" /> <!-- meta --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- stylesheets --> <link href="skins/fastisur/stylesheets/ark_main.css" type="text/css" rel="stylesheet" media="screen" /> <link href="/survey/skins/fastisur/stylesheets/ark_main_print.css" type="text/css" rel="stylesheet" media="print" /> <link href="/survey/skins/fastisur/stylesheets/lightbox.css" type="text/css" rel="stylesheet" /> <link href="/survey/skins/fastisur/images/ark_favicon.ico" rel="shortcut icon" /> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <!-- javascript libraries --> <script type="text/javascript" src="/survey/lib/js/jquery.js"></script> <script type="text/javascript" src="/survey/lib/js/jquery-ui.js"></script> <script type="text/javascript" src="/survey/lib/js/php.js"></script> <script type="text/javascript" src="/survey/lib/js/proj4.js"></script> <script type="text/javascript" src="/survey/lib/js/ol/ol.js"></script> <script type="text/javascript" src="/survey/js/colorbox.js"></script> <!-- ARK javascript --> <script type="text/javascript" src="/survey/js/js_functions.js"></script> <script type="text/javascript" src="/survey/js/map_functions.js"></script> <script type="text/javascript" src="/survey/js/livesearch.js"></script> </head> <body> <!-- Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-6G13FX91CC"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-6G13FX91CC'); </script> <!-- THE USER-TOOLS HEADER --> <header class="usertools"> <div id="navlang"> <form method="post"> <i class="fa fa-language fa-lg"></i> <select name="lang"><option value="en">Language</option> <option value="it">Italiano</option> <option value="mk">Македонски</option> <option value="ro">română</option> <option value="bg">Български</option> <option value="sr">Српски</option> <option value="hr">Hrvatski</option> <option value="fr">Franςais</option> <option value="ar">عربي </option> <option value="sl">Slovenščina</option> <option value="sq">Shqip</option> <option value="me">Crnogorski</option> <option value="uk">Українською</option> <option value="ru">Россию</option> <option value="es">Español</option> <option value="mk">Македонски</option> </select><button>>></button> </form> </div> <!-- THE SWITCH --> <span class ="switch_options"> <span class="text left"> <a class="switch" href="/index.php?logout=1"> <i class="fa fa-home fa-lg"></i>Fasti Online Home </a> </span> <span class="vertbreak"> | </span> <span class="text right"> Switch To Fasti <a class="switch" href="/excavation/index.php?logout=1">Excavation<i class="fa fa-sign-out fa-lg"></i></a> <span class="vertbreak"> | </span> <a class="switch" href="/conservation/index.php?logout=1">Conservation<i class="fa fa-sign-out fa-lg"></i></a> </span> </span> </header> <!-- THE CONTENT WRAPPER --> <div id="wrapper" class="wrp_normal"> <!-- HEADER --> <div id="hdr-print"> <img src="skins/fastisur/images/logo.png" alt="logo" /> </div> <div id="hdr"> <h2 class="subtitle"> Archaeological Survey </h2> <!-- THE BANNER --> <a href="/survey/index.php" class="banner"><div id="banner"> </div></a> <!-- DYNAMIC NAVIGATION --> <div id="navcontainer"> <ul id="navlist"> <li id="active"><a href="/survey/index.php?view=home">Home</a></li> <li><a href="/survey/about.php?view=aboutfastisur">About</a></li> <li><a href="/survey/contact.php?view=home">Records Guidelines</a></li> <li><a href="/survey/map_view.php?map_restart=1">Search</a></li> <li><a href="/folder.php?view=home">FOLD&R</a></li> </ul><div id="search"> <form method="post" class="searchbox" action="/survey/data_view.php"> <fieldset> <input type="text" placeholder="Search..." name="src" value="" /> <input type="hidden" name="ftr_mode" value="basic" /> <input type="hidden" name="disp_mode" value="chat" /> <input type="hidden" name="ftype" value="ftx" /> <input type="hidden" name="ftr_id" value="searchbox" /> <input type="hidden" name="reset" value="1" /> <button type="submit">go</button> </fieldset> </form> </div> </div> </div> <!-- MESSAGE --> <h1 class="fp_banner">A database of archaeological field surveys</h1> <div class="feed"> <ul> <li> <a title="Fasti on Facebook" href="https://www.facebook.com/fastionline"><i class="fa fa-facebook fa-lg"></i></a> </li> <li> <a title="Fasti on Twitter" href="https://www.twitter.com/fastionline"><i class="fa fa-twitter fa-lg"></i></a> </li> <li> <a title="Fasti on YouTube" href="https://www.youtube.com/user/fastionlinevideos"><i class="fa fa-youtube-play fa-lg"></i></a> </li> <li class="last"> <a title="Fasti FOLD&R on Academia.edu" href="https://fastionline.academia.edu/FOLDER"><i class="fa fa-graduation-cap fa-lg"></i></a> </li> </ul> </div> <!-- THE MAIN AREA --> <div id="main" class="main_frontpage"> <!-- MAP DIV --> <div class="fp_map main_mapview"> <div class="map_viewlist"> <div id="map_view" class="mapview "><div class="progress"></div><div id="popup"></div><script src="/survey//lib/js/proj4.js" type="text/javascript"></script><script type="text/javascript">( function($) {var center = [1658377.765675183,4690094.84123586]; view = new ol.View({ center: center, zoom: '4', projection: 'EPSG:900913', minZoom: 2, }); var container = document.getElementById('popup'); var content = document.getElementById('popup-content'); var overlay = new ol.Overlay({ element: container, map: map2, }); var map2 = new ol.Map({ controls: ol.control.defaults({attribution: false}).extend([ new ol.control.FullScreen(), new ol.control.ScaleLine(), ]), interactions: ol.interaction.defaults(), target: 'map_view', view: view, overlays: [overlay], }); var scaleline = new ol.control.ScaleLine(); map2.addControl(scaleline); $(document).ready(function() { map2.updateSize(); map2.on('moveend',function(){ var center = map2.getView().get('center'); var extents = map2.getView().calculateExtent(map2.getSize()); centerstring = '['+center.toString()+']'; var zoom = map2.getView().getZoom(); $.ajax({ method: "POST", url: "php/map/subforms/update_sessionmap.php", data: { center: centerstring, zoomlevel: zoom, map_view: "", extents:extents } }) .done(function( msg ) { console.log("Session Updated"); }); }); }); $('#map_view').data('map',map2); window.map2 = map2; var satelitelayer = new ol.layer.Tile({ source: new ol.source.BingMaps({ key: 'AlIeneupj0uXxfJXCGossWXjmNuBuiWK_0eHwgmIUuRdJE0be3F1L3_qZ6b-mYGM', imagerySet: 'Road' }) }); satelitelayer.set('name', 'satelitelayer'); map2.addLayer(satelitelayer); satelitelayer.setVisible( false ); var conf_field_sur_schmaddeditems = []; var auth_items = {"6":"AIAC_1","441":"AIAC_2","440":"AIAC_3","439":"AIAC_4","438":"AIAC_5","437":"AIAC_6","436":"AIAC_7","435":"AIAC_8","434":"AIAC_9","433":"AIAC_10","432":"AIAC_11","431":"AIAC_12","430":"AIAC_13","429":"AIAC_14","428":"AIAC_15","427":"AIAC_16","426":"AIAC_17","425":"AIAC_18","424":"AIAC_19","423":"AIAC_20","422":"AIAC_21","421":"AIAC_22","420":"AIAC_23","419":"AIAC_24","418":"AIAC_25","417":"AIAC_26","416":"AIAC_27","415":"AIAC_28","414":"AIAC_29","413":"AIAC_30","412":"AIAC_31","411":"AIAC_32","410":"AIAC_33","409":"AIAC_34","408":"AIAC_36","407":"AIAC_37","406":"AIAC_38","405":"AIAC_39","404":"AIAC_40","403":"AIAC_41","402":"AIAC_42","401":"AIAC_43","400":"AIAC_46","399":"AIAC_47","398":"AIAC_49","397":"AIAC_51","396":"AIAC_52","395":"AIAC_53","394":"AIAC_54","393":"AIAC_55","392":"AIAC_56","391":"AIAC_57","390":"AIAC_58","389":"AIAC_59","388":"AIAC_60","387":"AIAC_61","386":"AIAC_62","385":"AIAC_63","384":"AIAC_64","383":"AIAC_65","382":"AIAC_66","381":"AIAC_67","380":"AIAC_68","379":"AIAC_69","378":"AIAC_70","377":"AIAC_71","376":"AIAC_72","375":"AIAC_73","374":"AIAC_74","373":"AIAC_75","372":"AIAC_76","371":"AIAC_77","370":"AIAC_78","369":"AIAC_79","368":"AIAC_81","367":"AIAC_82","366":"AIAC_83","365":"AIAC_84","364":"AIAC_85","363":"AIAC_86","362":"AIAC_87","361":"AIAC_88","360":"AIAC_89","359":"AIAC_90","358":"AIAC_91","357":"AIAC_92","356":"AIAC_93","355":"AIAC_94","354":"AIAC_95","353":"AIAC_96","352":"AIAC_97","351":"AIAC_98","350":"AIAC_99","349":"AIAC_100","348":"AIAC_101","347":"AIAC_102","346":"AIAC_103","345":"AIAC_104","344":"AIAC_105","343":"AIAC_106","342":"AIAC_107","341":"AIAC_108","340":"AIAC_109","339":"AIAC_110","338":"AIAC_111","337":"AIAC_112","336":"AIAC_113","335":"AIAC_114","334":"AIAC_115","333":"AIAC_116","332":"AIAC_117","331":"AIAC_118","330":"AIAC_119","329":"AIAC_120","328":"AIAC_121","327":"AIAC_122","326":"AIAC_123","325":"AIAC_124","324":"AIAC_125","323":"AIAC_126","322":"AIAC_127","321":"AIAC_128","320":"AIAC_129","319":"AIAC_130","318":"AIAC_131","317":"AIAC_132","316":"AIAC_133","315":"AIAC_134","314":"AIAC_135","313":"AIAC_136","312":"AIAC_137","311":"AIAC_138","310":"AIAC_139","309":"AIAC_140","308":"AIAC_141","307":"AIAC_142","306":"AIAC_143","305":"AIAC_144","304":"AIAC_145","303":"AIAC_146","302":"AIAC_147","301":"AIAC_148","300":"AIAC_149","299":"AIAC_150","298":"AIAC_151","297":"AIAC_152","296":"AIAC_153","295":"AIAC_154","294":"AIAC_155","293":"AIAC_156","292":"AIAC_157","291":"AIAC_158","290":"AIAC_159","289":"AIAC_160","288":"AIAC_161","287":"AIAC_162","286":"AIAC_163","285":"AIAC_164","284":"AIAC_165","283":"AIAC_166","282":"AIAC_167","281":"AIAC_168","280":"AIAC_169","279":"AIAC_170","278":"AIAC_171","277":"AIAC_172","276":"AIAC_173","275":"AIAC_174","274":"AIAC_175","273":"AIAC_176","272":"AIAC_177","271":"AIAC_178","270":"AIAC_179","269":"AIAC_180","268":"AIAC_181","267":"AIAC_182","266":"AIAC_183","265":"AIAC_184","264":"AIAC_185","263":"AIAC_186","262":"AIAC_187","261":"AIAC_188","260":"AIAC_189","259":"AIAC_190","258":"AIAC_191","257":"AIAC_192","256":"AIAC_193","255":"AIAC_194","254":"AIAC_195","253":"AIAC_196","252":"AIAC_197","251":"AIAC_198","250":"AIAC_199","249":"AIAC_200","248":"AIAC_201","247":"AIAC_202","246":"AIAC_203","245":"AIAC_204","244":"AIAC_205","243":"AIAC_206","242":"AIAC_207","241":"AIAC_208","240":"AIAC_209","239":"AIAC_210","238":"AIAC_211","237":"AIAC_212","236":"AIAC_213","235":"AIAC_214","234":"AIAC_215","233":"AIAC_216","232":"AIAC_217","231":"AIAC_218","230":"AIAC_219","229":"AIAC_220","228":"AIAC_221","227":"AIAC_222","226":"AIAC_223","225":"AIAC_224","224":"AIAC_225","223":"AIAC_226","222":"AIAC_227","221":"AIAC_228","220":"AIAC_229","219":"AIAC_230","218":"AIAC_231","217":"AIAC_232","216":"AIAC_233","215":"AIAC_234","214":"AIAC_235","213":"AIAC_236","212":"AIAC_237","211":"AIAC_238","210":"AIAC_239","209":"AIAC_240","208":"AIAC_241","207":"AIAC_242","206":"AIAC_243","205":"AIAC_244","204":"AIAC_245","203":"AIAC_246","202":"AIAC_247","201":"AIAC_248","200":"AIAC_249","199":"AIAC_250","198":"AIAC_251","197":"AIAC_252","196":"AIAC_253","195":"AIAC_254","194":"AIAC_255","193":"AIAC_256","192":"AIAC_257","191":"AIAC_258","190":"AIAC_259","189":"AIAC_260","188":"AIAC_261","187":"AIAC_262","186":"AIAC_263","185":"AIAC_264","184":"AIAC_265","183":"AIAC_266","182":"AIAC_267","181":"AIAC_268","180":"AIAC_269","179":"AIAC_270","178":"AIAC_271","177":"AIAC_272","176":"AIAC_273","175":"AIAC_274","174":"AIAC_275","173":"AIAC_276","172":"AIAC_277","171":"AIAC_278","170":"AIAC_279","169":"AIAC_280","168":"AIAC_281","167":"AIAC_282","166":"AIAC_283","165":"AIAC_284","164":"AIAC_285","163":"AIAC_286","162":"AIAC_287","161":"AIAC_288","160":"AIAC_289","159":"AIAC_290","158":"AIAC_291","157":"AIAC_292","156":"AIAC_293","155":"AIAC_294","154":"AIAC_295","153":"AIAC_296","152":"AIAC_297","151":"AIAC_298","150":"AIAC_299","149":"AIAC_300","148":"AIAC_301","147":"AIAC_302","146":"AIAC_303","145":"AIAC_304","144":"AIAC_305","143":"AIAC_306","142":"AIAC_307","141":"AIAC_308","140":"AIAC_309","139":"AIAC_310","138":"AIAC_311","137":"AIAC_312","136":"AIAC_313","135":"AIAC_314","134":"AIAC_315","133":"AIAC_316","132":"AIAC_317","131":"AIAC_318","130":"AIAC_319","129":"AIAC_320","128":"AIAC_321","127":"AIAC_322","126":"AIAC_323","125":"AIAC_324","124":"AIAC_325","123":"AIAC_326","122":"AIAC_327","121":"AIAC_328","120":"AIAC_329","119":"AIAC_330","118":"AIAC_331","117":"AIAC_332","116":"AIAC_333","115":"AIAC_334","114":"AIAC_335","113":"AIAC_336","112":"AIAC_337","111":"AIAC_338","110":"AIAC_339","109":"AIAC_340","108":"AIAC_341","107":"AIAC_342","106":"AIAC_343","105":"AIAC_344","104":"AIAC_345","103":"AIAC_346","102":"AIAC_347","101":"AIAC_348","100":"AIAC_349","99":"AIAC_350","98":"AIAC_351","97":"AIAC_352","96":"AIAC_353","95":"AIAC_354","94":"AIAC_355","93":"AIAC_356","92":"AIAC_357","91":"AIAC_358","90":"AIAC_359","89":"AIAC_360","88":"AIAC_361","87":"AIAC_362","86":"AIAC_363","85":"AIAC_364","84":"AIAC_365","83":"AIAC_366","82":"AIAC_367","81":"AIAC_368","80":"AIAC_369","79":"AIAC_370","78":"AIAC_371","77":"AIAC_372","76":"AIAC_373","75":"AIAC_374","74":"AIAC_375","73":"AIAC_376","72":"AIAC_377","71":"AIAC_378","70":"AIAC_380","69":"AIAC_381","68":"AIAC_382","5":"AIAC_386","4":"AIAC_387","1":"AIAC_388","3":"AIAC_389","67":"AIAC_415","61":"AIAC_416","65":"AIAC_419","63":"AIAC_420","62":"AIAC_421","60":"AIAC_422","57":"AIAC_423","59":"AIAC_424","58":"AIAC_425","64":"AIAC_426","56":"AIAC_429","54":"AIAC_430","55":"AIAC_432","53":"AIAC_433","52":"AIAC_434","51":"AIAC_435","50":"AIAC_436","49":"AIAC_437","48":"AIAC_438","47":"AIAC_439","46":"AIAC_440","45":"AIAC_441","44":"AIAC_442","43":"AIAC_443","447":"AIAC_444","42":"AIAC_445","41":"AIAC_446","40":"AIAC_447","39":"AIAC_448","38":"AIAC_449","37":"AIAC_450","443":"AIAC_452","442":"AIAC_453","444":"AIAC_454","445":"AIAC_456","446":"AIAC_457","36":"AIAC_458","35":"AIAC_459","66":"AIAC_460","34":"AIAC_461","19":"AIAC_462","33":"AIAC_463","32":"AIAC_464","31":"AIAC_465","30":"AIAC_466","29":"AIAC_467","28":"AIAC_468","27":"AIAC_469","26":"AIAC_470","25":"AIAC_471","24":"AIAC_472","23":"AIAC_473","22":"AIAC_474","21":"AIAC_475","20":"AIAC_477","18":"AIAC_478","17":"AIAC_479","16":"AIAC_480","15":"AIAC_481","14":"AIAC_482","13":"AIAC_483","12":"AIAC_484","11":"AIAC_485","10":"AIAC_486","9":"AIAC_487","8":"AIAC_488","7":"AIAC_489","448":"AIAC_490","449":"AIAC_491","450":"AIAC_492","453":"AIAC_493","451":"AIAC_495","452":"AIAC_496","454":"AIAC_497","455":"AIAC_498","458":"AIAC_499","465":"AIAC_500","460":"AIAC_501","462":"AIAC_503","459":"AIAC_505","463":"AIAC_506","464":"AIAC_509","461":"AIAC_522","456":"AIAC_523","457":"AIAC_524","0":"AIAC_525","466":"AIAC_526","467":"AIAC_527","468":"AIAC_528","2":"AIAC_529"}; var authitems = []; if ( auth_items !== null ){ jQuery.each(auth_items,function(i,e){ authitems.push(e); }); } var parseconf_field_sur_schmResponse = function(response) { function isInArray(value, array) { return array.indexOf(value) > -1; } formatWFS = new ol.format.WFS(); features = formatWFS.readFeatures(response); map2.set('geometryFound',false); console.log('features = ' + features.length); features.forEach(function(e,i,a){ var properties = e.getProperties(); //console.log(properties); var ark_id = e.getProperties().itemvalue; if(typeof ark_id == "undefined"){ var ark_id = e.getProperties().ark_id; } if(isInArray(ark_id,authitems) && isInArray(i,conf_field_sur_schmaddeditems)==false ){ conf_field_sur_schmaddeditems.push(i); var feature = new ol.Feature({ geometry:e.getGeometry(), ark_id:ark_id }); for (property in properties) { feature.set(property,properties[property]); } feature.set('gml_id',i); var ark_cd = ark_id.split('_')[0]; feature.set('ark_cd', ark_cd); conf_field_sur_schmSource.addFeatures([feature]); } }); } var extents = map2.getView().calculateExtent(map2.getSize()); var conf_field_sur_schmSource = new ol.source.Vector({ loader: function(extent, resolution, projection) { //console.log(extent); var url = 'https://geo.fastionline.org/geoserver/Fasti/ows?SERVICE=wfs&VERSION=1.1.0'; var wfs_query = "REQUEST=getfeature&TYPENAME=Fasti:surveybbox"; jQuery.ajax({ url: url, //contentType: 'text/xml', data: wfs_query+'&SRS=EPSG%3A900913&&FILTER=<Filter><PropertyIsEqualTo><PropertyName>geomtype</PropertyName><Literal>2</Literal></PropertyIsEqualTo></Filter>', dataType: 'xml', //data: wfs_query, type: 'POST', xhr: function () { var xhr = new window.XMLHttpRequest(); window.total = 2333380; $('.progress').css({ height: '4px', background: '#8a0f0f', width:'0%' }); xhr.addEventListener("progress", function (evt) { var percentComplete = evt.loaded / window.total; var percentComplete = Math.min(percentComplete,0.95); $('.progress').css({ width: percentComplete * 100 + '%' }); }, false); xhr.addEventListener("load", function (evt) { var percentComplete = evt.loaded / window.total; $('.progress').css({ width: '100%' }); $('.progress').fadeOut( "slow" ); }, false); return xhr; }, }).done(parseconf_field_sur_schmResponse); }, //strategy: ol.loadingstrategy.all, strategy: ol.loadingstrategy.bbox, }); var layerconf_field_sur_schm = new ol.layer.Vector({ source:conf_field_sur_schmSource }); layerconf_field_sur_schm.set('name', 'surveybbox'); layerconf_field_sur_schm.set('hidden', true); layerconf_field_sur_schm.set('mod_cd', 'sur'); layerconf_field_sur_schm.setStyle(function styleFunction(feature, resolution) { window.styleCache = {}; var defaultStyle = new ol.style.Style({ fill: new ol.style.Fill({color: [200, 97, 81, 0.4]}), stroke: new ol.style.Stroke({color: [200, 97, 81, 0.5]}), image: new ol.style.Circle({ radius: 6, fill: new ol.style.Fill({color: 'rgba(255, 255, 255, 0.6)'}), stroke: new ol.style.Stroke({color: '#ff561d', width: 1}) }), }) var yellow = [224, 224, 81, 0.5]; var clear = [200, 97, 81, 0]; var red = [200, 97, 81, 0.4]; var styleObject = { 2: red, 1: clear, }; var geomtype = feature.get('geomtype'); // if there is no geomtype or its one we don't recognize, // return the default style (in an array!) if (!geomtype || !styleObject[geomtype]) { return [defaultStyle]; } // check the cache and create a new style for the // geomtype if its not been created before. if (!styleCache[geomtype]) { styleCache[geomtype] = new ol.style.Style({ fill: new ol.style.Fill({ color: styleObject[geomtype] }), stroke: defaultStyle.stroke, zIndex: 10 - geomtype }); } // at this point, the style for the current level is in the cache // so return it (as an array!) return [styleCache[geomtype]]; }); layerconf_field_sur_schm.set('selectable', true); map2.addLayer(layerconf_field_sur_schm); $('#map_view').data('layerconf_field_sur_schm',layerconf_field_sur_schm); var overlayStyle = (function(){ return function(feature, resolution) { style = new ol.style.Style({ image: new ol.style.Circle({ radius: 2.5, fill: new ol.style.Fill({ color: '#8a0f0f' }) }), }); focusstyle = style; try { if ( typeof ark_id!=='undefined' ) { if(feature.getProperties().ark_id.toUpperCase() == ark_id){ return [focusstyle]; } else { return [style]; } } } catch(err) { console.log(err); } finally { return [style]; } }; })(); var collection = new ol.Collection(); var multiSelectOverlay = new ol.layer.Vector({ map: map2, projection:'EPSG:900913', source: new ol.source.Vector({ features: collection, useSpatialIndex: true }), updateWhileAnimating: true, updateWhileInteracting: true }); $('#map_view').data('selectedOverlay', multiSelectOverlay); multiSelectOverlay.setStyle(overlayStyle); var collection = new ol.Collection(); var cycleFeatureData = function(iframeids, iframes, direction, mod_cd) { //console.log(iframeids); var index = iframeids.indexOf(ark_id); if(direction!='back'){ index -= 1; } else { index += 1; } if(index<0){ index=iframeids.length-1; } if(index>iframeids.length-1){ index=0; } //console.log(index); iframes[ark_id].style.display = 'none'; ark_id = iframeids[index]; multiSelectOverlay.setStyle(overlayStyle); iframes[ark_id].style.display = 'inline'; var titleElem = document.getElementById('overlayTitleElem'); titleElem.href='/survey//micro_view.php?item_key='+mod_cd+'&'+mod_cd+'='+ark_id; titleElem.innerHTML = '<h5>Survey Project '+ark_id+'</h5>'; } var displayFeatureInfo = function(pixel) { var iframes = {}; var iframeids = []; collection.clear(); multiSelectOverlay.getSource().clear(); multiSelectOverlay.getSource().addFeatures(collection); var data = document.createElement('div'); if(map2.hasFeatureAtPixel(pixel, {layerFiler: function(layer) {return layer.get('selectable')}})){ $(overlay.getElement()).empty(); var queryoutput_group = document.createElement('div'); $(queryoutput_group).addClass('olQueryResult'); $(queryoutput_group).attr('id','queryOutput_GroupDiv'); var queryoutput_content = document.createElement('div'); $(queryoutput_content).attr('id','queryOutput_contentDiv'); $(queryoutput_content).addClass('olQueryResultContent'); $(queryoutput_group).append(queryoutput_content); var qlist = document.createElement('ul'); $(qlist).addClass('qlist'); $(queryoutput_content).append(qlist); var loading = $(document.createElement('div')); loading.addClass('waiting'); loading.append('Querying'); $(qlist).append(loading); var hits = $(document.createElement('ul')); var deferreds = []; map2.forEachFeatureAtPixel(pixel, function(feature, layer) { if (layer == null || map2.getLayers().getArray().indexOf(layer) === -1) { $.noop(); } else if ( layer.get('mod_cd') == 'remote' ) { var link = $(document.createElement("a")); link.attr("href", feature.getProperties().landingPage); link.attr("target","_blank"); var hitname = $(document.createElement('span')); hitname.addClass('data'); hitname.append(feature.getProperties().site_nom); link.append(hitname); hits.append(link); collection.push(feature); } else { ark_id = feature.getProperties().ark_id.toUpperCase(); mod_cd = layer.get('mod_cd')+'_cd'; if(layer && feature.getProperties().geomtype != 1){ //console.log('/api.php?req=getFields&fields=conf_field_surname&item_key='+mod_cd+'&'+mod_cd+'='+ark_id); deferreds.push( $.ajax({ url: '/survey/api.php?req=getFields&fields=conf_field_surname&item_key='+mod_cd+'&'+mod_cd+'='+ark_id, contentType: 'text/application' }).done(function( response ) { ark_id = feature.getProperties().ark_id.toUpperCase(); var link = $(document.createElement("a")); //console.log(response); link.attr("href",'/survey/micro_view.php?item_key='+mod_cd+'&'+mod_cd+'='+ark_id); link.attr("target","_blank"); var hitname = $(document.createElement('span')); hitname.addClass('data'); if( typeof response[0][0] !== 'undefined' ){ if(count(response[0][0]['txt'])>0){ hitname.append(response[0][0]['txt']); } else { hitname.append(ark_id); } } else { hitname.append(ark_id); } link.append(hitname); hits.append(link); var subtitle = document.createElement('li'); $(subtitle).addClass('qelement'); var qlabel = $(document.createElement('span')); qlabel.addClass('qlabel'); qlabel.append("ark_id:"); $(subtitle).append(qlabel); $(subtitle).append(ark_id); hits.append(subtitle); collection.push(feature); }) ); } } }) $.when.apply(null, deferreds).done(function() { $(qlist).empty(); var qlayer = document.createElement('li'); $(qlayer).addClass('qlayer'); $(qlayer).append("sites"); $(qlist).append(qlayer); $(qlayer).append(hits); }); var close = $(document.createElement("div")); close.attr('id','queryOutput_close'); close.addClass('olPopupCloseBox'); $(queryoutput_group).append(close); close.click(function(e){ overlay.getElement().style.display = 'none'; }); $(overlay.getElement()).append(queryoutput_group); overlay.setPosition(map2.getCoordinateFromPixel(pixel)); overlay.getElement().style.display = 'block'; } else { $(overlay.getElement()).empty(); var queryoutput_group = document.createElement('div'); $(queryoutput_group).addClass('olQueryResult'); $(queryoutput_group).attr('id','queryOutput_GroupDiv'); var queryoutput_content = document.createElement('div'); $(queryoutput_content).attr('id','queryOutput_contentDiv'); $(queryoutput_content).addClass('olQueryResultContent'); $(queryoutput_content).append('Your query returned no records'); $(queryoutput_group).append(queryoutput_content); var close = $(document.createElement("div")); close.attr('id','queryOutput_close'); close.addClass('olPopupCloseBox'); $(queryoutput_group).append(close); close.click( function(e){ overlay.getElement().style.display = 'none'; }); $(overlay.getElement()).append(queryoutput_group); overlay.setPosition(map2.getCoordinateFromPixel(pixel)); overlay.getElement().style.display = 'block'; } }; map2.on('click', function(evt) { var pixel = map2.getEventPixel(evt.originalEvent); collection.clear(); multiSelectOverlay.getSource().clear(); multiSelectOverlay.getSource().addFeatures(collection); displayFeatureInfo(pixel); }); var collection = new ol.Collection(); var featureOverlay = new ol.layer.Vector({ map: map2, projection:'EPSG:900913', source: new ol.source.Vector({ features: collection, useSpatialIndex: true }), updateWhileAnimating: true, updateWhileInteracting: true }); $('#map_view').data('selectedOverlay', featureOverlay); $(document).ready(function() { $('.map_download_link').click(function(e){ e.preventDefault(); //console.log(e); if($(e.target).hasClass('geomtype_1')){ var geomtype = 1; } if($(e.target).hasClass('geomtype_2')){ var geomtype = 2; } geojson = new ol.format.GeoJSON(); features = []; map2.getLayers().forEach(function(i,e,a){ if (i.get('name')=='sur_areas'){ if (typeof i.getSource().getFeatures == 'function') { i.getSource().getFeatures().forEach(function(e,i,a){ //console.log(e); var featurething = new ol.Feature({sur_cd: false,surname: false, geometry: e.getGeometry() }); if(typeof e.get('geomtype') == 'undefined'){ if( geomtype == 2 ){ features.push(featurething); } } else if (e.get('geomtype') == geomtype ){ features.push(featurething); } }); //console.log(features); selectedFeatures = geojson.writeFeatures( features, { featureProjection: 'EPSG:900913' } ); var dataStr = "data:text/json;charset=utf-8," + encodeURIComponent(selectedFeatures); var dlAnchorElem = document.getElementById('downloadAnchorElem'); dlAnchorElem.setAttribute("href", dataStr ); dlAnchorElem.setAttribute("download", ".geojson"); dlAnchorElem.click(); } } }); }); });satelitelayer.setVisible( true )} ) ( jQuery );</script><link rel="stylesheet" href="/survey//lib/js/ol/ol.css" /><link rel="stylesheet" href="/survey/skins/fastisur/stylesheets/map_view.css" /></div> </div> </div> <!-- CLOSE MAP DIV --> <!-- UNDER MAP FOOTER --> <div class="fp_credits"> <ul id="ftr"> <li>Fasti Archaeological Survey is a project of the <a href="http://www.knir.it/en/">Koninklijk Nederlands Instituut Rome (KNIR)</a> and the <a href="http://www.aiac.org/">International Association of Classical Archaeology (AIAC)</a></li> <li>Web, GIS and Database Design by <a href="http://www.lparchaeology.com">L - P : Archaeology</a></li> <li>All Fasti Online data, unless otherwise stated is licensed under the <a href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike Unported License (CC BY-SA 4.0)</a>, © 2004 - 2021 <a href="http://www.aiac.org">AIAC</a></li> </ul> </div><!-- CLOSE UNDER MAP CREDITS --> <!-- LOGOS --> <div id="fp_logos"> <ul id="ftr"> <li class="logos"> <a title="KNIR" href="https://www.knir.it/en/"><img id="knir" class="logo" src="/survey/skins/fastisur/images/fst/knir_logo.png" alt="knir logo"/></a> <a title="AIAC" href="http://www.aiac.org/"><img id="aiac" class="logo" src="/survey/skins/fastisur/images/fst/aiac_logo_2.png" alt="aiac logo"/></a> </li> </ul> </div><!-- CLOSE LOGOS --> </div> <!-- CLOSE MAIN --> <!-- COLUMN 1 --> <div id="column1"> <div class="foldr-front"> <h2> <span> <a href="/folder.php?view=home" class="hlnk">The 5 most recently published FOLD&Rs</a> </span> </h2> <ul class="folder_recent"> <li> <span class="qname">22 - Francesca Anichini – Salvatore Basile – Gabriele Gattiglia – Chiara Giovannetti – Elisa Paperini – Claudia Sciuto – Raffaele Voccia. 2024. </span> <span class="title">Archeologia della Montagna di Mezzo. Ricognizioni di superficie nella Versilia montana 2020-22. </span> <span class="links"><a href="/mod_code/data.php?file=folder/FOLDER-sur-2024-22.pdf">PDF</a><a href="http://www.fastionline.org/docs/FOLDER-sur-2024-22.pdf">permalink</a><a href="/survey/micro_view.php?item_key=sur_cd&sur_cd=AIAC_529">Record Sheet</a></span></li> <li> <span class="qname">21 - Gianluca Mastrocinque – Marco Campese – Francesca De Palo – Vito Lucente – Maria Silvestri. 2024. </span> <span class="title">Egnatia survey: nuovi dati sul territorio di Egnazia dall’età del Bronzo al Medioevo. </span> <span class="links"><a href="/mod_code/data.php?file=folder/FOLDER-sur-2024-21.pdf">PDF</a><a href="http://www.fastionline.org/docs/FOLDER-sur-2024-21.pdf">permalink</a><a href="/survey/micro_view.php?item_key=sur_cd&sur_cd=AIAC_525">Record Sheet</a></span></li> <li> <span class="qname">20 - Martina Bernardi – Emeri Farinetti. 2023. </span> <span class="title">Monti Lucretili Landscape Project. Surveying an upland landscape around the Montefalco castle (2020-2022). </span> <span class="links"><a href="/mod_code/data.php?file=folder/FOLDER-sur-2023-20.pdf">PDF</a><a href="http://www.fastionline.org/docs/FOLDER-sur-2023-20.pdf">permalink</a><a href="/survey/micro_view.php?item_key=sur_cd&sur_cd=AIAC_524">Record Sheet</a></span></li> <li> <span class="qname">19 - Simone Zocco. 2023. </span> <span class="title">Territori e viabilità nella piana brindisina fra età dioclezianea ed età longobarda: ripensare gli studi pregressi. </span> <span class="links"><a href="/mod_code/data.php?file=folder/FOLDER-sur-2023-19.pdf">PDF</a><a href="http://www.fastionline.org/docs/FOLDER-sur-2023-19.pdf">permalink</a><a href="/survey/micro_view.php?item_key=sur_cd&sur_cd=AIAC_523">Record Sheet</a></span></li> <li> <span class="qname">18 - Marco Cavalazzi – Michele Abballe – Alice Ferrari. 2022. </span> <span class="title">Landscape archaeology in the Ravenna hinterland: the survey at Cotignola (RA), 2018. </span> <span class="links"><a href="/mod_code/data.php?file=folder/FOLDER-sur-2022-18.pdf">PDF</a><a href="http://www.fastionline.org/docs/FOLDER-sur-2022-18.pdf">permalink</a><a href="/survey/micro_view.php?item_key=sur_cd&sur_cd=AIAC_498">Record Sheet</a></span></li> </ul> </ul> </div> </div><!-- CLOSE CLOSE COLUMN 1 --> <!-- FOOTER --> <div id="ark_footer"> <div class="bt-nav"> <ul id="navlist"> <li id="active"><a href="/survey/index.php?view=home">Home</a></li> <li><a href="/survey/about.php?view=aboutfastisur">About</a></li> <li><a href="/survey/contact.php?view=home">Records Guidelines</a></li> <li><a href="/survey/map_view.php?map_restart=1">Search</a></li> <li><a href="/folder.php?view=home">FOLD&R</a></li> </ul> </div> <div class="credits"> <span><a title="CC BY-SA" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a></p></span> <p>© 2004-2025</p> <span><a title="AIAC" href="http://www.aiac.org">AIAC</a></p></span> <p>Design by</p> <span><a title="LP:Archaeology" href="http://www.lparchaeology.com">L - P : Archaeology</a></span><p>Powered by</p> <span class="noborder"><a title="ARK" href="http://ark.lparchaeology.com">ARK</a></span></div> <script>console.log("anonsur")</script> </div> <!-- CLOSE FOOTER --> </div> <!-- CLOSE WRAPPER --> </body> </html>