<div>Tara,</div>
<div>&nbsp;</div>
<div>For SQL Server,</div>
<div>&nbsp;</div>
<div>Take a look at this article...<font size="2"><a href="http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=74882">http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=74882</a></font></div>
<div>
<p><font size="2">&nbsp;OR</font></p>
<p><font size="2">You can set up an ODBC link and connect to that link via Excel to produce a spreadsheet from which you could produce a text file.</font></p><font size="2">Linda Rawson</font><br>&nbsp;</div><br><br>
<div><span class="gmail_quote">On 10/9/07, <b class="gmail_sendername">Tara Athan</b> &lt;<a href="mailto:tara_athan@alt2is.com">tara_athan@alt2is.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I did finally run across the documentation on the textfile format here:<br><a href="http://trac.openlayers.org/wiki/MapViewerService">
http://trac.openlayers.org/wiki/MapViewerService</a><br>Thanks for your help- I have it working now.<br>Also thanks for the tip about working in Excel (or OpenOffice ;-) )- it<br>is actually possible to create the text file in notepad but you have to
<br>put the tabs in the right place and then they look the same as spaces,<br>so it is very inconvenient.<br>Working in a spreadsheet allows me to fill down for all the duplicate<br>icons, sizes, etc. instead of typing them out.
<br><br>Now if I can just figure out how to get the textfile from a database<br>query... anyone have an example of that?<br>Tara<br><br>Robert J Becraft wrote:<br>&gt; See my example at <a href="http://www.metaphaze.com/Avalon/AMII_world_map.htm">
http://www.metaphaze.com/Avalon/AMII_world_map.htm</a><br>&gt;<br>&gt; You will need to use Excell to create the txt file.&nbsp;&nbsp;Type each column<br>&gt; in the spreadsheet, then export as a .txt file.&nbsp;&nbsp;It puts tabs between<br>
&gt; the columns, and makes it readable to OpenLayers.&nbsp;&nbsp;Using notepad won&#39;t<br>&gt; work.&nbsp;&nbsp;The column headers are keywords that specify what type of data<br>&gt; is in that column.&nbsp;&nbsp;I don&#39;t have the link to the help page I found
<br>&gt; this on, it is on the OpenLayer&#39;s site though.<br>&gt;<br>&gt; I positioned the icon&#39;s over the first letter of the layer with the<br>&gt; country names on it.&nbsp;&nbsp;You can see this when zooming in.&nbsp;&nbsp;I did this by
<br>&gt; hand with the spreadsheet open and adjusted the LAT/LON values,<br>&gt; exporting and reloading the web-page until they were close.<br>&gt; The icon&#39;s themselves are 25x25 pels, I don&#39;t adjust the size.&nbsp;&nbsp;It
<br>&gt; seemed simpler to have them the actual size I wanted them to appear on<br>&gt; the map.&nbsp;&nbsp;They are transparent gifs.<br>&gt;<br>&gt; Eventually the text detail will come in from a dynamic piece of code I<br>&gt; haven&#39;t finished writing.&nbsp;&nbsp;One idea I&#39;m toying with is to build a menu
<br>&gt; in the popup that zooms to a variety of features for each of the<br>&gt; countries.&nbsp;&nbsp;The final product will depend on my time and how well it<br>&gt; works when I get to it.<br>&gt;<br>&gt; Erik Uzureau wrote:<br>
&gt;&gt; Here is example/textfile.txt<br>&gt;&gt;<br>&gt;&gt; point&nbsp;&nbsp;&nbsp;&nbsp;title&nbsp;&nbsp;&nbsp;&nbsp;description&nbsp;&nbsp;&nbsp;&nbsp;icon<br>&gt;&gt; 10,20&nbsp;&nbsp;&nbsp;&nbsp;my orange title&nbsp;&nbsp;&nbsp;&nbsp;my orange description<br>&gt;&gt; 2,4&nbsp;&nbsp;&nbsp;&nbsp;my aqua title&nbsp;&nbsp;&nbsp;&nbsp;my aqua description<br>
&gt;&gt; 42,-71&nbsp;&nbsp;&nbsp;&nbsp;my purple title&nbsp;&nbsp;&nbsp;&nbsp;my purple description&lt;br/&gt;is<br>&gt;&gt; great.&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.openlayers.org/api/img/zoom-world-mini.png">http://www.openlayers.org/api/img/zoom-world-mini.png</a><br>&gt;&gt;
<br>&gt;&gt;<br>&gt;&gt; You need to add new columns for iconSize and iconOffset, so something<br>&gt;&gt; like this:<br>&gt;&gt;<br>&gt;&gt; point&nbsp;&nbsp;&nbsp;&nbsp;title&nbsp;&nbsp;&nbsp;&nbsp;description&nbsp;&nbsp;&nbsp;&nbsp;icon&nbsp;&nbsp;&nbsp;&nbsp;iconSize&nbsp;&nbsp;&nbsp;&nbsp;iconOffset<br>&gt;&gt; 10,20&nbsp;&nbsp;&nbsp;&nbsp;my orange title&nbsp;&nbsp;&nbsp;&nbsp;my orange
<br>&gt;&gt; description&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://example.com/icon.jpg">http://example.com/icon.jpg</a>&nbsp;&nbsp;&nbsp;&nbsp;50,50&nbsp;&nbsp;&nbsp;&nbsp;20,20<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On 10/8/07, Tara Athan &lt;<a href="mailto:tara_athan@alt2is.com">tara_athan@alt2is.com
</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt;&gt;&nbsp;&nbsp;Erik- sounds good but how do I do that- is there an example<br>&gt;&gt;&gt; somewhere to<br>&gt;&gt;&gt; follow?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;&nbsp;Tara<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;
<br>&gt;&gt;&gt;&nbsp;&nbsp;Erik Uzureau wrote:<br>&gt;&gt;&gt;&nbsp;&nbsp;Hi Tara,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; What you want to do is to specyify iconOffset and iconSize columns in<br>&gt;&gt;&gt; your text file.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Erik
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On 10/8/07, Tara Athan &lt;<a href="mailto:tara_athan@alt2is.com">tara_athan@alt2is.com</a>&gt; wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;&nbsp;I am trying to add nondefault icons for markers using 
Layer.Text<br>&gt;&gt;&gt; (because I plan to have a large, dynamic set of markers)<br>&gt;&gt;&gt; I want the marker to be smaller than the default marker.<br>&gt;&gt;&gt; Passing a rescaled version of a larger marker caused it to be enlarged
<br>&gt;&gt;&gt; and stretched and look really bad.<br>&gt;&gt;&gt; I sort of got it working by placing a marker into a larger canvas, but<br>&gt;&gt;&gt; the tip of the marker doesn&#39;t seem to be in quite the right place.
<br>&gt;&gt;&gt; Is there some documentation on this, or another way to handle it?<br>&gt;&gt;&gt; Also, is there a way to specifiy the image file for all the markers<br>&gt;&gt;&gt; in a<br>&gt;&gt;&gt; text file without repeating the path in every line?
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Sample script at<br>&gt;&gt;&gt; <a href="http://alt2is.com/pages_html/openlayers/marker.html">alt2is.com/pages_html/openlayers/marker.html</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Thanks, Tara
<br>&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt; Users mailing list<br>&gt;&gt;&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>&gt;&gt;&gt; <a href="http://openlayers.org/mailman/listinfo/users">
http://openlayers.org/mailman/listinfo/users</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;&nbsp;--<br>&gt;&gt;&gt; My e-mail delivery has been unreliable lately, so I am asking for
<br>&gt;&gt;&gt; return receipts from all my email messages.<br>&gt;&gt;&gt; OK&#39;ing the return receipt lets me know that my message was delivered.<br>&gt;&gt;&gt; Thank you.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Tara Athan<br>
&gt;&gt;&gt; Principal, Alternatives to Invasive Species<br>&gt;&gt;&gt; <a href="mailto:tara_athan@alt2is.com">tara_athan@alt2is.com</a><br>&gt;&gt;&gt; 707-485-1198<br>&gt;&gt;&gt; PO Box 415<br>&gt;&gt;&gt; Redwood Valley, CA 95470
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt; Users mailing list<br>&gt;&gt;&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>&gt;&gt;&gt; <a href="http://openlayers.org/mailman/listinfo/users">
http://openlayers.org/mailman/listinfo/users</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Users mailing list<br>&gt;&gt; <a href="mailto:Users@openlayers.org">
Users@openlayers.org</a><br>&gt;&gt; <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt;<br><br><br>--<br>My e-mail delivery has been unreliable lately, so I am asking for
<br>return receipts from all my email messages.<br>OK&#39;ing the return receipt lets me know that my message was delivered.<br>Thank you.<br><br>Tara Athan<br>Principal, Alternatives to Invasive Species<br><a href="mailto:tara_athan@alt2is.com">
tara_athan@alt2is.com</a><br>707-485-1198<br>PO Box 415<br>Redwood Valley, CA 95470<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org
</a><br><a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br>