Loading...
 
Skip to main content

History: CartoGraf_Map

Source of version: 73

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}

    {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}
        {template file="map_print.tpl"}
      {COND}
    {ANCHOR}
    {OVERLAY(top=5 left=350)}
      {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"}
    {OVERLAY}
    {OVERLAY(top=375 left=12)}
      {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}
        

History

Information Version
Tue 24 of Mar, 2015 17:32 GMT-0000 Jonny Bradley move the print tpl out of the mapId check 79
Tue 16 of Apr, 2013 15:27 GMT-0000 Jonny Bradley make legend anchor appear if no mapId but there is a sourceId (as in public maps) 78
Mon 25 of Mar, 2013 13:47 GMT-0000 Jonny Bradley add classes to the overlay divs 77
Sun 24 of Mar, 2013 08:54 GMT-0000 luciash d' being 🧙 Adjust position of the left pane icons to prevent IE10 Metro UI overlap 76
Sat 23 of Mar, 2013 17:46 GMT-0000 luciash d' being 🧙 label for Reset Zoom 75
Sat 23 of Mar, 2013 17:44 GMT-0000 luciash d' being 🧙 label for StreetView 74
Wed 20 of Mar, 2013 16:23 GMT-0000 Jonny Bradley log in link for anon in create map bit 73
Fri 11 of Jan, 2013 17:56 GMT-0000 Jonny Bradley moving buttons under zoom bar down a bit (the other one is in the css) 72
Mon 26 of Nov, 2012 17:03 GMT-0000 Jonny Bradley float create button left 71
Mon 26 of Nov, 2012 12:37 GMT-0000 Jonny Bradley proper clearfix html to separate layer checkboxes properly 70
Mon 26 of Nov, 2012 03:09 GMT-0000 Marc Laporte floatright 69
Mon 26 of Nov, 2012 02:38 GMT-0000 Marc Laporte simpler 68
Mon 26 of Nov, 2012 02:37 GMT-0000 Marc Laporte A new class to control this one 67
Mon 26 of Nov, 2012 02:28 GMT-0000 Marc Laporte MyMaps now merged with HomePage 66
Mon 26 of Nov, 2012 02:26 GMT-0000 Marc Laporte This is not in received screenshots 65
Fri 23 of Nov, 2012 17:49 GMT-0000 Jonny Bradley insertmode="Default" 64
Fri 23 of Nov, 2012 16:50 GMT-0000 Jonny Bradley clearfix after dupe & join buttons 63
Fri 23 of Nov, 2012 06:11 GMT-0000 Marc Laporte Moving layer selector in map slide-out. Will perhaps change again 62
Fri 23 of Nov, 2012 06:11 GMT-0000 Marc Laporte Moving layer selector in map slide-out. Will perhaps change again 61
Fri 23 of Nov, 2012 04:41 GMT-0000 Marc Laporte Add a MyMaps button next to "Create New" 60
Tue 20 of Nov, 2012 13:32 GMT-0000 Jonny Bradley replacing join module with tpl version (map_join.tpl) 59
Fri 09 of Nov, 2012 18:15 GMT-0000 luciash d' being 🧙 new pointer icon for Select/Move 58
Fri 09 of Nov, 2012 12:25 GMT-0000 Jonny Bradley adding delete button 57
Fri 09 of Nov, 2012 11:37 GMT-0000 Jonny Bradley add duplicate button for your own maps 56
Wed 07 of Nov, 2012 05:06 GMT-0000 luciash d' being 🧙 better arrangement 55