<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div>You're probably going to be better off having a service render the GPS coordinates from the database using MapScript to generate an image.</div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><b><span style="font-weight: bold;">From:</span></b> Dante Fuster &lt;dante.fuster@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> geomoose-users@lists.sourceforge.net<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, September 23, 2010 6:37:04 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [Geomoose-users] Draw LineString<br></font><br>
Hey everyone,<br><br>I am trying 
to draw a linestring, i know the coordinates from GPS (in a database), and show in my map but nothing,&nbsp; I try with OpenLayers&nbsp; new Openlayers.Geometry.LinearRing ..., but i have probles with the MAP, how i get the map&nbsp; or there are functions&nbsp; in GeoMoose?<br>
<br>Anyone have some suggestions?<br><br>my test code is:<br><br>----------<br><style type="text/css">
<!--
 _filtered {margin:2cm;}
P {margin-bottom:0.21cm;}
-->
</style>
<p style="margin-bottom:0cm;">       print "&lt;script&gt;";</p>
<pre>        print "&lt;![CDATA[";
        print "map = new OpenLayers.Map('map');";
        print "var p = new OpenLayers.Geometry.Point(279496 ,8661317);
                                 GeoMOOSE.zoomToPoint(p.x,p.y,100);
                                 GeoMOOSE.addPopup(p.x,p.y,150,50,'&lt;b&gt;texto:&lt;/b&gt; &lt;br/&gt; $textocalculado');";
        print "var layer_style = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']);";
        print "layer_style.fillOpacity = 0.2;";
        print "layer_style.graphicOpacity = 1;";
        print "var style_blue = OpenLayers.Util.extend({}, layer_style);";
        print "style_blue.strokeColor = 'blue';";
        print "style_blue.fillColor = 'blue';";
        print "style_blue.graphicName = 'star';";
        print "style_blue.pointRadius = 10;";
        print "style_blue.strokeWidth = 3;";
        print "style_blue.rotation = 45;";
        print "style_blue.strokeLinecap = 'butt';";
        print "var vectorLayer = new OpenLayers.Layer.Vector('Simple Geometry', {style: layer_style});";
        print "var pointFeature = new OpenLayers.Feature(p, null, style_blue);";
        print "var pointFeature2 = new OpenLayers.Feature(p, null, style_blue);";
        print "map.addLayer(vectorLayer);";
        print "vectorLayer.addFeatures([pointFeature,pointFeature2]);";
        print "]]&gt;";
        print "&lt;/script&gt;";              
                     print "&lt;/results&gt;";        
</pre>
<br><br><br>--------<br>

<br>Thanks,<br>Dante
</div></div></blockquote><div style="position:fixed"></div>


</div><br>

      </body></html>