source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/kml_aggregate.kid @ 3431

Subversion URL:
Revision 3431, 861 bytes checked in by cbyrom, 12 years ago (diff)

Add functionality to determine what selections have been made in the
'Selections' tab and then use this data with a new template, kml_aggregate.kid,
to produce a kml doc will all the associated kml info in.

1<?xml version="1.0" encoding="UTF-8"?>
2<kml xmlns="" xmlns:py="">
3  <Folder>
4        <name>Aggregation of KML documents by NDG Portal</name>
5    <visibility>0</visibility>
6        <open>0</open>
7        <description>The NetworkLink KML resources are those selected by the user when creating the document in the NDG portal (include URL?)</description>
8    <for py:for="i in session['selectedItems']" py:strip="True">
9            <NetworkLink py:if="len(i) > 0">
10                <name>${i[2]}</name>
11                <visibility>0</visibility>
12                <open>0</open>
13                <description>${i[2]} - aggregated by the NDG Portal</description>
14                <refreshVisibility>0</refreshVisibility>
15                <flyToView>0</flyToView>
16                <Link>
17                        <href>
18                                ${i[1]}
19                        </href>
20                    </Link>
21        </NetworkLink>
22    </for>
23  </Folder>
Note: See TracBrowser for help on using the repository browser.