-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.xml
More file actions
632 lines (532 loc) · 24.3 KB
/
template.xml
File metadata and controls
632 lines (532 loc) · 24.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
<PDFComposition>
<Metadata>
<Author>Robin</Author>
</Metadata>
<Javascript>
var animate = null;
var animationRunning = false;
// Colours for the UI components
var redColor = new Array("RGB", 0.8, 0.0, 0.2);
var blueColor = new Array("RGB", 0.0, 0.0, 0.2);
var current_index = 0;
var firstRun = true;
var factor = null;
var dpi = 99;
var lastPageViewX = null;
var lastPageViewY = null;
var lastPageViewZoom = null;
var lastSliderButtonLocation = 0;
var interactive = false;
// List of non-interactive layers
!!NONINTERACTLAYERS
// Array of objects containing the name of the timestamp
// and a name of the OCG to turn on for that timestep.
// This is altered by the code in the MAIN section at the bottom
// which puts references to the actual OCG objects in the array
!!JS_TIMESTAMPS
function goToFirstTimestep() {
goToTimestepIndex(0);
markSliderPart(0);
lastSliderButtonLocation = 0;
}
function goToTimestepIndex(idx) {
// We can make this efficient because we know that everything is in time
// order, and there will be blocks of timestamps that are on or off
// If the next timestamp to the right is on, then continue searching
// to the right turning timestamps off, until we get to one that is off
// Once we find one that is off we know that all the rest to the right
// of that one will also be off, so we can stop there.
var upwards_idx = idx + 1;
while ((upwards_idx < timestamps.length) && (timestamps[upwards_idx].ocg.state == true)) {
timestamps[upwards_idx].ocg.state = false;
upwards_idx = upwards_idx + 1;
}
// Same as above, but going to the left - if we know it is off then we need
// to turn it on, until we find a block of ones that are on
var downwards_idx = idx - 1;
while ((downwards_idx >= 0) && (timestamps[downwards_idx].ocg.state == false)) {
timestamps[downwards_idx].ocg.state = true;
downwards_idx = downwards_idx - 1;
}
current_index = idx;
// Update the displayed time
var txt = this.getField("txtTime");
txt.value = timestamps[current_index].name;
this.dirty = false;
}
function toggleObjectVisible(objName) {
// Takes an object name, gets the object, and toggles its visibility
var obj = this.getField(objName);
if (obj.display == display.visible) {
obj.display = display.hidden;
} else {
obj.display = display.visible;
}
}
function toggleDynamic() {
// Toggles the dynamic UI components by:
// - toggling the state of the toggle button
// - turning on/off the static/dynamic layers
// - making the other UI components visible/invisible
if (interactive) {
// Perform Pop Up Actions - ie. switch back to non-interactive
var btn = this.getField("btnDynamicToggle");
btn.borderStyle = border.b; // Bevelled border - looks unpressed
// Restore Up Colors
btn.fillColor = redColor;
btn.textColor = blueColor;
unmarkSliderPart(lastSliderButtonLocation);
for (i = 0; i < nonInteractiveLayers.length; i += 1) {
getOCGByName(nonInteractiveLayers[i]).state = true;
}
getOCGByName("Interactive Layers").state = false;
interactive = false;
if (animationRunning) {
playPause();
}
} else {
// Perform Push Down Actions - ie. switch to interactive
var btn = this.getField("btnDynamicToggle");
btn.borderStyle = border.i; // Inset border - looks pressed
// Darken Down Colors
btn.fillColor = blueColor;
btn.textColor = redColor;
for (i = 0; i < nonInteractiveLayers.length; i += 1) {
getOCGByName(nonInteractiveLayers[i]).state = false;
}
getOCGByName("Interactive Layers").state = true;
goToFirstTimestep();
interactive = true;
}
toggleObjectVisible("btnPlayPause");
toggleObjectVisible("btnNext");
toggleObjectVisible("btnPrev");
toggleObjectVisible("txtTime");
for (i = 0; i < timestamps.length; i += 1) {
toggleObjectVisible("btnSlider_" + i);
}
this.dirty = false;
}
function nextTimestep() {
if (current_index >= 0) {
unmarkSliderPart(lastSliderButtonLocation);
}
current_index += 1;
if (current_index > timestamps.length - 1) {
// If we're trying to go past the end of the timestamps array then
// Reset back to the last element
current_index = timestamps.length - 1;
// Stop the animation
if (animate) {
app.clearInterval(animate);
animationRunning = false;
}
// Reset the Play/Pause button state
var btn = this.getField("btnPlayPause");
btn.borderStyle = border.b;
btn.buttonSetCaption(">");
btn.fillColor = blueColor;
btn.textColor = redColor;
return;
}
// Get the next OCG (layer) and turn it on
timestamps[current_index].ocg.state = true;
// Update the displayed time
var txt = this.getField("txtTime");
txt.value = timestamps[current_index].name;
markSliderPart(current_index);
lastSliderButtonLocation = current_index;
this.dirty = false;
}
function prevTimestep() {
if (current_index == 0) {
current_index = 0;
return;
}
// Turn off the current OCG (layer)
timestamps[current_index].ocg.state = false;
unmarkSliderPart(lastSliderButtonLocation);
current_index -= 1;
// Update the displayed time
var txt = this.getField("txtTime");
txt.value = timestamps[current_index].name;
markSliderPart(current_index);
lastSliderButtonLocation = current_index;
this.dirty = false;
}
function playPauseAnimation() {
// Plays/Pauses the animation - called from the main playPause function
if (animationRunning) {
app.clearInterval(animate);
animationRunning = false;
}
else {
animate = app.setInterval("nextTimestep()", 1000);
animationRunning = true;
}
}
function playPause() {
// Deals with changing the state of the Play/Pause button and
// then actually plays/pauses the animation
// Again, this uses the button border style to tell us whether we need to
// play or pause
var btn = this.getField("btnPlayPause");
if (btn.borderStyle == border.i) {
// Perform Pop Up Actions
btn.borderStyle = border.b; // Bevelled - ie. unpressed
btn.buttonSetCaption(">");
// Restore Up Colors
btn.fillColor = blueColor;
btn.textColor = redColor;
playPauseAnimation();
} else {
// Perform Push Down Actions
btn.borderStyle = border.i; // Inset - ie. pressed
btn.buttonSetCaption("||");
// Darken Down Colors
btn.fillColor = redColor;
btn.textColor = blueColor;
playPauseAnimation();
}
}
function getOCGByName(name) {
// Gets an OCG (a layer) by name
var ocgs = this.getOCGs();
for (var i = 0; i < ocgs.length; i += 1) {
if (ocgs[i].name == name) {
return ocgs[i];
}
}
return false;
}
function markSliderPart(index) {
var btn = this.getField("btnSlider_" + index);
btn.fillColor = redColor;
}
function unmarkSliderPart(index) {
var btn = this.getField("btnSlider_" + index);
btn.fillColor = blueColor;
}
function calcNewBasePosition() {
// Calculate the new base X and Y position for the UI components from the current
// scroll and zoom position
if (firstRun) {
// On the first run only
// Print these elements to the console. We have to do this to initialise
// the media component - rather strange, but it works.
console.println(app.media);
console.println(this.media);
// Get the DPI, if it's invalid then set to the default of 110
dpi = getDPI();
if (dpi == 0) {
dpi = 110;
}
// The factor of 0.732 here is established by trial and error
// and seems to be the conversion factor between the units of pageViewX/Y
// and actual page units
factor = 0.732 / (dpi / 99);
firstRun = false;
}
var pgRect = this.getPageBox("Crop", 0);
var curView = eval(this.viewState.toSource());
// If nothing has changed since last time, then return
if ((curView.pageViewX == lastPageViewX) & (curView.pageViewY == lastPageViewY) & (curView.pageViewZoom == lastPageViewZoom)) {
return null;
}
// Keep track of the last values
lastPageViewX = curView.pageViewX;
lastPageViewY = curView.pageViewY;
lastPageViewZoom = curView.pageViewZoom;
// Get a zoom factor which is either the current zoom, or 1 if the current zoom is less than 1
var zoomFactor = curView.pageViewZoom < 1 ? 1 : curView.pageViewZoom;
// Calculate the new X and Y base positions based on the factor, the zoom and the current X and Y coords
var yPos = curView.pageViewY >=0 ? (curView.pageViewY + 4) * factor / curView.pageViewZoom : 0;
var xPos = curView.pageViewX >=0 ? (curView.pageViewX + 4) * factor / curView.pageViewZoom : 0;
// the Y values for pageViewY count down from the top of the page, whereas the Y values for locating objects
// on the page count up from the bottom. Take away the co-ords of the top to switch between them.
yPos = pgRect[1] - yPos;
return [xPos, yPos, zoomFactor];
}
function moveField(fldName, xPos, yPos, zoomFactor) {
var fld = this.getField(fldName);
var rect = fld.rect;
// Calculate the new position, based on the stored offsets and sizes, the new position and the zoom scaling factor
rect[0] = xPos + (fld._xOffset / zoomFactor);
rect[1] = yPos + (fld._yOffset / zoomFactor);
rect[2] = xPos + (fld._xOffset / zoomFactor) + (fld._xSize / zoomFactor);
rect[3] = yPos + (fld._yOffset / zoomFactor) - (fld._ySize / zoomFactor);
fld.rect = rect;
// Scale the text size by the zoom factor too
fld.textSize = fld._origTextSize / zoomFactor;
}
function moveAllFields() {
// Delays visually updating the fields while we move them all
this.delay = true;
newPos = calcNewBasePosition();
// If zoom/scroll position hasn't changed then do nothing
if (newPos == null) {
this.delay = false;
return;
}
[xPos, yPos, zoomFactor] = newPos;
// Move each of the main fields
moveField("btnPrev", xPos, yPos, zoomFactor);
moveField("btnDynamicToggle", xPos, yPos, zoomFactor);
moveField("btnNext", xPos, yPos, zoomFactor);
moveField("btnPlayPause", xPos, yPos, zoomFactor);
moveField("txtTime", xPos, yPos, zoomFactor);
// Move the many buttons that make up the slider
for (i = 0; i < timestamps.length; i += 1) {
moveField("btnSlider_" + i, xPos, yPos, zoomFactor);
}
// Updates the display of all fields now we've finished moving them
this.delay = false;
this.dirty = false;
}
function buttonUpColor() {
event.target.fillColor = blueColor;
event.target.textColor = redColor;
this.dirty = false;
}
function buttonDownColor() {
event.target.fillColor = redColor;
event.target.textColor = blueColor;
this.dirty = false;
}
function createButton(cName, caption, nPage, xOffset, yOffset, xSize, ySize, hidden, jsCodeOnDown, jsCodeOnUp) {
// Acquire the crop box (visible area) for the current page
var pgRect = this.getPageBox("Crop", nPage);
// Create array for size/location
var fldRect = [];
fldRect[0] = pgRect[0] + xOffset;
fldRect[1] = pgRect[0] + yOffset + ySize;
fldRect[2] = pgRect[0] + xOffset + xSize;
fldRect[3] = pgRect[0] + yOffset;
// Create the button
var oFld = this.addField( cName , "button", nPage, fldRect);
// Set the properties
if (oFld != null) {
oFld.buttonSetCaption(caption);
oFld.borderStyle == border.i;
oFld.strokeColor = color.black;
oFld.textSize = 20;
oFld.fillColor = blueColor;
oFld.textColor = redColor;
oFld.highlight = highlight.n // Stops Adobe changing the colours when we press the button, we do this manually
oFld.lineWidth = 0;
if (hidden) {
oFld.display = display.hidden;
}
oFld.setAction("MouseUp", jsCodeOnUp);
oFld.setAction("MouseDown", jsCodeOnDown);
// Store offsets and size in attributes so we can use them later to reposition the button
oFld._xOffset = xOffset;
oFld._yOffset = yOffset;
oFld._xSize = xSize;
oFld._ySize = ySize;
oFld._origTextSize = oFld.textSize;
}
return oFld;
}
function createSliderButton(cName, caption, nPage, xOffset, yOffset, xSize, ySize, hidden, jsCode) {
// Acquire the crop box (visible area) for the current page
var pgRect = this.getPageBox("Crop", nPage);
// Create array for size/location
var fldRect = [];
fldRect[0] = pgRect[0] + xOffset;
fldRect[1] = pgRect[0] + yOffset + ySize;
fldRect[2] = pgRect[0] + xOffset + xSize;
fldRect[3] = pgRect[0] + yOffset;
// Create the button
var oFld = this.addField( cName , "button", nPage, fldRect);
// Set the properties
if (oFld != null) {
oFld.buttonSetCaption(caption);
oFld.borderStyle == border.s; // Solid border
oFld.strokeColor = color.transparent;
oFld.textColor = redColor;
oFld.fillColor = blueColor;
oFld.lineWidth = 0;
if (hidden) {
oFld.display = display.hidden;
}
oFld.setAction("MouseEnter", jsCode);
// Store offsets and size in attributes so we can use them later to reposition the button
oFld._xOffset = xOffset;
oFld._yOffset = yOffset;
oFld._xSize = xSize;
oFld._ySize = ySize;
oFld._origTextSize = oFld.textSize;
}
return oFld;
}
function createTextbox(cName, contents, nPage, xOffset, yOffset, xSize, ySize, hidden) {
// Acquire the crop box (visible area) for the current page
var pgRect = this.getPageBox("Crop", nPage);
// Create array for size/location
var fldRect = [];
fldRect[0] = pgRect[0] + xOffset; // left x
fldRect[1] = pgRect[0] + yOffset + ySize; // top y
fldRect[2] = pgRect[0] + xOffset + xSize; // right x
fldRect[3] = pgRect[0] + yOffset; // bottom y
// Create Textbox on page
var oFld = this.addField( cName , "text", nPage, fldRect);
// Setup Textbox's Properties
if (oFld != null) {
oFld.value = contents;
oFld.readonly = true;
oFld.alignment = "center";
oFld.borderStyle == border.i;
oFld.textColor = redColor;
oFld.textSize = 16;
oFld.fillColor = blueColor;
oFld.lineWidth = 0;
if (hidden) {
oFld.display = display.hidden;
}
// Store offsets and size in attributes so we can use them later to reposition the button
oFld._xOffset = xOffset;
oFld._yOffset = yOffset;
oFld._xSize = xSize;
oFld._ySize = ySize;
oFld._origTextSize = oFld.textSize;
}
return oFld;
}
function getDPI(doc){
// Taken from https://community.adobe.com/t5/acrobat/is-there-a-way-to-read-the-user-s-page-display-resolution-preference-setting-from-javascript/td-p/9562886?page=1
if (doc == undefined) {
doc = this;
}
// get current view
var refView = eval(doc.viewState.toSource());
var pBox = doc.getPageBox("Crop", 0);
// Determine page width in inches
var pWidth = ((pBox[2] - pBox[0]) / 72);
// If pageViewZoomType 2 is "fit width" and that's all we need.
if (refView.pageViewZoomType != 2) {
// save current view to return to it so user won't notice pageViewZoomType change.
var curView = eval(doc.viewState.toSource());
// set control values to sample the zoom level at fitwidth on the target page. refView.pageViewPageNum= n;
refView.pageViewX = 0; //Ensure we don't somehow wind up on another page. Though I suspect a pageViewX of > 0 is impossible on fit width...
refView.pageViewY = 0; //Ensure we don't somehow wind up on another page.
refView.pageViewZoomType = 2;
// update view to get new zoom
doc.viewState = refView;
// grab a copy to inspect
refView = eval(viewState.toSource());
// restore previous view
doc.viewState = curView;
}
// initialize the media object to read pageWindowRect, because AcrobatJS...
console.println(this.media);
//compare pixel width of application page window area, the current zoom level,
// and the page width in inches to get user display DPI. Round to clean up FP errors; but +/- 1 PPI isn't the end of the world.
userDPI = Math.round((doc.pageWindowRect[2] - doc.pageWindowRect[0]) / refView.pageViewZoom / pWidth);
return userDPI;
}
function onSliderButtonEnter(index) {
unmarkSliderPart(lastSliderButtonLocation);
markSliderPart(index);
goToTimestepIndex(index);
lastSliderButtonLocation = index;
}
function addOCGsToArray() {
var ocgs = this.getOCGs();
var ocg_name_to_ocg = {};
// Iterate only once over the list of OCGs, creating a dict
// mapping OCG name to OCG object
for (var i = 0; i < ocgs.length; i += 1) {
ocg_name_to_ocg[ocgs[i].name] = ocgs[i];
}
// Iterate over the list of timestamps, setting the .ocg
// property to the OCG object using the dict created above
for (i = 0; i < timestamps.length; i += 1) {
timestamps[i].ocg = ocg_name_to_ocg[timestamps[i].ocg_name];
}
}
//
// Main code - run on document open
//
// Put the actual OCG references into the timestamps array
addOCGsToArray();
// Create main UI components
var overall_left = 10;
var overall_top = -10;
createButton("btnDynamicToggle", "", 0, overall_left, overall_top - 25, 36, 36, false, "toggleDynamic();", "");
createButton("btnPrev", "<<", 0, overall_left + 40, overall_top - 25, 36, 36, true, "buttonDownColor();", "buttonUpColor(); prevTimestep();");
createButton("btnPlayPause", ">", 0, overall_left + (2 * 40), overall_top - 25, 36, 36, true, "", "playPause();");
createButton("btnNext", ">>", 0, overall_left + (3 * 40), overall_top - 25, 36, 36, true, "buttonDownColor();", "buttonUpColor(); nextTimestep();");
createTextbox("txtTime", "", 0, overall_left, overall_top - 65, 156, 20, true);
// Set font and text to get plane logo on toggle button
var btn = this.getField("btnDynamicToggle");
btn.textFont = font.ZapfD;
// We're setting a custom textSize for this button to make the plane large and easily visible
// We need to set the _origTextSize attribute too, as that is used when resizing the buttons
// when zooming
btn.textSize = 30;
btn._origTextSize = 30;
btn.buttonSetCaption("(");
btn.userName = "Enter fly-through mode";
btn.textColor = blueColor;
btn.fillColor = redColor;
// Create many small buttons for the slider
var smallButtonSize = 156 / timestamps.length;
for (i = 0; i < timestamps.length; i += 1) {
createSliderButton("btnSlider_" + i, "", 0, overall_left+(smallButtonSize*i), overall_top, smallButtonSize, 20, true, "onSliderButtonEnter(" + i + ");");
}
// Move all fields at start up
moveAllFields();
// Set up timer to move all fields at 1 second intervals
moveTimer = app.setInterval("moveAllFields()", 1000);
// Stop timer on document close
this.setAction("WillClose", "app.clearInterval(moveTimer);");
// Mark doc as not having changed, so it doesn't say it needs saving
this.dirty = false;
</Javascript>
<LayerTree displayOnlyOnVisiblePages="true">
<Layer id="background" name="Background chart"/>
<Layer id="Nelson" name="Nelson (non-interactive)"/>
<Layer id="Collingwood" name="Collingwood (non-interactive)"/>
<Layer id="Interactive Layers" name="Interactive Layers" initiallyVisible="false">
!!LAYER_LIST
</Layer>
</LayerTree>
<Page id="page_1">
<DPI>72</DPI>
<Width>841.698</Width>
<Height>595.14</Height>
<Georeferencing id="georeferenced">
<SRS>EPSG:4326</SRS>
<ControlPoint x="1" y="1" GeoY="50" GeoX="-0.8"/>
<ControlPoint x="1" y="595.14" GeoY="50.4" GeoX="-0.8"/>
<ControlPoint x="841.698" y="1" GeoY="50" GeoX="-0.1"/>
<ControlPoint x="841.698" y="595.14" GeoY="50.4" GeoX="-0.1"/>
</Georeferencing>
<Content>
<IfLayerOn layerId="background">
<Raster dataset="../Chart_Reprojected_Clip1.tif" georeferencingId="georeferenced"/>
<Raster dataset="../Chart_Reprojected_Clip2.tif" georeferencingId="georeferenced"/>
</IfLayerOn>
<IfLayerOn layerId="Nelson">
<Vector dataset="Nelson_10min.geojson" layer="Nelson_10min" georeferencingId="georeferenced" ogrStyleString='SYMBOL(c:#bd1b44,s:2,id:"ogr-sym-3")'>
<LogicalStructure displayLayerName="Nelson" fieldToDisplay="time"/>
</Vector>
<VectorLabel dataset="Nelson_Hourly.geojson" layer="Nelson_Hourly" georeferencingId="georeferenced" ogrStyleString='LABEL(t:{time_str},c:#bd1b44,s:24pt,p:4,dx:7mm,bo:1)'/>
<VectorLabel dataset="Nelson_FirstPoint.geojson" layer="Nelson_FirstPoint" georeferencingId="georeferenced" ogrStyleString='LABEL(t:"Nelson",c:#bd1b44,s:24pt,p:2,dy:10mm,bo:1)'/>
<Vector dataset="Nelson_Lines.geojson" layer="Nelson_Lines" georeferencingId="georeferenced" ogrStyleString='PEN(c:#bd1b44,w:5px)'/>
</IfLayerOn>
<IfLayerOn layerId="Collingwood">
<Vector dataset="Collingwood_10min.geojson" layer="Collingwood_10min" georeferencingId="georeferenced" ogrStyleString='SYMBOL(c:#0d0d8e,s:2,id:"ogr-sym-3")'>
<LogicalStructure displayLayerName="Nelson" fieldToDisplay="time"/>
</Vector>
<VectorLabel dataset="Collingwood_Hourly.geojson" layer="Collingwood_Hourly" georeferencingId="georeferenced" ogrStyleString='LABEL(t:{time_str},c:#0d0d8e,s:24pt,p:4,dx:7mm,bo:1)'/>
<VectorLabel dataset="Collingwood_FirstPoint.geojson" layer="Collingwood_FirstPoint" georeferencingId="georeferenced" ogrStyleString='LABEL(t:"Collingwood",c:#0d0d8e,s:24pt,p:2,dy:10mm,bo:1)'/>
<Vector dataset="Collingwood_Lines.geojson" layer="Collingwood_Lines" georeferencingId="georeferenced" ogrStyleString='PEN(c:#0d0d8e,w:5px)'/>
</IfLayerOn>
<IfLayerOn layerId="Interactive Layers">
!!CONTENT
</IfLayerOn>
</Content>
</Page>
</PDFComposition>