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
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
>>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
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
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
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