[OpenLayers-Users] Current Map Bounds Width, Height

2010-08-04 Thread Kalyan Kamepalli
Hi, How to get the current map bounds given that I have map object handle. The map API says getExtent returns the current view port bounds in lat lon. But, When I used this function , I get undefined. Is there any other options to get current map bounds and height , width values ??

Re: [OpenLayers-Users] Current Map Bounds Width, Height

2010-08-04 Thread Kalyan Kamepalli
Sorry. used getExtent on wrong instance. I used it on Layer not on map. Now used on map instance and It worked. But, I could not find any functions to get the width and height values of current map. Any suggestions and help are much appreciated. Thanks, Kalyan. On Wed, Aug 4, 2010 at 4:28 PM,

[OpenLayers-Users] split features

2010-08-04 Thread Chris Green
Hi all I am wondering if there is a way to use the split control to split line features programmatically rather than by a user identifying on a sketch layer where a split should be made? I can determine in javascript where I want to split the feature and I don't want the user involved -

Re: [OpenLayers-Users] adding custom controls to layer switcher?

2010-08-04 Thread Franz Buchinger
Hi Imran, if you want to extent the layer switcher with custom functionality, the cleanest way is to derive your own CustomLayerSwitcher class from Control.LayerSwitcher. You just need to redefine the redraw() method, where all the HTML of the Control is assembled.

Re: [OpenLayers-Users] Current Map Bounds Width, Height

2010-08-04 Thread Arnd Wippermann
Hi, you mean this? var winWidth = map.getSize().w; var winHeight = map.getSize().h; http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLa yers/Map-js.html Arnd _ Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im Auftrag von Kalyan

Re: [OpenLayers-Users] Current Map Bounds Width, Height

2010-08-04 Thread Kalyan Kamepalli
Yes. This is what I was looking at. Thanks for that Arnd and Franz. Cheers, On Wed, Aug 4, 2010 at 7:11 PM, Arnd Wippermann arnd.wipperm...@web.dewrote: Hi, you mean this? var winWidth = map.getSize().w; var winHeight = map.getSize().h;

[OpenLayers-Users] OpenLayers.Filter.Comparison.LIKE and singleChar

2010-08-04 Thread Arnd Wippermann
Hi Why is it not possible to use '.' (point for singleChar) in a OpenLayers.Filter.Comparison.LIKE? The Comparision filter 'like' seems not to work as expected. It's not possible to use an expression only with a point for a single char (.2) or a static string (22). It causes an error

Re: [OpenLayers-Users] Implementing a layer for a proprietary WMS-like service

2010-08-04 Thread Bart van den Eijnden (OSGIS)
It does not seem an ideal design to me. Is there no way to provide caching (maybe by setting the correct http headers) so that the backbuffer tile will come from the browser's cache? Or are your async requests using POST and not GET? Best regards, Bart I dropped my plans of extending

[OpenLayers-Users] changelayer event

2010-08-04 Thread Mengu
Hello everyone. I am listening the changelayer event on map.events like this: ctx.map.events.on({ changelayer: function(e) { if(e.property === visibility) { alert(e.object.baseLayer.name); } } }); the problem here is, when

Re: [OpenLayers-Users] changelayer event

2010-08-04 Thread Bart van den Eijnden (OSGIS)
Hi, use e.layer instead. It will contain the modified layer. Best regards, Bart Hello everyone. I am listening the changelayer event on map.events like this: ctx.map.events.on({ changelayer: function(e) { if(e.property === visibility) {

Re: [OpenLayers-Users] changelayer event

2010-08-04 Thread Mengu
Hello Bart, Thanks for the reply. I have tried e.layer.name and e.layer.map.baseLayer.name and both provides me the previously selected layer's name. Is there events that I should listen instead of map's changelayer event? Maybe there's something for LayerSwitcher? -- View this message in

Re: [OpenLayers-Users] changelayer event

2010-08-04 Thread Bart van den Eijnden (OSGIS)
Maybe check for the changebaselayer event and then use event.layer? Best regards, Bart Hello Bart, Thanks for the reply. I have tried e.layer.name and e.layer.map.baseLayer.name and both provides me the previously selected layer's name. Is there events that I should listen instead of

Re: [OpenLayers-Users] changelayer event

2010-08-04 Thread Franz Buchinger
Hi Mengu, I suppose you want to detect the newly activated baselayer in the layer switcher. If you activate a new baselayer in the layer switcher, you actually trigger 2 changelayer events: 1 for the old baselayer (because it gets invisible) and 1 for the new baselayer (because it gets visible).

Re: [OpenLayers-Users] clickTolerance on selectFeature?

2010-08-04 Thread Alex Brandsen
Hi Alexandre, thanks for your reply! I tried using OpenLayers.Handler.Feature.prototype.clickTolerance=100/1000/100; , but it makes no difference. It does get stored, because when I do alert(OpenLayers.Handler.Feature.prototype.clickTolerance); it does show the correct value. I also tried

Re: [OpenLayers-Users] Single Tile for the entire Map bounds

2010-08-04 Thread Stephen Woodbridge
Kalyan Kamepalli wrote: By the way, what is the parameter ration: 1 does ?? what are the valid values for it ?? Ratio: 1 requests an image the size of the viewport. Ratio:2 requests an image h*2 X w*2 so you can do some panning without redrawing the image, but at the cost of generating a

[OpenLayers-Users] Web-app with ablilty to save or send openlayers current map with written comments?

2010-08-04 Thread Robert Buckley
Hi, I am starting to program a web app which is based on having an openlayers map to serve information from Geoserver. I would like there to be a side bar which lets the users save the current map window and write a comment about the given map section or even sketch additional information

Re: [OpenLayers-Users] clickTolerance on selectFeature?

2010-08-04 Thread Alexandre Dube
Alex, My bad. the 'clickTolerance' of the GetFeature control has not the same purpose as the 'clickTolerance' of the Feature Handler : http://dev.openlayers.org/docs/files/OpenLayers/Handler/Feature-js.html#OpenLayers.Handler.Feature.clickTolerance Regards, Alexandre On 10-08-04 10:36

[OpenLayers-Users] IE 7 doesn't show my fluid map

2010-08-04 Thread Franz Buchinger
Hi, I want my openlayers map to fill the whole browser window, it should only leave 200px left and 150 px top offset for UI Elements. Here is my css for the map div: .fluid-map { position: absolute; left: 200px; right: 0px; margin: 0px;

[OpenLayers-Users] magnifier for openlayers map

2010-08-04 Thread Pierluigi Santin
Can someone give me some hints about how reproduce this effect http://www.nihilogic.dk/labs/mojomagnify/ on a open layers map? Pierluigi Santin * Fintel Engineering S.r.l. Sede Friuli: Via del Cotonificio, 129/b 33100 Udine UD

Re: [OpenLayers-Users] magnifier for openlayers map

2010-08-04 Thread Kris Geusebroek
Hi Pierluigi, My first unch would be to look at the transitionEffect attribute of a layer. Here the tiles are resized to fit the next zoomLevel before the new tiles are loaded. I guess you could use this effect to magnify a part of the layer Cheers Kris Met vriendelijke groet, Kind regards,

Re: [OpenLayers-Users] Web-app with ablilty to save or send openlayers current map with written comments?

2010-08-04 Thread BMcBride
Have you looked into the http://opengeo.org/community/suite/ OpenGeo Suite package? This includes a http://suite.opengeo.org/geoexplorer/ GeoExplorer application, which supports the ability for users to compose and publish maps based, which can be saved to a database and hyperlinked to.

Re: [OpenLayers-Users] IE 7 doesn't show my fluid map

2010-08-04 Thread Nathan Gerber
Not a fix, but rather a work around. Try setting a height and width to your div manually. It is likely to break your absolute positioning unless you setup a helper JavaScript function to detect what the width and height should actually be. -- Nathan Gerber On Wed, Aug 4, 2010 at 11:40 AM, Franz

Re: [OpenLayers-Users] IE 7 doesn't show my fluid map

2010-08-04 Thread Nathan Gerber
BY manually I meant to say pixel values. -- Nathan Gerber On Wed, Aug 4, 2010 at 1:57 PM, Nathan Gerber ngerber...@gmail.com wrote: Not a fix, but rather a work around. Try setting a height and width to your div manually. It is likely to break your absolute positioning unless you setup a

Re: [OpenLayers-Users] Implementing a layer for a proprietary WMS-like service

2010-08-04 Thread Franz Buchinger
caching is difficult, because its a single-tile, dynamically generated map image with a random url *ggrrr*. And the image isn't served directly, the mapimage url is embedded into an xml response with some other data. Furthermore we desire a dynamic image layer behaviour (=transition effects of

Re: [OpenLayers-Users] Web-app with ablilty to save or send openlayers current map with written comments?

2010-08-04 Thread Phil Scadden
I am starting to program a web app which is based on having an openlayers map to serve information from Geoserver. I would like there to be a side bar which lets the users save the current map window and write a comment about the given map section or even sketch additional information onto

Re: [OpenLayers-Users] Implementing a layer for a proprietary WMS-like service

2010-08-04 Thread christopher.schmidt
On Aug 4, 2010, at 5:17 PM, ext Franz Buchinger wrote: caching is difficult, because its a single-tile, dynamically generated map image with a random url *ggrrr*. And the image isn't served directly, the mapimage url is embedded into an xml response with some other data. Furthermore we

Re: [OpenLayers-Users] Vector layer returns entire data set

2010-08-04 Thread Rohan Parkes
My original response is still in moderation, so I should just report that I have discovered that I have to add the maxExtent property in the vector layer. It works properly now. Still, it’s surprising that none of the examples I saw needed to do that. I thought the maxExtent value would

[OpenLayers-Users] reports and map in pdf

2010-08-04 Thread Ricardo Rodríguez
hello all, I would like to know that there are libraries to create reports and maps in pdf or in html with the data and maps created in OpenLayers. that are easy to use or modification. thanks for your answers Ricardo Rodríguez Univalle ___ Users

[OpenLayers-Users] WFS render problem with WMS wrapDateLine=true

2010-08-04 Thread Sige
Hi All, I have a problem with rendering WFS feature near the dateline along with a WMS layer (with wrapDateLine=true). The feature location is: 173.71,-40.19. At first the feature is shown fine, but when the map is moved toward the West, at some point the feature disappeared. It likes like at

Re: [OpenLayers-Users] split features

2010-08-04 Thread Tim Schaub
Not currently documented as part of the API (should be), but LineString and MultiLineString geometries have a split method. http://dev.openlayers.org/docs/files/OpenLayers/Geometry/LineString-js.html#OpenLayers.Geometry.LineString.split If you have one feature named knife and another named

[OpenLayers-Users] How to prevent PanZoomBar clicks from propagating to Click control

2010-08-04 Thread Rohan Parkes
My map has a click control that allows users to re-centre the map by clicking on it. However, there is one drawback - it responds to clicks on the PanZoomBar control, creating a strange blend of panning and zooming when the user zooms. It doesn't respond to the Zoom In or Zoom Out icons - just