Re: [OpenLayers-Users] Slow marker rendering in IE

2008-12-10 Thread Jani Patokallio
Greetings, Ivan Grcic wrote: Hi, no matter what u do showing 1000features in IE will be slw! I suggest to try using cluster strategy! Any suggestions for a clustering algorithm that works on markers? OpenLayers.Strategy.Cluster seems to cover Vector features only. Cheers, -jani On

Re: [OpenLayers-Users] proxy and WMS getfeatureinfo

2008-12-10 Thread Ivan Grcic
Hola, as youre on the windows make sure you have python installed, and you have to change the script first line to #!C:\python\python.exe or similar Chau On Wed, Dec 10, 2008 at 8:23 AM, Javier Galán [EMAIL PROTECTED] wrote: First of all thanks for your answers Alexandre: I read the FAQ and I

Re: [OpenLayers-Users] Show the point behind the external graphic?

2008-12-10 Thread Christopher Schmidt
On Wed, Dec 10, 2008 at 02:11:58AM -0800, Salvaro wrote: Thanks, Christopher. Any prediction or idea to do anything like this? Seems like: http://trac.openlayers.org/wiki/three/MultipleSymbolizers To me. (OpenLayers 3.0 is future development, not curently actively planned; no estimated

Re: [OpenLayers-Users] Slow marker rendering in IE

2008-12-10 Thread Ivan Grcic
Hi, just make vector layers of points and style them with externalGraphic, depending on ponit attribute! cheers On Wed, Dec 10, 2008 at 1:54 PM, Jani Patokallio [EMAIL PROTECTED] wrote: Greetings, Ivan Grcic wrote: Hi, no matter what u do showing 1000features in IE will be slw! I

Re: [OpenLayers-Users] Show the point behind the external graphic?

2008-12-10 Thread Salvaro
Thanks, Christopher. Any prediction or idea to do anything like this? Christopher Schmidt-2 wrote: On Tue, Dec 09, 2008 at 05:41:03AM -0800, Salvaro wrote: Is possible show the point like a circle using externalGraphic? (Example: I put an image (16x16) in a white point with radius=20,

Re: [OpenLayers-Users] GetFeature Control

2008-12-10 Thread Andreas Hocevar
On Fri, Nov 28, 2008 at 12:30 PM, Phil Maloney [EMAIL PROTECTED] wrote: I'm looking for a toggable control that allows a user to click a basemap, submit a WFS getFeature request (or similar request that returns GML) and add the features to a vector layer. Does a control, that can achieve this

[OpenLayers-Users] getBounds().transform().toBBOX()

2008-12-10 Thread Heidt, Christopher M.
var bbox = bboxLayer.getFeatureById('customBoundingBox').geometry.getBounds().trans form(map.projection, map.displayProjection).toBBOX(); I need a string bbox in my displayProjection, but every time I run this my bounds changes. I assume the object is being transformed every time when all I

Re: [OpenLayers-Users] getBounds().transform().toBBOX()

2008-12-10 Thread Christopher Schmidt
On Wed, Dec 10, 2008 at 11:08:17AM -0500, Heidt, Christopher M. wrote: var bbox = bboxLayer.getFeatureById('customBoundingBox').geometry.getBounds().trans form(map.projection, map.displayProjection).toBBOX(); I need a string bbox in my displayProjection, but every time I run this my bounds

[OpenLayers-Users] Handler.Hover

2008-12-10 Thread Lehtonen, Mika
Hi, please help me understand. I just can't undestand how the hover handler's delay parameter works. http://dev.openlayers.org/releases/OpenLayers-2.7/doc/apidocs/files/OpenLayers/Handler/Hover-js.html Actually what I would like to accomplish is to restrict what happens during the mousemove

Re: [OpenLayers-Users] Handler.Hover

2008-12-10 Thread Alexandre Dube
Hi Mika, Instead of 'move', try 'pause' and set 'delay' to 100. Is that better ? Alexandre Lehtonen, Mika wrote: Hi, please help me understand. I just can't undestand how the hover handler's delay parameter works.

Re: [OpenLayers-Users] Handler.Hover

2008-12-10 Thread Lehtonen, Mika
Thanks Alexandre, that's just what I was looking for. It's just isn't so easy to find any documentation. I guess I should start digging more stuff straight from the code.. - mika - Alexandre Dube kirjoitti: Hi Mika, Instead of 'move', try 'pause' and set 'delay' to 100. Is that better ?

[OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Alexandre Dube
Hi list, I use a sandbox version of OpenLayers ( topp/wfs ). I'm trying featureserver for the first time and having some difficulties with transactions ( insert/update/delete ). Here's how I define my layer : var oSaveStrategy = new OpenLayers.Strategy.Save(); var szFSURL

[OpenLayers-Users] Adding popups to vector features

2008-12-10 Thread Heidt, Christopher M.
I have a vector feature that is created by reading in wkt. I want to add a popup to it. To do that I need: feature.data.popupSize = ... feature.data.popupContentHTML = ... feature.lonlat = ... First two are easy, third one not so much. Too bad the wkt parser doesn't add a central lonlat to the

Re: [OpenLayers-Users] Adding popups to vector features

2008-12-10 Thread Christopher Schmidt
On Wed, Dec 10, 2008 at 12:19:42PM -0500, Heidt, Christopher M. wrote: I have a vector feature that is created by reading in wkt. I want to add a popup to it. To do that I need: feature.data.popupSize = ... feature.data.popupContentHTML = ... feature.lonlat = ... First two are easy,

Re: [OpenLayers-Users] Adding popups to vector features

2008-12-10 Thread Heidt, Christopher M.
Lol, I assumed that since it inherited from feature it would be available but I now see that it is overwritten to return null. QUOTE: HACK - we need to decide if all vector features should be able to create popups I'm going to have to vote yes ;p -Original Message- From: Christopher

Re: [OpenLayers-Users] recenter on a vector layer with Cluster strategy on

2008-12-10 Thread Christopher Schmidt
On Wed, Dec 10, 2008 at 06:39:16PM +0100, Didrik Pinte wrote: Hi, I try to have a vector layer with a Cluster and Fixed strategy automatically recenter after the feature are added to the layer. It works fine with the Fixed strategy only but with the Cluster, it is just wrong ... Does

[OpenLayers-Users] Filters and OpenLayers.loadURL with vector-layers

2008-12-10 Thread Stephan Holl
Hello all, I am working with a Vector-Layer, which dynamically adds features to a Query-Layer. The feature-selection is done with a form on the website, which submits search-strings and I create a WFS-filter from the search-strings. This works, if I only have one filter (PropertyIsLike). Having

Re: [OpenLayers-Users] Adding popups to vector features

2008-12-10 Thread Heidt, Christopher M.
Very valid point. All I was really going for was a popup on select, so for me id probably try to tie cursor position into it. Perhaps that's more like a vector tooltip? -Original Message- From: Christopher Schmidt [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2008 1:05 PM To:

Re: [OpenLayers-Users] Adding popups to vector features

2008-12-10 Thread Christopher Schmidt
On Wed, Dec 10, 2008 at 01:23:20PM -0500, Heidt, Christopher M. wrote: Very valid point. All I was really going for was a popup on select, so for me id probably try to tie cursor position into it. Perhaps that's more like a vector tooltip? Right, so your question is how can I create a popup

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Alexandre Dube
Hi list, I've just tried the other 2 possibles formats that supports InputOutput within FeatureServer : KML and GeoRSS. They are also displaying features, but they both have an annoying problem : their feature's attributes. Instead of having attributes in a hash ( key is attribute name,

Re: [OpenLayers-Users] Adding popups to vector features

2008-12-10 Thread Heidt, Christopher M.
Yep, that's exactly what im doing. thanks I know I cant have to select controls open at once, but is there a way to add a hover select to that example? Basically I need to show an abridged description on hover and a fullout verbose description on click. -Original Message- From:

[OpenLayers-Users] Ol context menus?

2008-12-10 Thread Heidt, Christopher M.
I havent seen any right-click support in OL. Is there a reason for this or has it just never come up? I would love to be able to have a custom context menu like: feature.menu = { items:[{ text:'Item1', handler:function(){} },{

[OpenLayers-Users] Rotate Base Layer by 90, 180 and -90

2008-12-10 Thread Kumar Mettu
Hi,   I am looking for a way to rotate (just) base layer by 90, 180 and -90 degrees. Esentially when whole world map is rotated, world is rotated by 90, 180 and -90 degrees. Has anyone done this before with OpenLayers and has a suggestion? Thanks In Advance, Kumar.

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Andreas Hocevar
Hi Alexandre, Alexandre Dube wrote: Hi list, I use a sandbox version of OpenLayers ( topp/wfs ). I'm trying featureserver for the first time and having some difficulties with transactions ( insert/update/delete ). Here's how I define my layer : var oSaveStrategy = new

Re: [OpenLayers-Users] Ol context menus?

2008-12-10 Thread Christopher Schmidt
On Wed, Dec 10, 2008 at 02:32:28PM -0500, Heidt, Christopher M. wrote: I havent seen any right-click support in OL. Is there a reason for this or has it just never come up? I would love to be able to have a custom context menu like: There are many libraries out there that provide context

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Eric Lemoine
On Wed, Dec 10, 2008 at 8:42 PM, Andreas Hocevar [EMAIL PROTECTED] wrote: Hi Alexandre, Alexandre Dube wrote: Hi list, I use a sandbox version of OpenLayers ( topp/wfs ). I'm trying featureserver for the first time and having some difficulties with transactions ( insert/update/delete ).

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Alexandre Dube
Hi Andreas, First, many many thanks for your time ! I'm so glad you answered... Andreas Hocevar wrote: I am not sure how the FeatureServer response after a commit looks like. To investigate that further, you should set a breakpoint in Protocol.Save::onCommit. response.reqFeatures should

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Alexandre Dube
Eric Lemoine wrote: On Wed, Dec 10, 2008 at 8:42 PM, Andreas Hocevar [EMAIL PROTECTED] wrote: It seems to be that response.insertIds, and thus Strategy.Save, is Protocol.WFS-specific, isn't it? If I'm correct Alexandre should not rely on the save strategy at this point, and use

Re: [OpenLayers-Users] Handler.Hover

2008-12-10 Thread Eric Lemoine
On Wed, Dec 10, 2008 at 5:51 PM, Lehtonen, Mika [EMAIL PROTECTED] wrote: Thanks Alexandre, that's just what I was looking for. It's just isn't so easy to find any documentation. I guess I should start digging more stuff straight from the code.. r8484 is attempt to fix the doc. Thanks, --

[OpenLayers-Users] Static images, bounds and zoom

2008-12-10 Thread Florian Klumb
Hi, I'm using OpenLayers to develop a viewing application for medical images. So far I'm just using static images, i.e. I'm using the Image layer, and I'm a bit puzzled as to the interdependence of bounds, extent, resolution and all this stuff. I simply want to fit an image which might be

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Andreas Hocevar
Alexandre Dube wrote: Eric Lemoine wrote: On Wed, Dec 10, 2008 at 8:42 PM, Andreas Hocevar [EMAIL PROTECTED] wrote: It seems to be that response.insertIds, and thus Strategy.Save, is Protocol.WFS-specific, isn't it? If I'm correct Alexandre should not rely on the save strategy at this

[OpenLayers-Users] altUrl in getFullRequestString function

2008-12-10 Thread Liz Godwin
Hi there, I have noticed in getFullRequestString function in OpenLayers\Layer\HTTPRequest.js that the altUrl parameter is supposed to come out in OpenLayers 3.0. Is that still the plan? Bart van den Eijnden made mention in the lists one year ago today, but I haven't found a more recent mention

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Alexandre Dube
Andreas Hocevar wrote: Yes, but quite some efforts would be required. Reading the insertIds this is the format's job. Format.GeoJSON does not know about insertIds. The best thing to do here would be to subclass Format.GeoJSON and create e.g. a Format.GeoJSON.FeatureServer. The next thing

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Eric Lemoine
On Wed, Dec 10, 2008 at 9:02 PM, Alexandre Dube [EMAIL PROTECTED] wrote: Eric Lemoine wrote: On Wed, Dec 10, 2008 at 8:42 PM, Andreas Hocevar [EMAIL PROTECTED] wrote: It seems to be that response.insertIds, and thus Strategy.Save, is Protocol.WFS-specific, isn't it? If I'm correct

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Andreas Hocevar
Alexandre Dube wrote: Andreas Hocevar wrote: Yes, but quite some efforts would be required. Reading the insertIds this is the format's job. Format.GeoJSON does not know about insertIds. The best thing to do here would be to subclass Format.GeoJSON and create e.g. a

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Eric Lemoine
On Wed, Dec 10, 2008 at 9:59 PM, Alexandre Dube [EMAIL PROTECTED] wrote: Andreas Hocevar wrote: Yes, but quite some efforts would be required. Reading the insertIds this is the format's job. Format.GeoJSON does not know about insertIds. The best thing to do here would be to subclass

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Andreas Hocevar
I'm wrong again. Eric showed the right way to do it. Thanks Eric! You can pass a userCallback to the create function if you instantiate the protocol like that: new OpenLayers.Protocol.HTTP({ url: yourUrl, format: OpenLayers.Format.GeoJSON, // needs to read insertFids no extra

Re: [OpenLayers-Users] HTTP protocol with featureserver

2008-12-10 Thread Alexandre Dube
Eric Lemoine wrote: On Wed, Dec 10, 2008 at 9:02 PM, Alexandre Dube [EMAIL PROTECTED] wrote: Eric Lemoine wrote: On Wed, Dec 10, 2008 at 8:42 PM, Andreas Hocevar [EMAIL PROTECTED] wrote: It seems to be that response.insertIds, and thus Strategy.Save, is Protocol.WFS-specific,

[OpenLayers-Users] Firebug and OL

2008-12-10 Thread Jay Douillard
I've been having trouble debug my openlayers code with firebug. I thought I was doing something fundamentally wrong, but then I checked the demo map on the openlayers homepage and the same code that did not work with my map worked just fine.. for example map.layers.length should = a number in

[OpenLayers-Users] wfs feature geometry based on one attribute value

2008-12-10 Thread Lehtonen, Mika
Hi, what is the easiest and the less performance consuming method to retrieve a geometry (actually the bounds would be enough) if I know an attribute value on that particular feature and I also know that there is only one feature having that particular attribute value? Layer is WFS and is

Re: [OpenLayers-Users] Firebug and OL

2008-12-10 Thread Christopher Schmidt
On Wed, Dec 10, 2008 at 03:30:47PM -0800, Jay Douillard wrote: I've been having trouble debug my openlayers code with firebug. I thought I was doing something fundamentally wrong, but then I checked the demo map on the openlayers homepage and the same code that did not work with my map

Re: [OpenLayers-Users] Firebug and OL

2008-12-10 Thread Jay Douillard
Thanks Chris! I knew it was some ridiculously simple javascript concept I had missed! Time to spend more time actually LEARNING javascript! jay - Original Message - From: Christopher Schmidt [EMAIL PROTECTED] To: Jay Douillard [EMAIL PROTECTED] Cc: OpenLayers Mailing List

Re: [OpenLayers-Users] wfs feature geometry based on one attribute value

2008-12-10 Thread Alexandre Dube
Hey Mika, Do you mean a feature that is currently shown on the map or any feature from your data source, including the ones currently on screen and the ones not generated yet ? Because if it's one on screen you could easily accomplish that by looping through your layer.features, searching in

Re: [OpenLayers-Users] wfs feature geometry based on one attribute value

2008-12-10 Thread Mika Lehtonen
Hi Alexandre, I guess you mean http://dev4.mapgears.com/bdga/bdgaWFS-T.html ? I have my data in PostGIS and I mean features that aren't shown in my map. Or actually they are shown, but through wms. I am already fetching some attributes after geometry comparison through wfs GetFeature, but I

Re: [OpenLayers-Users] recenter on a vector layer with Cluster strategy on

2008-12-10 Thread Didrik Pinte
On Wed, 2008-12-10 at 13:03 -0500, Christopher Schmidt wrote: On Wed, Dec 10, 2008 at 06:39:16PM +0100, Didrik Pinte wrote: Hi, I try to have a vector layer with a Cluster and Fixed strategy automatically recenter after the feature are added to the layer. It works fine with the