[OpenLayers-Users] Whole Polygon as a Marker. Is it possible ?

Christopher Schmidt crschmidt at metacarta.com
Thu Sep 20 20:41:15 EDT 2007


On Thu, Sep 20, 2007 at 06:03:36PM -0300, Luis F Silva wrote:
> Hi all
> 
> We have a map with , let's say , 23 states of a country.
> We want to be able to select individual ones by clicking over any position 
> of the state polygon.
> Is it possible or do we have to use (only) an icon for that ?

With the SelectFeature control, you can draw any polygon vector you want
and allow users to click it. There are several examples in the examples
directory.

http://openlayers.org/dev/examples/select-feature.html

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list