<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
You need several steps.<br>
<br>
1. Create a temporary FeatureSource for an SDF<br>
2. Insert data into the temporary FeatureSource<br>
3. Create a temporary LayerDefinition that points to the temporary
FeatureSource<br>
4. Insert the temporary layer into the runtime map<br>
5. Refresh the map<br>
<br>
This is a generic recipe for building dynamic layers, redlining,
buffering, etc.<br>
There exist code that does this in the "buffer" function used in the
basic AJAX viewer.<br>
Look at the "buffer.[php,aspx,jsp]" file in:<br>
C:\Program
Files\MapGuideOpenSource2.0\WebServerExtensions\www\mapviewer[php,net,jsp]<br>
<br>
If you have trouble with one of the steps, please ask again.<br>
<br>
An easier way of dealing with it would be to create a layer that
displays ALL points.<br>
Then use the SQL WHERE statement as the layers "filter" property.<br>
This approach obviously has some limitations.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Carmelo Saffioti skrev:
<blockquote cite="mid:A0982AA88620484BB33D6A28F49938CE@carmelo"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.6000.16788" name="GENERATOR">
<style></style>
<div>
<div><font face="Arial" size="2">Hi everybody!</font></div>
<div><font face="Arial" size="2">I hope you can help me about this
problem I'm having since several days:</font></div>
<div> </div>
<div><font face="Arial" size="2">1) having x,y coordinates of a
point, resulting from a sql query, how can I display it at runtime on
the map?</font></div>
<div> </div>
<div><font face="Arial" size="2">2) having x,y coordinates of a
sequence of points, resulting from a sql query, how can I display them
at runtime on the map?</font></div>
<div> </div>
<div> </div>
<div> </div>
<div><font face="Arial" size="2">I really hope you can help me with
that</font></div>
<div><font face="Arial" size="2">Thank you very much in advance</font></div>
<div><font face="Arial" size="2">Carmelo</font></div>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
</body>
</html>