<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
I had a similar task - of showing dynamic POIs and I chose to implement
it like this:<br>
- a Vector layer with KML data. <br>
- the path to the KML file is actually a path to a serverside script
wich generates KMLs.<br>
- on searchbox submit a javascript creates new parameters for the
serverside script<br>
- I force a layer refresh<br>
<br>
It works great - but it tends to crash Internet Explorer after a while
- because IE keeps deleted markers in memory (silly behaviour). You can
get around this by refreshing the whole page, but it's nasty.<br>
<br>
Let me know if you need some code examples.<br>
Regards,<br>
Adrian<br>
<br>
Nicholas Efremov-Kendall wrote:
<blockquote
 cite="mid:33fd44f90908010812t42aa058m82116ee16dc69f62@mail.gmail.com"
 type="cite">
  <div>Hi all,<br>
  </div>
  <div><br>
  </div>
  <div>I'm still trying to make a dynamic POI, or marker, or points
layer, whatever you want to call it, that changes the points in the map
in response to user's searches. I can't use mapserver or a
pre-programmed server-side option, so I'm forced to write my own gml or
wkt. I'm still not quite sure how to get this GML to OL and then
replace it by the next search.</div>
  <div><br>
  </div>
  <div>I think there are two options. One of which would be to send
data to a markers layer and have JS write the markers out. The other
would be to have php re-write the gml file on the server and
theoretically, this should create a new set of points each time the
search is submitted. Not sure what the best/easiest option would be
with respect to coding (either on the browser or server-side) or from a
performance perspective. Does anyone have any recommendations? I'm
basically copying a php/mysql kml tutorial and adapting it to GML (for
largely ideological reasons). I've just re-read the GML documentation,
and it states that the GML is meant to only be loaded once, so should I
be focusing on a dynamic marker layer or what?</div>
  <div><br>
  </div>
  <div>In effect, all I really want is a simple ajax function to load
the POI/markers that correspond to search criteria, such that every
search produces a unique (within a limited span of variation of
course). The maps centering won't really change, just the make up of
the sites displayed in the map. I can write the gml server side, and I
can send the request, but I'm not sure what to do with the call-back or
how to feed that info to OL.�</div>
  <div><br>
  </div>
  <div>Thank you in advance for any advice/help.</div>
  <div>(incidentally, I'd be willing to consider contracting someone to
do this)</div>
  <div><br>
  </div>
  <div>best,</div>
  <div>Nick</div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
  </pre>
</blockquote>
<br>
<br>
</body>
</html>