Loading...
 
Skip to main content

History: CartoGraf_Map

Source of version: 79 (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=Map)}
      {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>Create Map</strong><br><br>
              Please <a href="login">log in</a><br>
              to create a map
            </div>
          {COND}
          {COND(notempty="{{user}}")}
            {module
              label="Create New"
              name=tracker_input
              trackerId=3
              class="floatleft"
              hiddeninput=owner({{user}})
              location=mapBaseLocation:viewport
              success=redirect(Map?mapId=@itemId@&coordinates=@mapBaseLocation@&shareCode=@shareCode@&mapName=@mapName@)
            }
          {COND}
          <a class="mymaps floatright" href="HomePage">My Maps</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=Legend)}
          {template file="map_legend.tpl" mapId="{{mapId}}" shareCode="{{shareCode}}" trackerId=$profileobject:legend$}
       {ANCHOR}
    {COND}
    {COND(empty="{{mapId}}")}
      {COND(notempty="{{sourceId}}")}
        {ANCHOR(icon="styles/CartoGraf/img/btnLegende.png" label=Legend)}
          {template file="map_legend.tpl" mapId="{{sourceId}}" shareCode="{{shareCode}}" trackerId=4}
        {ANCHOR}
      {COND}
    {COND}

    {ANCHOR(icon="styles/CartoGraf/img/btnPartager.png" label=Share)}
      {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="Add Marker" streetview=poiImage insertmode="Default"}
          {module name=map_edit_features standard=0 hiddeninput="map({{mapId}}),finder({{user}})" trackerId=$profileobject:zones$ editdetail=1 insertmode="Default"}
        {HIDDEN}
      {COND}
      {template file="map_print.tpl"}
    {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="Point of Interest"}
      {COND}
      {mapcontrol type="mode_enable" mode="StreetView" icon="styles/CartoGraf/img/btnStreetView.png" label="Panorama"}
    {OVERLAY}
    {OVERLAY(bottom=10 left=12 class="left_icons")}
      {mapcontrol type="reset_zoom" icon="styles/CartoGraf/img/btnNaviguation_1.png" label="Reset Zoom"}
    {OVERLAY}
    {OVERLAY(class=layer_selector)}
      {module name=map_layer_selector baselayer=y optionallayers=n}
    {OVERLAY}
  {COLUMN}
{APPFRAME}