1// Log all jQuery AJAX requests to Google Analytics 2$(document).ajaxSend(function(event, xhr, settings){ 3 if (typeof _gaq !== "undefined" && _gaq !== null) { 4 _gaq.push(['_trackPageview', settings.url]); 5 } 6}); 7 8// We need to do the google map stuff on pageshow (not pagecreate) as the back button 9// doesn't show the maps correctly otherwise. 10$('.page').live("pageshow", function() { 11 12 // Set up a cookie with a lifetime of a year 13 $.Jookie.Initialise("sculpturesCookie", 525600); 14 15 // All tours page - has a map showing the location of all the sculptures 16 if ($('#all-tours-map').length) { 17 showAllToursMarkersMap(); 18 } 19 20 // Tour page - has a map showing the location of the sculptures in the tour 21 if ($('#tour-map').length) { 22 showTourMarkersMap(); 23 } 24 25 addTourNav(); 26 27 // Load photo slideshow for wide screen version of site (so mobiles don't have to download large images for the slideshow). 28 if ($('#slideshow-wrapper:visible').length) { 29 30 if ($('#tour-id').length) { 31 var tourId = $('#tour-id').text(); 32 if (tourId != null) { 33 $.get('http://www.sculptures.org.nz/js/list-sculpture-images-for-slideshow?id=' + tourId, function(data) { 34 $('#slideshow-wrapper').html(data); 35 $('.flexslider').flexslider(); 36 }); 37 } 38 } 39 40 if ($('#top-ten-list').length) { 41 $.get('http://www.sculptures.org.nz/js/top-ten-photos', function(data) { 42 $('#slideshow-wrapper').html(data); 43 $('.flexslider').flexslider(); 44 }); 45 } 46 47 } 48 49 // Add sculpture number before the sculpture name 50 if ($('#tour-map').length) { 51 addSculptureNo(); 52 } 53 54 // like functionality 55 if($('#sculpture-details-wrapper').length){ 56 likeThis(); 57 } 58}); 59 60 61function showAllToursMarkersMap() { 62 63 var latitude = -41.288259221536705; // Wellington's coords 64 var longitude = 174.77950125932693; 65 var latLng = new google.maps.LatLng(latitude, longitude); 66 67 // Create map 68 $('#all-tours-map').gmap( 69 {'center': latLng, 'zoom':14, 'callback': function() { 70 71 var iws = []; 72 // Plot the markers on the map 73 $('#all-tours-map-data > li').each(function() { 74 75 var tourName = $(this).attr('class'); 76 var markerImage; 77 switch(tourName) { 78 case 'lambton': 79 markerImage = 'http://www.sculptures.org.nz/__data/assets/image/0004/859/sculpture.png'; 80 break; 81 case 'waterfront': 82 markerImage = 'http://www.sculptures.org.nz/__data/assets/image/0014/860/sculpture.png'; 83 break; 84 case 'botanic': 85 markerImage = 'http://www.sculptures.org.nz/__data/assets/image/0015/861/sculpture.png'; 86 break; 87 case 'coastal': 88 markerImage = 'http://www.sculptures.org.nz/__data/assets/image/0016/862/sculpture.png'; 89 break; 90 case 'civic': 91 markerImage = 'http://www.sculptures.org.nz/__data/assets/image/0010/1252/sculpture.png'; 92 break; 93 case 'courtenay': 94 markerImage = ' http://www.sculptures.org.nz/__data/assets/image/0015/555/sculpture.png'; 95 break; 96 } 97 98 $(this).find('ul li').each(function() { 99 100 var sculptureName = $(this).find('.name').text(); 101 var sculptor = $(this).find('.sculptor').text(); 102 var sculptureYear = $(this).find('.year').text(); 103 var sculptureLat = $(this).find('.latitude').text(); 104 var sculptureLong = $(this).find('.longitude').text(); 105 var thumbnailUrl = $(this).find('.thumbnail-url').text(); 106 var thumbnailAlt = $(this).find('.thumbnail-alt').text(); 107 var sculptureUrl = $(this).find('.url').html(); 108 109 // Check if lat and long has been populated 110 if (sculptureLat != '') { 111 latLng = new google.maps.LatLng(sculptureLat, sculptureLong); 112 113 // Create marker on map 114 $('#all-tours-map').gmap('addMarker', {'position': latLng, 'title': sculptureName, 'icon': new google.maps.MarkerImage(markerImage) }, function(map, marker) { 115 var content = '<div class="iw"><img class="iw-photo" src="' + thumbnailUrl + '" alt="' + thumbnailAlt + '"><div class="iw-summary"><a href="' + sculptureUrl + '" title="To ' + sculptureName + '">' + sculptureName +'</a></div><div class="iw-description">' + sculptor + ', ' + sculptureYear + '</div><div class="clear"></div></div>'; 116 $('#all-tours-map').gmap('addInfoWindow', { 'position':marker.getPosition(), 'content': content, 'maxWidth': 350 }, function(iw) { 117 iws.push(iw); 118 $(marker).click(function() { 119 for ( var i = 0 ; i < iws.length; i++ ) { 120 iws[i].close(); // close all InfoWindows in the array 121 } 122 iw.open(map, marker); 123 map.panTo(marker.getPosition()); 124 }); 125 }); 126 }); 127 } 128 129 }); 130 }); 131 } 132 }); 133 134} // end showAllToursMarkersMap 135 136 137function showTourMarkersMap() { 138 139 var tourName = $('#tour-name').text(); 140 var centreLat = $('#tour-latitude').text(); 141 var centreLong = $('#tour-longitude').text(); 142 143 var markerImage; 144 var animation; 145 146 // Create map 147 var iws = []; 148 var currentSculptureId = ''; 149 var singleSculpturePage = false;
150 var latLng; 151 var mapZoom = $('#tour-zoom').text(); 152 mapZoom = parseInt(mapZoom); 153 154 if ($('#sculpture-data').length) { 155 156 singleSculpturePage = true; 157 currentSculptureId = $('#current-sculpture-id').text(); 158 currentSculptureLatitude = $('#current-sculpture-latitude').text(); 159 currentSculptureLongitude = $('#current-sculpture-longitude').text(); 160 currentSculptureZoom = $('#current-sculpture-zoom').text(); 161 162 if (currentSculptureZoom != '') { 163 mapZoom = parseInt(currentSculptureZoom); 164 } 165 latLng = new google.maps.LatLng(currentSculptureLatitude, currentSculptureLongitude); 166 167 } else { 168 latLng = new google.maps.LatLng(centreLat, centreLong); 169 } 170 171 $('#tour-map').gmap( 172 {'center': latLng, 'zoom': mapZoom, 'callback': function() { 173 174 // Plot the markers on the map 175 var markers = getMarkers(); 176 var markerNo = 1; 177 178 $('#tour-map-data li').each(function() { 179 180 sculptureId = $(this).find('.id').text(); 181 sculptureName = $(this).find('.name').text(); 182 sculptor = $(this).find('.sculptor').text(); 183 sculptureYear = $(this).find('.year').text(); 184 latitude = $(this).find('.latitude').text(); 185 longitude = $(this).find('.longitude').text(); 186 thumbnail = $(this).find('.thumbnail').html(); 187 var thumbnailUrl = $(this).find('.thumbnail-url').text(); 188 var thumbnailAlt = $(this).find('.thumbnail-alt').text(); 189 var sculptureUrl = $(this).find('.url').html(); 190 url = $(this).find('.url').html(); 191 192 if (singleSculpturePage) { 193 if (currentSculptureId == sculptureId) { 194 markerImage = markers[tourName][markerNo - 1].url; 195 animation = google.maps.Animation.DROP; 196 } else { 197 markerImage = markers['generic'][markerNo - 1].url; 198 animation = null; 199 } 200 } else { 201 markerImage = markers[tourName][markerNo - 1].url; 202 animation = null; 203 } 204// markerImage = markers[tourName][markerNo - 1].url; 205 206 markerNo++; 207 208 // Check if lat and long has been populated 209 if (latitude != '') { 210 latLng = new google.maps.LatLng(latitude, longitude); 211 212 // Create marker on map 213// $('#tour-map').gmap('addMarker', {'position': latLng, 'animation': google.maps.Animation.DROP, 'title': sculptureName, 'icon': new google.maps.MarkerImage(markerImage) }, function(map, marker) { 214 $('#tour-map').gmap('addMarker', {'position': latLng, 'animation': animation, 'title': sculptureName, 'icon': new google.maps.MarkerImage(markerImage) }, function(map, marker) { 215// var content = '<div class="iw">' + thumbnail + '<div class="iw-summary"><a href="' + url + '" title="To ' + sculptureName + '">' + sculptureName + '</a></div><div class="iw-description">' + sculptor + ', ' + sculptureYear + '</div><div class="clear"><div></div>'; 216 var content = '<div class="iw"><img class="iw-photo" src="' + thumbnailUrl + '" alt="' + thumbnailAlt + '"><div class="iw-summary"><a href="' + sculptureUrl + '" title="To ' + sculptureName + '">' + sculptureName +'</a></div><div class="iw-description">' + sculptor + ', ' + sculptureYear + '</div><div class="clear"></div></div>'; 217 $('#tour-map').gmap('addInfoWindow', { 'position':marker.getPosition(), 'content': content, 'maxWidth': 300 }, function(iw) { 218 iws.push(iw); 219 $(marker).click(function() { 220 for ( var i = 0 ; i < iws.length; i++ ) { 221 iws[i].close(); // close all InfoWindows in the array 222 } 223 iw.open(map, marker); 224 map.panTo(marker.getPosition()); 225 }); 226 }); 227 }); 228 } 229 230 }); 231 232 233 if (navigator.geolocation) { 234 watch = navigator.geolocation.watchPosition ( 235 function( position ) { 236 if (window.myLocationMarker != null) window.myLocationMarker.get(0).setMap(null); 237 window.myLocationMarker = $('#tour-map').gmap('addMarker', { 'title': 'You are here!', 'bound': true, 'position':new google.maps.LatLng(position.coords.latitude, position.coords.longitude), 'icon': new google.maps.MarkerImage('http://www.sculptures.org.nz/__data/assets/image/0016/556/my-location.png') }, function(map, marker) { 238 $('#tour-map').gmap('addInfoWindow', { 'position': marker.getPosition(), 'content': 'You are here!' }, function(iw) { 239 $(marker).click(function() { 240 iw.open(map, marker); 241 }); 242 }); 243 }); 244 245 } 246 ); 247 } 248 249 } 250 }); 251 252} // end showTourMarkersMap 253 254 255function addTourNav() { 256 257 // Create the prev and next nav links for an individual sculpture page 258 259 // Find the id of the current sculpture 260 if ($('#sculpture-data').length) { 261 262 var currentSculptureId = $('#current-sculpture-id').text(); 263 264 // Then find the sculptures immediately before and after it in the hidden sculptures list 265 var prevSculptureURL = $('#id-list-' + currentSculptureId).parent('li').prev('li').find('span.url').text(); 266 var nextSculptureURL = $('#id-list-' + currentSculptureId).parent('li').next('li').find('span.url').text(); 267 268 // Add the correct urls to the next and prev links 269 if (prevSculptureURL != '') { 270 $('.prev-sculpture-button').attr('href', prevSculptureURL); 271 } else { 272 $('.prev-sculpture-button').remove(); 273 $('.tour-nav-buttons').trigger('create'); 274 } 275 if (nextSculptureURL != '') { 276 $('.next-sculpture-button').attr('href', nextSculptureURL); 277 } else { 278 $('.next-sculpture-button').remove(); 279 $('.tour-nav-buttons').trigger('create'); 280 } 281 282 // Make tour button have no rounded corners 283 // $('.tour-button').removeClass().addClass('tour-button ui-btn ui-btn-icon-left ui-btn-up-c'); 284 } 285 286} // end addTourNav() 287 288 289function putInStorage(key, value) { 290
291 if (Modernizr.localstorage) { 292 // window.localStorage is available! 293 localStorage[key] = value; 294 } else { 295 // Do cookie thing 296 $.Jookie.Set("sculpturesCookie", key, value); 297 } 298 299} // end putInStorage 300 301 302function getFromStorage(key) { 303 304 if (Modernizr.localstorage) { 305 // window.localStorage is available! 306 return localStorage[key]; 307 } else { 308 // Do cookie thing 309 return cookieValue = $.Jookie.Get("sculpturesCookie", key); 310 } 311 312} // end getFromStorage 313 314 315function addCommas(nStr) { 316 317 nStr += ''; 318 x = nStr.split('.'); 319 x1 = x[0]; 320 x2 = x.length > 1 ? '.' + x[1] : ''; 321 var rgx = /(\d+)(\d{3})/; 322 while (rgx.test(x1)) { 323 x1 = x1.replace(rgx, '$1' + ',' + '$2'); 324 } 325 return x1 + x2; 326 327} // end addCommas 328 329function likeThis() { 330 331 var thisId = $('#current-sculpture-id').text(); 332 var thisVotes = $('#current-sculpture-votes').text(); 333 if (thisVotes == '') { 334 thisVotes = '0'; 335 } 336 337 var js_api = new Squiz_Matrix_API({key: '4285753266'}); 338 var voteId = 'vote' + thisId; 339 var voted = getFromStorage(voteId); 340 341 // If user has already voted, only show how many votes there are 342 if (voted != null) { 343 $('#votes-button').hide(); 344 if (thisVotes == '1') { 345 $('#votes-text').addClass('voted').html('<strong>You</strong> like this').show(); 346 } else { 347 $('#votes-text').addClass('voted').html('<strong>You</strong> and ' + (parseInt(thisVotes) - 1) + ' others like this').show(); 348 } 349 } else { 350 // Else show the Like button plus how many votes there are 351 352 if (thisVotes == '0') { 353 $('#votes-text').text('').hide(); 354 } else { 355 $('#votes-text').html(thisVotes + ' others like this').show(); 356 } 357 358 $('#votes-button').click(function(e){ 359 e.preventDefault(); 360 $('#votes-button').hide(); 361 js_api.getMetadata ({ 362 asset_id : thisId, 363 dataCallback : function(data){ 364 thisVotes = parseInt(data.TourVotes); 365 var newVotes = parseInt(data.TourVotes) + 1; 366 js_api.setMetadata({ 367 asset_id : thisId, 368 field_id : 1613, 369 field_val : newVotes, 370 dataCallback : function() { 371 var upVotes = parseInt(thisVotes) + 1; 372 if (thisVotes == '0') { 373 $('#votes-text').addClass('voted').html('<strong>You</strong> like this').show(); 374 } else { 375 $('#votes-text').addClass('voted').html('<strong>You</strong> and ' + thisVotes + ' others like this').show(); 376 } 377 putInStorage('vote' + thisId, 'voted'); 378 } 379 }) 380 } 381 }) 382 }); 383 384 } 385 386} // end likeThis 387 388 389function addSculptureNo() { 390 391 var currentSculptureId = $('#current-sculpture-id').text(); 392 393 // loop through sculptures in tour until we find the current one 394 var no = 1; 395 $('#tour-map-data li').each(function() { 396 397 var sculptureId = $(this).find('.id').text(); 398 if (sculptureId == currentSculptureId) { 399 $('#sculpture-name').prepend(no + '. '); 400 } else { 401 no++; 402 } 403 }); 404 405 406} // end addSculptureNo 407 408 409function getMarkers() { 410 411 var markers = { 412 "waterfront": [ 413 { "type": "1", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1091/number_1.png" }, 414 { "type": "2", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1093/number_2.png" }, 415 { "type": "3", "url": "http://www.sculptures.org.nz/__data/assets/image/0015/1095/number_3.png" }, 416 { "type": "4", "url": "http://www.sculptures.org.nz/__data/assets/image/0017/1097/number_4.png" }, 417 { "type": "5", "url": "http://www.sculptures.org.nz/__data/assets/image/0019/1099/number_5.png" }, 418 { "type": "6", "url": "http://www.sculptures.org.nz/__data/assets/image/0003/1101/number_6.png" }, 419 { "type": "7", "url": "http://www.sculptures.org.nz/__data/assets/image/0005/1103/number_7.png" }, 420 { "type": "8", "url": "http://www.sculptures.org.nz/__data/assets/image/0007/1105/number_8.png" }, 421 { "type": "9", "url": "http://www.sculptures.org.nz/__data/assets/image/0009/1107/number_9.png" }, 422 { "type": "10", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1109/number_10.png" }, 423 { "type": "11", "url": "http://www.sculptures.org.nz/__data/assets/image/0004/1111/number_11.png" }, 424 { "type": "12", "url": "http://www.sculptures.org.nz/__data/assets/image/0006/1113/number_12.png" }, 425 { "type": "13", "url": "http://www.sculptures.org.nz/__data/assets/image/0008/1115/number_13.png" }, 426 { "type": "14", "url": "http://www.sculptures.org.nz/__data/assets/image/0010/1117/number_14.png" }, 427 { "type": "15", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1119/number_15.png" }, 428 { "type": "16", "url": "http://www.sculptures.org.nz/__data/assets/image/0005/1121/number_16.png" }, 429 { "type": "17", "url": "http://www.sculptures.org.nz/__data/assets/image/0007/1123/number_17.png" }, 430 { "type": "18", "url": "http://www.sculptures.org.nz/__data/assets/image/0009/1125/number_18.png" }, 431 { "type": "19", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1127/number_19.png" }, 432 { "type": "20", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1129/number_20.png" }, 433 { "type": "sculpture", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/860/sculpture.png" } 434 ], 435 "coastal": [ 436 { "type": "1", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1273/number_1.png" }, 437 { "type": "2", "url": "http://www.sculptures.org.nz/__data/assets/image/0015/1284/number_2.png" }, 438 { "type": "3", "url": "http://www.sculptures.org.nz/__data/assets/image/0017/1286/number_3.png" }, 439 { "type": "4", "url": "http://www.sculptures.org.nz/__data/assets/image/0018/1287/number_4.png" }, 440 { "type": "5", "url": "http://www.sculptures.org.nz/__data/assets/image/0019/1288/number_5.png" }, 441 { "type": "6", "url": "http://www.sculptures.org.nz/__data/assets/image/0020/1289/number_6.png" }, 442 { "type": "7", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1290/number_7.png" }, 443 { "type": "8", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1291/number_8.png" }, 444 { "type": "9", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/1292/number_9.png" }, 445 { "type": "10", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/1274/number_10.png" }, 446 { "type": "11", "url": "http://www.sculptures.org.nz/__data/assets/image/0015/1275/number_11.png" }, 447 { "type": "12", "url": "http://www.sculptures.org.nz/__data/assets/image/0016/1276/number_12.png" }, 448 { "type": "13", "url": "http://www.sculptures.org.nz/__data/assets/image/0017/1277/number_13.png" }, 449 { "type": "14", "url": "http://www.sculptures.org.nz/__data/assets/image/0018/1278/number_14.png" }, 450 { "type": "15", "url": "http://www.sculptures.org.nz/__data/assets/image/0019/1279/number_15.png" }, 451 { "type": "16", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1280/number_16.png" }, 452 { "type": "17", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1281/number_17.png" }, 453 { "type": "18", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1282/number_18.png" }, 454 { "type": "19", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/1283/number_19.png" }, 455 { "type": "20", "url": "http://www.sculptures.org.nz/__data/assets/image/0016/1285/number_20.png" }, 456 { "type": "sculpture", "url": "http://www.sculptures.org.nz/__data/assets/image/0016/862/sculpture.png" } 457 ], 458 "civic": [ 459 { "type": "1", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1253/number_1.png" }, 460 { "type": "2", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1264/number_2.png" }, 461 { "type": "3", "url": "http://www.sculptures.org.nz/__data/assets/image/0015/1266/number_3.png" }, 462 { "type": "4", "url": "http://www.sculptures.org.nz/__data/assets/image/0016/1267/number_4.png" }, 463 { "type": "5", "url": "http://www.sculptures.org.nz/__data/assets/image/0017/1268/number_5.png" }, 464 { "type": "6", "url": "http://www.sculptures.org.nz/__data/assets/image/0018/1269/number_6.png" }, 465 { "type": "7", "url": "http://www.sculptures.org.nz/__data/assets/image/0010/1270/number_7.png" }, 466 { "type": "8", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1271/number_8.png" }, 467 { "type": "9", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1272/number_9.png" }, 468 { "type": "10", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1254/number_10.png" }, 469 { "type": "11", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1255/number_11.png" }, 470 { "type": "12", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/1256/number_12.png" }, 471 { "type": "13", "url": "http://www.sculptures.org.nz/__data/assets/image/0015/1257/number_13.png" }, 472 { "type": "14", "url": "http://www.sculptures.org.nz/__data/assets/image/0016/1258/number_14.png" }, 473 { "type": "15", "url": "http://www.sculptures.org.nz/__data/assets/image/0017/1259/number_15.png" }, 474 { "type": "16", "url": "http://www.sculptures.org.nz/__data/assets/image/0009/1260/number_16.png" }, 475 { "type": "17", "url": "http://www.sculptures.org.nz/__data/assets/image/0010/1261/number_17.png" }, 476 { "type": "18", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1262/number_18.png" }, 477 { "type": "19", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1263/number_19.png" }, 478 { "type": "20", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/1265/number_20.png" }, 479 { "type": "sculpture", "url": "http://www.sculptures.org.nz/__data/assets/image/0010/1252/sculpture.png" } 480 ], 481 "lambton": [ 482 { "type": "1", "url": "http://www.sculptures.org.nz/__data/assets/image/0010/1171/number_1.png" }, 483 { "type": "2", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1173/number_2.png" }, 484 { "type": "3", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/1175/number_3.png" }, 485 { "type": "4", "url": "http://www.sculptures.org.nz/__data/assets/image/0016/1177/number_4.png" }, 486 { "type": "5", "url": "http://www.sculptures.org.nz/__data/assets/image/0018/1179/number_5.png" }, 487 { "type": "6", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1181/number_
4876.png" }, 488 { "type": "7", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1183/number_7.png" }, 489 { "type": "8", "url": "http://www.sculptures.org.nz/__data/assets/image/0015/1185/number_8.png" }, 490 { "type": "9", "url": "http://www.sculptures.org.nz/__data/assets/image/0017/1187/number_9.png" }, 491 { "type": "10", "url": "http://www.sculptures.org.nz/__data/assets/image/0019/1189/number_10.png" }, 492 { "type": "11", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1191/number_11.png" }, 493 { "type": "12", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/1193/number_12.png" }, 494 { "type": "13", "url": "http://www.sculptures.org.nz/__data/assets/image/0016/1195/number_13.png" }, 495 { "type": "14", "url": "http://www.sculptures.org.nz/__data/assets/image/0018/1197/number_14.png" }, 496 { "type": "15", "url": "http://www.sculptures.org.nz/__data/assets/image/0020/1199/number_15.png" }, 497 { "type": "16", "url": "http://www.sculptures.org.nz/__data/assets/image/0004/1201/number_16.png" }, 498 { "type": "17", "url": "http://www.sculptures.org.nz/__data/assets/image/0006/1203/number_17.png" }, 499 { "type": "18", "url": "http://www.sculptures.org.nz/__data/assets/image/0008/1205/number_18.png" }, 500 { "type": "19", "url": "http://www.sculptures.org.nz/__data/assets/image/0010/1207/number_19.png" }, 501 { "type": "20", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1209/number_20.png" }, 502 { "type": "sculpture", "url": "http://www.sculptures.org.nz/__data/assets/image/0004/859/sculpture.png" } 503 ], 504 "botanic": [ 505 { "type": "1", "url": "http://www.sculptures.org.nz/__data/assets/image/0006/1131/number_1.png" }, 506 { "type": "2", "url": "http://www.sculptures.org.nz/__data/assets/image/0008/1133/number_2.png" }, 507 { "type": "3", "url": "http://www.sculptures.org.nz/__data/assets/image/0010/1135/number_3.png" }, 508 { "type": "4", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1137/number_4.png" }, 509 { "type": "5", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/1139/number_5.png" }, 510 { "type": "6", "url": "http://www.sculptures.org.nz/__data/assets/image/0007/1141/number_6.png" }, 511 { "type": "7", "url": "http://www.sculptures.org.nz/__data/assets/image/0009/1143/number_7.png" }, 512 { "type": "8", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1145/number_8.png" }, 513 { "type": "9", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1147/number_9.png" }, 514 { "type": "10", "url": "http://www.sculptures.org.nz/__data/assets/image/0015/1149/number_10.png" }, 515 { "type": "11", "url": "http://www.sculptures.org.nz/__data/assets/image/0008/1151/number_11.png" }, 516 { "type": "12", "url": "http://www.sculptures.org.nz/__data/assets/image/0010/1153/number_12.png" }, 517 { "type": "13", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1155/number_13.png" }, 518 { "type": "14", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/1157/number_14.png" }, 519 { "type": "15", "url": "http://www.sculptures.org.nz/__data/assets/image/0016/1159/number_15.png" }, 520 { "type": "16", "url": "http://www.sculptures.org.nz/__data/assets/image/0009/1161/number_16.png" }, 521 { "type": "17", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1163/number_17.png" }, 522 { "type": "18", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1165/number_18.png" }, 523 { "type": "19", "url": "http://www.sculptures.org.nz/__data/assets/image/0015/1167/number_19.png" }, 524 { "type": "20", "url": "http://www.sculptures.org.nz/__data/assets/image/0017/1169/number_20.png" }, 525 { "type": "sculpture", "url": "http://www.sculptures.org.nz/__data/assets/image/0015/861/sculpture.png" } 526 ], 527 "courtenay": [ 528 { "type": "1", "url": "http://www.sculptures.org.nz/__data/assets/image/0007/1231/number_1.png" }, 529 { "type": "2", "url": "http://www.sculptures.org.nz/__data/assets/image/0009/1242/number_2.png" }, 530 { "type": "3", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1244/number_3.png" }, 531 { "type": "4", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1245/number_4.png" }, 532 { "type": "5", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1246/number_5.png" }, 533 { "type": "6", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/1247/number_
5336.png" }, 534 { "type": "7", "url": "http://www.sculptures.org.nz/__data/assets/image/0015/1248/number_7.png" }, 535 { "type": "8", "url": "http://www.sculptures.org.nz/__data/assets/image/0016/1249/number_8.png" }, 536 { "type": "9", "url": "http://www.sculptures.org.nz/__data/assets/image/0008/1250/number_9.png" }, 537 { "type": "10", "url": "http://www.sculptures.org.nz/__data/assets/image/0008/1232/number_10.png" }, 538 { "type": "11", "url": "http://www.sculptures.org.nz/__data/assets/image/0009/1233/number_11.png" }, 539 { "type": "12", "url": "http://www.sculptures.org.nz/__data/assets/image/0010/1234/number_12.png" }, 540 { "type": "13", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1235/number_13.png" }, 541 { "type": "14", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1236/number_14.png" }, 542 { "type": "15", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1237/number_15.png" }, 543 { "type": "16", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/1238/number_16.png" }, 544 { "type": "17", "url": "http://www.sculptures.org.nz/__data/assets/image/0015/1239/number_17.png" }, 545 { "type": "18", "url": "http://www.sculptures.org.nz/__data/assets/image/0007/1240/number_18.png" }, 546 { "type": "19", "url": "http://www.sculptures.org.nz/__data/assets/image/0008/1241/number_19.png" }, 547 { "type": "20", "url": "http://www.sculptures.org.nz/__data/assets/image/0010/1243/number_20.png" }, 548 { "type": "sculpture", "url": "http://www.sculptures.org.nz/__data/assets/image/0015/555/sculpture.png" } 549 ], 550 "generic": [ 551 { "type": "1", "url": "http://www.sculptures.org.nz/__data/assets/image/0004/1210/number_1.png" }, 552 { "type": "2", "url": "http://www.sculptures.org.nz/__data/assets/image/0006/1221/number_2.png" }, 553 { "type": "3", "url": "http://www.sculptures.org.nz/__data/assets/image/0008/1223/number_3.png" }, 554 { "type": "4", "url": "http://www.sculptures.org.nz/__data/assets/image/0009/1224/number_4.png" }, 555 { "type": "5", "url": "http://www.sculptures.org.nz/__data/assets/image/0010/1225/number_5.png" }, 556 { "type": "6", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1226/number_6.png" }, 557 { "type": "7", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1227/number_7.png" }, 558 { "type": "8", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1228/number_8.png" }, 559 { "type": "9", "url": "http://www.sculptures.org.nz/__data/assets/image/0014/1229/number_9.png" }, 560 { "type": "10", "url": "http://www.sculptures.org.nz/__data/assets/image/0005/1211/number_10.png" }, 561 { "type": "11", "url": "http://www.sculptures.org.nz/__data/assets/image/0006/1212/number_11.png" }, 562 { "type": "12", "url": "http://www.sculptures.org.nz/__data/assets/image/0007/1213/number_12.png" }, 563 { "type": "13", "url": "http://www.sculptures.org.nz/__data/assets/image/0008/1214/number_13.png" }, 564 { "type": "14", "url": "http://www.sculptures.org.nz/__data/assets/image/0009/1215/number_14.png" }, 565 { "type": "15", "url": "http://www.sculptures.org.nz/__data/assets/image/0010/1216/number_15.png" }, 566 { "type": "16", "url": "http://www.sculptures.org.nz/__data/assets/image/0011/1217/number_16.png" }, 567 { "type": "17", "url": "http://www.sculptures.org.nz/__data/assets/image/0012/1218/number_17.png" }, 568 { "type": "18", "url": "http://www.sculptures.org.nz/__data/assets/image/0013/1219/number_18.png" }, 569 { "type": "19", "url": "http://www.sculptures.org.nz/__data/assets/image/0005/1220/number_19.png" }, 570 { "type": "20", "url": "http://www.sculptures.org.nz/__data/assets/image/0007/1222/number_20.png" }, 571 { "type": "sculpture", "url": "http://www.sculptures.org.nz/__data/assets/image/0009/1251/sculpture.png" } 572 ] 573} 574 575 return markers; 576 577} // end getMarkers
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.