Openas2 how to fundamentally

#12010-12-19 19:09:11

Cruiser
Member
Registered: 2010-10-11
Posts: 14

OpenLayers application problem

Hello forum,

maybe someone can help me with the OpenLayers library. I am looking for a way to map the following scenario with OpenLayers:
- I have a ton of points that I would have to manually create on the map
- The points should be represented by different small graphics
- If you drive over a point, this should be underlaid with a circle by means of a hover effect (normally I would solve this with a class on the div for the graphic, which is rounded to a circle by moz-border-radius -... becomes)
- There should also be a popup under the point with a special text per point (the text is already available when the points are inserted manually)
- A Javascript function should be able to be called by clicking on the point

OpenLayers.Layer.Vector is best used for new projects. The OpenLayers.Control.SelectFeature class can also be used to register the corresponding actions. But what is the best way to get my circle under the graphic? At the moment I am creating the graphic with the following code

#22010-12-19 19:38:38

maxbe
Member
Registered: 2010-01-19
Posts: 3,209
Website

Re: OpenLayer's application problem

I once made something similar, but not with a hover over the map. My circle wanders from a menu bar with hover.

Create point with

this "point" is a circle, radius 13 pixels, filled with yellow, slightly transparent with a 2 pixel wide black border.

and then move this point to the appropriate coordinate with hover:

There is an illustrative example here (html and the javascript to go with it), but not necessarily typed with a view to understanding the source code ...

Regards, Max

#32011-01-27 10:13:22

Cruiser
Member
Registered: 2010-10-11
Posts: 14

Re: OpenLayer's application problem

Even if my question and answer was a little longer ago, I wanted to thank you again for the interesting solution. Good idea

#42011-05-02 19:16:35

Ghostrider82
Member
Registered: 2010-05-25
Posts: 132

Re: OpenLayer's application problem

I just looked for the same solution and tried the above, but with the result that I don't get any markers.
What is the reason for this? Now times gebrainstormt .... does anyone have a complete example? What I find there on your website doesn't bring me any markers either.