<!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">
Hi Richard,<br>
<br>
Maybe these examples could help :<br>
<br>
<a class="moz-txt-link-freetext" href="http://openlayers.org/dev/examples/select-feature-openpopup.html">http://openlayers.org/dev/examples/select-feature-openpopup.html</a><br>
<a class="moz-txt-link-freetext" href="http://openlayers.org/dev/examples/highlight-feature.html">http://openlayers.org/dev/examples/highlight-feature.html</a><br>
<br>
And you're right about the vector feature being the best method to
create icons by the way.<br>
<br>
Regards,<br>
<br>
Alexandre<br>
<br>
<br>
On 10-12-31 07:37 AM, Richard Ive wrote:
<blockquote
cite="mid:AANLkTi=Bju2fX27ESdAqLdH+2nB48KW+psQH1YtmJikd@mail.gmail.com"
type="cite">Hi All.<br>
<br>
I have a problem I'm trying to solve, but unfortunately I am not
having much luck so I was wondering whether anyone has seen this
before.<br>
<br>
I have created a map that plots hotels on a layer as vector
features. I have used the style property of the vector feature to
change the look of the icon depending on availability etc. The
problem I am having is that I want to hover over the hotels, and
on hover I want to display some rate information about that
particular hotel, alternatively I want to provide the same
information on click. I was trying to use the createPopup() method
on the vector, but, as the document states that returns NULL which
isn't much use. To my understanding a vector feature is the best
method of creating icons on the map and binding events to them
(please correct me if I am wrong), but I can't seem to work out a
solution for creating information popups.<br>
<br>
Does anyone have any ideas, or have had this problem themselves? I
am completely open to suggestion as I'm not convinced I'm using
OpenLayers correctly in this context. Also, sorry if I haven't
explained myself very well.<br>
<br>
Thanks for you help.<br>
<br clear="all">
Kind Regards,<br>
Richard Ive<br>
<br>
<style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dev@lists.osgeo.org">Dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-dev">http://lists.osgeo.org/mailman/listinfo/openlayers-dev</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
</body>
</html>