<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Pedro,<br>
    <br>
    I am pretty confident that it's absolutely impossible to display a
    DWG file in OL3 currently. Theoretically it could be possible to
    write a custom ol.format that parses any file type, but there is
    none right now.<br>
    I don't even believe that there is a way to display (directly) a DXF
    file either, even though it's a text format with documentation from
    Autodesk.<br>
    <br>
    So what to do? I would try GDAL's ogr2ogr to convert the DXF to
    GeoJSON, which is supported by OL3. However don't expect the result
    to look exactly like what you see in AutoCAD. <br>
    <br>
    Relevant links:<br>
    <a class="moz-txt-link-freetext" href="http://www.gdal.org/">http://www.gdal.org/</a><br>
    <a class="moz-txt-link-freetext" href="http://www.gdal.org/ogr2ogr.html">http://www.gdal.org/ogr2ogr.html</a><br>
    <br>
    Regards<br>
    Angelos<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 30/9/2015 13:16, Pedro Henriques
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAB1rVokfTSeFksOPsao_Snd9TWQNn6d0HtE0ZcuEYGvXwq2+DQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_default" style="font-family:times new
          roman,serif"><span id="result_box" class="" lang="en"><span
              class="">Hi,</span><br>
            <br>
            <span class="">This is my first</span> <span class="">post</span>
            <span class="">in this</span> mailing-list <span class="">and</span>
            <span class="">English is</span>n't<span class=""> my</span>
            <span class="">native language</span> <span class="">:)</span><br>
            <br>
            It's possible to add <span class=""> a</span> <span
              class="">CAD</span> <span class="">file (</span><span
              class="">DXF</span> <span class="">or</span> <span
              class="">DWG</span><span>)</span> inside one<span class="">
              map</span> using <span class="">OpenLayers</span> <span
              class="">3</span><span class="">?</span></span></div>
        <div>
          <div class="gmail_signature">
            <div dir="ltr">
              <div>​<span style="font-family:times new roman,serif"><br>
                </span><br>
                <span style="font-family:times new roman,serif"><span
                    id="result_box" class="" lang="en"><span class="">best
                      regards<br>
                    </span></span><b>Pedro Henriques</b><br>
                  <br>
                </span></div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>