[OpenLayers-Dev] Vetor Feature Hover Informaion
Alexandre Dube
adube at mapgears.com
Mon Jan 3 09:06:41 EST 2011
Hi Richard,
Maybe these examples could help :
http://openlayers.org/dev/examples/select-feature-openpopup.html
http://openlayers.org/dev/examples/highlight-feature.html
And you're right about the vector feature being the best method to
create icons by the way.
Regards,
Alexandre
On 10-12-31 07:37 AM, Richard Ive wrote:
> Hi All.
>
> 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.
>
> 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.
>
> 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.
>
> Thanks for you help.
>
> Kind Regards,
> Richard Ive
>
>
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
--
Alexandre Dubé
Mapgears
www.mapgears.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20110103/80df4802/attachment.html
More information about the Dev
mailing list