<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><br>
      <blockquote cite="mid:16EBD195B07B4DB18AD553344A45CDFC@pcawh2"
        type="cite">
        <div dir="ltr" align="left"><span class="734235521-02112012"><font
              color="#0000ff" face="Arial" size="2">By the way: How did
              you manage to show a tif in your browser?</font></span></div>
      </blockquote>
      <font size="2"><font face="Arial">I manage <font size="2">to show
            the tiff </font>only on <font size="2">Internet Explorer
            (using </font></font></font><font size="2"><font
          face="Arial"><font size="2">OpenLayers.Layer.Image)</font></font></font>,
      but it is not a problem because it is for a univerity exam.. <br>
      <blockquote cite="mid:16EBD195B07B4DB18AD553344A45CDFC@pcawh2"
        type="cite">
        <div dir="ltr" align="left"><span class="734235521-02112012"><font
              color="#0000ff" face="Arial" size="2">then you have to add
              the proj4js javascript library to your application.</font></span></div>
      </blockquote>
      Can you show me an example?<br>
      <br>
      <b>This is the Current Track Layer</b>:<br>
      new OpenLayers.Layer.PointTrack("Tracks", {<br>
                      projection: geographic,<br>
                      strategies: [new OpenLayers.Strategy.Fixed()],<br>
                      protocol: new OpenLayers.Protocol.HTTP({<br>
                          url: "track.kml",<br>
                          format: new OpenLayers.Format.KML({<br>
                              extractTracks: true,<br>
                              extractStyles: true<br>
                          })<br>
                      }),<br>
                      dataFrom: OpenLayers.Layer.PointTrack.TARGET_NODE,<br>
                      styleFrom:
      OpenLayers.Layer.PointTrack.TARGET_NODE,<br>
                      eventListeners: {<br>
                          "beforefeaturesadded": function(e) {<br>
                              // group the tracks by fid and create one
      track for<br>
                              // every fid<br>
                              var fid, points = [], feature;<br>
                              for (var i=0, len=e.features.length;
      i<len; i++) {<br>
                                  feature = e.features[i];<br>
                                  if ((fid && feature.fid !==
      fid) || i === len-1) {<br>
                                      this.addNodes(points, {silent:
      true});<br>
                                      points = [];<br>
                                  } else {<br>
                                      points.push(feature);<br>
                                  }<br>
                                  fid = feature.fid;<br>
                              }<br>
                              return false;<br>
                          }<br>
                      }<br>
                  })<br>
      <br>
      Many Thank's<br>
      Valerio<br>
      <br>
      <br>
      Il 02/11/2012 22:59, Arnd Wippermann ha scritto:<br>
    </div>
    <blockquote cite="mid:16EBD195B07B4DB18AD553344A45CDFC@pcawh2"
      type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <meta name="GENERATOR" content="MSHTML 8.00.6001.19328">
      <div dir="ltr" align="left"><span class="734235521-02112012"><font
            color="#0000ff" face="Arial" size="2">if you want reproject
            feature coordinates from EPSG:4326 (WGS84) to other
            projection than EPSG:900913 (SphericalMercator),</font></span></div>
      <div dir="ltr" align="left"><span class="734235521-02112012"></span> </div>
      <div dir="ltr" align="left"><span class="734235521-02112012"><font
            color="#0000ff" face="Arial" size="2">then you have to add
            the proj4js javascript library to your application.</font></span></div>
      <div dir="ltr" align="left"><span class="734235521-02112012"></span> </div>
      <div dir="ltr" align="left"><span class="734235521-02112012"><font
            color="#0000ff" face="Arial" size="2">By the way: How did
            you manage to show a tif in your browser?</font></span></div>
      <div dir="ltr" align="left"><span class="734235521-02112012"></span> </div>
      <div dir="ltr" align="left"><span class="734235521-02112012"><font
            color="#0000ff" face="Arial" size="2">Arnd</font></span></div>
      <div dir="ltr" align="left"><span class="734235521-02112012"></span> </div>
      <div dir="ltr" align="left"><span class="734235521-02112012"></span> </div>
      <br>
      <div dir="ltr" class="OutlookMessageHeader" align="left" lang="de">
        <hr tabindex="-1">
        <font face="Tahoma" size="2"><b>Von:</b>
          <a class="moz-txt-link-abbreviated" href="mailto:openlayers-users-bounces@lists.osgeo.org">openlayers-users-bounces@lists.osgeo.org</a>
          [<a class="moz-txt-link-freetext" href="mailto:openlayers-users-bounces@lists.osgeo.org">mailto:openlayers-users-bounces@lists.osgeo.org</a>] <b>Im
            Auftrag von </b>Riggi Valerio<br>
          <b>Gesendet:</b> Freitag, 2. November 2012 21:56<br>
          <b>An:</b> <a class="moz-txt-link-abbreviated" href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br>
          <b>Betreff:</b> [OpenLayers-Users] How To: Positionate WGS84
          tracks intoGauss-Boaga Map<br>
        </font><br>
      </div>
      Hi, I'm tring to track some gps data into a Gauss-Boaga map, but I
      don't manage to put the track on the right place, how can I do?<br>
      <br>
      <b>This is the Track layer</b>:<br>
      new OpenLayers.Layer.PointTrack("Tracks", {<br>
                      projection: geographic,<br>
                      strategies: [new OpenLayers.Strategy.Fixed()],<br>
                      protocol: new OpenLayers.Protocol.HTTP({<br>
                          url: "track.kml",<br>
                          format: new OpenLayers.Format.KML({<br>
                              extractTracks: true,<br>
                              extractStyles: true<br>
                          })<br>
                      }),<br>
                      dataFrom: OpenLayers.Layer.PointTrack.TARGET_NODE,<br>
                      styleFrom:
      OpenLayers.Layer.PointTrack.TARGET_NODE,<br>
                      eventListeners: {<br>
                          "beforefeaturesadded": function(e) {<br>
                              // group the tracks by fid and create one
      track for<br>
                              // every fid<br>
                              var fid, points = [], feature;<br>
                              for (var i=0, len=e.features.length;
      i<len; i++) {<br>
                                  feature = e.features[i];<br>
                                  if ((fid && feature.fid !==
      fid) || i === len-1) {<br>
                                      this.addNodes(points, {silent:
      true});<br>
                                      points = [];<br>
                                  } else {<br>
                                      points.push(feature);<br>
                                  }<br>
                                  fid = feature.fid;<br>
                              }<br>
                              return false;<br>
                          }<br>
                      }<br>
                  })<br>
      <br>
      <b>And this is the Gauss-Boaga</b><b> Projection</b>:<br>
          var options = {<br>
          isBaseLayer: true,<br>
          maxResolution: '0.84686783985005',<br>
          strategies: [new OpenLayers.Strategy.Fixed()],<br>
          displayInLayerSwitcher: true,<br>
          size: new OpenLayers.Size(8745, 6696),<br>
          numZoomLevels: 20<br>
          };<br>
      <br>
          var gauss = new OpenLayers.Layer.Image(<br>
                      'Gauss-Boaga',<br>
                      'CTR588140.tif',<br>
                      new OpenLayers.Bounds(2556348.9846319141797721,
      4227924.4383069388568401,
      2563754.8438914027065039,4233595.0653625745326281),       <?php
      //left,bottom,right,top ?><br>
                      new OpenLayers.Size(8745, 6696),<br>
                      options<br>
                  );<br>
    </blockquote>
    <br>
  </body>
</html>