[OpenLayers-Users] Simple Styling Problem

2008-11-24 Thread Toby Rainthorpe
It still does not seem to work with the test I sent. I have tried vector_layer = new OpenLayers.Layer.Vector( {styleMap: new OpenLayers.StyleMap({fillColor: #991605}) ); And also: map.addLayer(vector_layer, {styleMap: new OpenLayers.StyleMap({fillColor:

[OpenLayers-Users] Zoom to Filter Extent

2008-11-24 Thread bmcbride
Hello, I am working on an OpenLayers / GeoServer project and am trying to utilize the Filter tool, which is built into the GeoServer 1.7.0 OpenLayers preview template. I would like to be able to zoom to the extent of the filtered features- so the user can basically enter a search, which

[OpenLayers-Users] DrawFeature and FeatureAdded event

2008-11-24 Thread Sture Dingsøyr
Hi all Have made a control in OL that allows the user to draw a regular polygon. Have also added an event that uses the featureadded event. But...when the user only click in the map..a small polygon is drawed, but the event trigger is not fired.. If the user draws a larger polygon the trigger

Re: [OpenLayers-Users] How to select on CTRL key + click

2008-11-24 Thread Alexandre Dube
Eric Lemoine wrote: Handler.Feature just has no keyMask support. Take a look at the attached patch (untested!). Cheers, -- Eric Hey Eric, That did the trick. Here's how the object looks like : this.handler = new OpenLayers.Handler.Feature( this, layer,

[OpenLayers-Users] Cluster Layers - Correct placemark format?

2008-11-24 Thread Allan Henderson
Hi there, I'm trying to implement a Cluster layer from a KML feed. The feed on it's own is working fine but all falls apart when I try a cluster strategy. So I'm thinking this method doesn't work - will clustering work on a geojson feed instead? If not - what's the best format to

Re: [OpenLayers-Users] Cluster Layers - Correct placemark format?

2008-11-24 Thread Christopher Schmidt
On Mon, Nov 24, 2008 at 03:44:40PM +, Allan Henderson wrote: Hi there, I'm trying to implement a Cluster layer from a KML feed. The feed on it's own is working fine but all falls apart when I try a cluster strategy. So I'm thinking this method doesn't work It should. Are you

Re: [OpenLayers-Users] Simple Styling Problem

2008-11-24 Thread Heidt, Christopher M.
var vectorStyleMap = new OpenLayers.StyleMap({ fillColor:'white', strokeColor:'red', strokeWidth:1 }); var vector_layer = ne OpenLayers.Layer.Vector(My layer Name,{styleMap:vectorStyleMap}); From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

[OpenLayers-Users] Control.Panel styling

2008-11-24 Thread Heidt, Christopher M.
im having some trouble stying the panel? positioning: i want it to be horzontal in the top right corner... cant seem to figure out the css required for that. icons: i have two selection tools in my panel, and i need them to have different icons... but they have the same class! Can i custom class

Re: [OpenLayers-Users] Obama Campaign - Mapping voters with Mapserver, PostGIS and Openlayers

2008-11-24 Thread Alexander Petkov
On Mon, Nov 24, 2008 at 2:28 AM, karsten vennemann [EMAIL PROTECTED] wrote: I wanted to share this with you all. http://www.terragis.net/2008/11/24/obama-campaign-mapping-voters-with-mapserver-postgis-and-openlayers/ Karsten ___ Users mailing list

Re: [OpenLayers-Users] Cluster Layers - Correct placemark format?

2008-11-24 Thread Allan Henderson
Hi Christopher, Here's the code: script type=text/javascript window.onload = function(){ var lon = -2.90; var lat = 55.16; var proj = new OpenLayers.Projection(EPSG:4326); var center = new OpenLayers.LonLat(lon, lat); var zoom = 4; var map, layer; var src = new

[OpenLayers-Users] blue marble-like alternative for a base layer?

2008-11-24 Thread Alexander Petkov
Does anyone know of a bathymetry/topography layer that can be used as an alternative to the blue marble raster dataset? Preferably public domain. I have seen the base raster layers used by DM Solutions, but don't know the orgi source for the data. Thanks in advance, Alex

Re: [OpenLayers-Users] Control.Panel styling

2008-11-24 Thread Alexandre Dube
This should be enough. .olControlPanel div { float:right; right: 0px; height: 24px; width: 24px; margin: 5px; } regards, Alexandre Heidt, Christopher M. wrote: im having some trouble stying the panel? positioning: i want it to be horzontal in the top right corner... cant

[OpenLayers-Users] Problem with layer visibility in Google Chrome

2008-11-24 Thread Hericksnake
Hello, I'm having a problem with visibility in google Chrome, IE and Firefox works fine. I have some points in a map and I change the visibility from them with a checkbox. In a onclick event I make: function MapVisibility(id){

Re: [OpenLayers-Users] Control.Panel styling

2008-11-24 Thread Heidt, Christopher M.
You'd think so, but in actuality it still puts it in the top left...but the icons are in reverse order. But more importantly, do you have any insight on how I can have two SelectFeature Controls in my panel with different icons? -Original Message- From: Alexandre Dube [mailto:[EMAIL

Re: [OpenLayers-Users] DrawFeature and FeatureAdded event

2008-11-24 Thread Lehtonen, Mika
Hej Sture, I have a little bit similar application and I am using the following event handler. It seems to be working just fine. vlayer.events.on({featureadded: offBuffer, featureunselected: offBuffer}); vlayer is the vector layer, offBuffer function for added feature event (+ for unselected

Re: [OpenLayers-Users] Control.Panel styling

2008-11-24 Thread Alexandre Dube
Heidt, Christopher M. wrote: You'd think so, but in actuality it still puts it in the top left...but the icons are in reverse order. Oh, I had this same problem with Firefox 3. Is that your actual browser ? But more importantly, do you have any insight on how I can have two

[OpenLayers-Users] DeleteFeature.js -- on click and ctrl+click

2008-11-24 Thread Alexandre Dube
Hi list, I asked on Friday about keyMask and got it working but unfortunately it couldn't help in the end. I wanted my control to have those behaviors : - on single click : unselect all features, then only select the clicked feature, or only unselect the clicked feature if that was to one

Re: [OpenLayers-Users] DeleteFeature.js -- on click and ctrl+click

2008-11-24 Thread Alexandre Dube
Daniel told me something I wanted to add : the correct and more standard behavior should looks like this : - on single click : unselect all features, then only select the clicked feature - on ctrl+click : select/unselect multiple features at the same time. See changes below, if interested.

Re: [OpenLayers-Users] Control.Panel styling

2008-11-24 Thread Heidt, Christopher M.
Putting the displayClass option on each of my SelectFeature controls did what I needed, thanx for the help. -Original Message- From: Alexandre Dube [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 2:25 PM To: Heidt, Christopher M. Cc: users@openlayers.org Subject: Re:

[OpenLayers-Users] maximum ZoomLevel for google maps

2008-11-24 Thread Rodolfo Moreno
Hi all, I am using openlayers for showing my mapguide layers and google maps as base layer. my problem is that the zoom in this limited until a certain scale. In my case the maximum scale that I can achieve is 1:18k (this is what the map shows). I did a comparison with the own google maps GUI

Re: [OpenLayers-Users] Zoom to Filter Extent

2008-11-24 Thread Eric Lemoine
Hi. Would listening to the vector layer's featuresadded events and do map.zoomToExtent(layer.getDataExtent()) in the listener work for you? Eric 2008/11/24, bmcbride [EMAIL PROTECTED]: Hello, I am working on an OpenLayers / GeoServer project and am trying to utilize the Filter tool, which

Re: [OpenLayers-Users] DrawFeature and FeatureAdded event

2008-11-24 Thread Eric Lemoine
Hi. So I guess when the user just does clicks (without mousemove between down and up) the feature isn't added to the layer either, is that correct? Anyway it sounds to me that you've found a bug. Could you open a ticket for this, with an example or a link to reproduce the problem? Eric

Re: [OpenLayers-Users] DrawFeature and FeatureAdded event

2008-11-24 Thread Eric Lemoine
Mika, Sture registers a listener on the draw feature control's featureadded event, not on the layer's. The former is triggered only when a feature is added as a result of feature drawn by the user through the draw feature control. The latter is triggered every time a feature is added to the

Re: [OpenLayers-Users] DrawFeature and FeatureAdded event

2008-11-24 Thread Lehtonen, Mika
Ok, that's right. Sorry for mixing things up. Anyway the possible bug doesn't seem to be occuring in that latter method. - mika - Eric Lemoine kirjoitti: Mika, Sture registers a listener on the draw feature control's featureadded event, not on the layer's. The former is triggered only when

Re: [OpenLayers-Users] Zoom to Filter Extent

2008-11-24 Thread bartvde
If you're using the GML parser have a look at: http://trac.openlayers.org/ticket/1613 Even with maxfeatures=1 Mapserver will give back the boundedBy element for the whole featureCollection, and you'll only end up downloading 1 feature. Best regards, Bart Hi, If you get an answer to this I

Re: [OpenLayers-Users] DrawFeature and FeatureAdded event

2008-11-24 Thread Sture Dingsøyr
Hi Mika and Eric...thanx for quick response :-) Have published an example on http://www.avinet.no/bugopenlayers/openlayers-2.7/examples/modify-feature.html Have added a control button to draw the regular polygon. ...if the user just clicks (no mouse movement between up and down) the feature