[OpenLayers-Users] Pointradius reduces at select icon

Andreas Hocevar ahocevar at opengeo.org
Sat Apr 20 00:33:40 PDT 2013


You need to make sure that the pointRadius for select style or render
intent is correctly set. See e.g. the styleMap in this example:
http://openlayers.org/dev/examples/select-feature-multilayer.html

Andreas.

On Thu, Apr 18, 2013 at 3:57 PM, cmay <gufutomozytibyfe at tempomail.fr> wrote:
> Hi, When I select a Point Vector it reduces the pointradius (The assigned
> Icon gets smaller).
> How can I turn this off?
>
> This is the code I use for the selection:
>
>     var selectCtrl = new OpenLayers.Control.SelectFeature(lyrmarkers);
>     map.addControl(selectCtrl);
>     selectCtrl.activate();
>
>  lyrmarkers.events.on({
>         featureselected: function(e) {
>             createHtmlPopup(e.feature);
>         },
>         featureunselected: function(e) {
>             popup.close();
>         }
>     });
>
> regards, Chris
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Pointradius-reduces-at-select-icon-tp5047983.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list