Re: [OpenLayers-Users] Hide some markers of a OpenLayers.Layer.Marker

2010-03-11 Thread helmi
have u tried lyr.markers[i].display(false) ? On Sat, Feb 20, 2010 at 1:43 AM, JuKiM wrote: > Hi, > > I have a couple of markers in a Marker Layer, and I would like to hide some > of them.. > > I've tried to do lyr.markers[i].onScreen=false, or > lyr.markers[i].display='none'.. But the markers ar

Re: [OpenLayers-Users] Map overview..

2009-11-11 Thread helmi
Try play around with parameter values in your OverviewMap, example: var layer = new OpenLayers.Layer.WMS( "Malaysia", "/tc/tilecache.cgi?", {layers: 'basemap', format: 'image/png' } ); var ov = new OpenLayers.Control.OverviewMap({minRatio: 16, mapOpt

Re: [OpenLayers-Users] Point in polygon

2009-11-03 Thread helmi
>>The error returned is *polygonFeature.intersects* is not a function have you tried polygonFeature.geometry.intersects() instead? On Wed, Nov 4, 2009 at 1:45 PM, Brad Spencer wrote: > Guys, I have created a vector polygon as follows: > > > > var parcel01 = new OpenLayers.Geometry.LinearRing(po

Re: [OpenLayers-Users] Highlighting changes in the KML layer

2009-11-03 Thread helmi
The idea from http://trac.openlayers.org/ticket/1259 {{{ You could create a selectStyle that could be passed to Control.SelectFeature quite easily: create a style object, read the "highlight" styles, create a FidFilter rule for every feature (or groups of features with the same style), use the acco

Re: [OpenLayers-Users] how to update POIs or markers on open street maps without refreshing the whole map

2009-10-30 Thread helmi
or few number of markers, what if I have more than one won't that be very consuming to the resources?! from what I understand I will have to keep a reference of all markers used. On Sat, Oct 31, 2009 at 4:43 AM, helmi wrote: > Refer this http://openlayers.org/pipermail/users/2009-June/0122

Re: [OpenLayers-Users] how to update POIs or markers on open street maps without refreshing the whole map

2009-10-30 Thread helmi
Refer this http://openlayers.org/pipermail/users/2009-June/012274.html My example code: function setLonLat(marker, lonlat) { var newPx = map.getLayerPxFromLonLat(newLonLat); marker.moveTo(newPx); } var marker = new OpenLayers.Marker(new OpenLayers.LonLat(102.2168, 3.09185), new OpenLayer