<?xml  version="1.0"  encoding="UTF-8"  ?>
<idoc title="My Dynamic Lund" icon="icon.png" >
    
    <!-- Part: Layer-->
    <layer>
        <info>
            This (example) layer shows dynamically some places in Lund.
        </info>
        <symbolLayer name="Places" dataset="dynamic.php.igeo" webServiceFormat="igeo" />
        <tag name="Example" />
    </layer>
    
    <handler id="dataloaded" action="layer.viewSelection(1); app.showMap();" />
    
    <!-- Part: Page -->
    <style fontSize="12" fontStyle="bold" alignX="middle" >
        My Dynamic Lund
    </style>
    <br/>
    <br/>
    This is some of my favorite places in Lund.
    <br/>
    <br/>
    <sectionheader title="Which types of places to show"/>
    <section value="false" id="pizza" title="Pizza" />
    <section value="false" id="pub" title="Pub" />
    <section value="false" id="fitness" title="Fitness" />
    <br/>
    <br/>
    <section title="Show content" action="layer.load({sublayer:'Places', handler:doc.handlers.dataloaded, arg:{pizza:doc.fields.pizza.value, pub:doc.fields.pub.value, fitness:doc.fields.fitness.value}})" />
</idoc>

