Loading...
 
Skip to main content

History: CartoGraf_FR10_Map

Source of version: 3 (current)

Copy to clipboard
            {APPFRAME(absolute=y hideleft=y hideright=y)}
  {COLUMN(width=100%)}
    {COND(notempty="{{shareCode}}")}
      {COND(notempty="{{mapId}}")}
        {page name=MapCanvasShare coordinates={{coordinates}} mapId={{mapId}} shareCode={{shareCode}} user={{user}}}
      {COND}
      {COND(empty="{{mapId}}")}
        {page name=MapCanvasShare coordinates={{coordinates}} mapId=0 shareCode={{shareCode}}}
      {COND}
    {COND}
    {COND(empty="{{shareCode}}")}
      {page name=MapCanvasSolo coordinates={{coordinates}} mapId={{mapId}} user={{user}}}
    {COND}
    {ANCHOR(icon="styles/CartoGraf/img/btnCarte.png" label=Carte)}
      {COND(notempty="{{mapName}}")}
        {template file="map_info.tpl" mapId="{{mapId}}" sourceId="{{sourceId}}" trackerId=$profileobject:maps$ title="{{mapName}}"}
      {COND}
      {COND(empty="{{mapId}}")}
        {COND(empty="{{shareCode}}")}
          {COND(empty="{{user}}")}
            <div class="notloggedin floatleft">
              <strong>Nouvelle carte</strong><br><br>
              SVP <a href="login">log in</a><br>
              to Nouvelle carte
            </div>
          {COND}
          {COND(notempty="{{user}}")}
            {module 
              label="Nouvelle carte" 
              name=tracker_input 
              trackerId=$profileobject:maps$ 
              class="floatleft"
              hiddeninput=owner({{user}}) 
              location=mapBaseLocation:viewport 
              success=redirect(Carte?mapId=@itemId@&coordinates=@mapBaseLocation@&shareCode=@shareCode@&mapName=@mapName@)
            }
          {COND}
          <a class="mymaps floatright" href="Accueil">Mes cartes</a>
        {COND}
        {COND(notempty="{{shareCode}}")}
          {template file="map_join.tpl" sourceId="{{sourceId}}" shareCode="{{shareCode}}" coordinates="{{coordinates}}" trackerId=$profileobject:maps$ mapName="{{mapName}}" owner="{{user}}"}
          {template file="map_duplicate.tpl" mapId="{{sourceId}}" shareCode="{{shareCode}}" coordinates="{{coordinates}}" trackerId=$profileobject:maps$ mapName="{{mapName}}"}
          <div class="clearfix"></div>
        {COND}
      {COND}
      {COND(notempty="{{mapId}}")}
        {template file="map_duplicate.tpl" mapId="{{mapId}}" coordinates="{{coordinates}}" trackerId=3 mapName="{{mapName}}"}
        {template file="map_delete.tpl" mapId="{{mapId}}" trackerId=3}
        <div class="clearfix"></div>
      {COND}
      {COND(notempty="{{shareCode}}")}
        {module name=map_layer_selector baselayer=n optionallayers=y}
      {COND}
    {ANCHOR}

    {COND(notempty="{{mapId}}")}
       {ANCHOR(icon="styles/CartoGraf/img/btnLegende.png" label=Légende)}
          {template file="map_legend.tpl" mapId="{{mapId}}" shareCode="{{shareCode}}" trackerId=$profileobject:legend$}
       {ANCHOR}
    {COND}

    {ANCHOR(icon="styles/CartoGraf/img/btnPartager.png" label=Partage)}
      {template file="map_edit_sharecode.tpl" mapId="{{mapId}}" sourceId="{{sourceId}}" shareCode="{{shareCode}}" coordinates="{{coordinates}}" trackerId=$profileobject:maps$ mapName="{{mapName}}"}
      {COND(notempty="{{mapId}}")}
        {HIDDEN()}
          {module name=tracker_input trackerId=$profileobject:pointsOfInterest$  hiddeninput="map({{mapId}}),finder({{user}})" location=poiLocation submit="Ajouter un repère" streetview=poiImage insertmode="Défaut"}
          {module name=map_edit_features standard=0 hiddeninput="map({{mapId}}),finder({{user}})" trackerId=$profileobject:zones$ editdetail=1 insertmode="Défaut"}
        {HIDDEN}
        {template file="map_print.tpl"}
      {COND}
    {ANCHOR}
    {OVERLAY(top=5 left=350 class="top_icons")}
      {mapcontrol type="pan_zoom" icon="styles/CartoGraf/img/btnNaviguation_2.png"}
      {COND(notempty="{{mapId}}")}
        {mapcontrol type="modify_feature" navigation=1 icon="styles/CartoGraf/img/btnPointer.png"}
        {mapcontrol type="draw_polygon" icon="styles/CartoGraf/img/btnOutils_5.png"}
        {mapcontrol type="draw_path" icon="styles/CartoGraf/img/btnOutils_4.png"}
        {mapcontrol type="mode_enable" mode="Tracker Input" icon="styles/CartoGraf/img/btnOutils_8.png" label="Repère"}
      {COND}
      {mapcontrol type="mode_enable" mode="StreetView" icon="styles/CartoGraf/img/btnStreetView.png"}
    {OVERLAY}
    {OVERLAY(bottom=10 left=12 class="left_icons")}
      {mapcontrol type="reset_zoom" icon="styles/CartoGraf/img/btnNaviguation_1.png"}
    {OVERLAY}
    {OVERLAY(class=layer_selector)}
      {module name=map_layer_selector baselayer=y optionallayers=n}
    {OVERLAY}
  {COLUMN}
{APPFRAME}