[OpenLayers-Users] Delete title in layerswitcher

2010-07-21 Thread Rahn Hanno (rahn)
Hello list, I have a Layerswitcher in my OpenLayers Map. But in this LayerSwicther div is the title "overlays". I want to show the LayerSwicther without this title. Is it possible? How can I delete this title? Greetings Hanno -- Hanno Rahn, Dipl.-Ing.

[OpenLayers-Users] How to create legends for WMS Layers

2010-07-20 Thread Rahn Hanno (rahn)
Hello list, I try to show a legend for my base WMS layer. But I don't know how to realsie it. Is there a possibility in OpenLayers to show a legend in a div? I want to have a legend like this: 0 - 0.5 >0.5 - 1 >1 - 2 >2 - 3 >3 - 4 I know the GetLegendGraphic Parameter for WMS, but if I use this

[OpenLayers-Users] Perhaps a UMN Question

2010-06-14 Thread Rahn Hanno (rahn)
Hello list, I have a little question. Perhaps it is a UMN Mapserver Mapfile question, but perhaps you can help me a little bit. I try to show a WMS layer in OpenLayers. For this I made a mapfile. In this mapfile I realise a layer like this: LAYER NAME 'symbol' TYPE POLYGON CON

Re: [OpenLayers-Users] OPENLAYERS LayerChange

2010-06-10 Thread Rahn Hanno (rahn)
-8820 Wädenswil Tel +41 (0)58 934 5592 Fax +41 (0)58 934 5580 hanno.r...@zhaw.ch www.iunr.zhaw.ch/geoinformatik -Ursprüngliche Nachricht- Von: Eric Lemoine [mailto:eric.lemo...@camptocamp.com] Gesendet: Donnerstag, 10. Juni 2010 14:12 An: Rahn Hanno (rahn) Cc: users@openlayers.org Betref

Re: [OpenLayers-Users] OPENLAYERS LayerChange

2010-06-10 Thread Rahn Hanno (rahn)
{ alert("visibility changed (" + e.layer.name + ")"); } } } ); It doesn't work. Thank you for your help. Greetings Hanno Rahn -- Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für

[OpenLayers-Users] OPENLAYERS LayerChange

2010-06-10 Thread Rahn Hanno (rahn)
w what to do now. Please can somebody give me a tip? Greetings Hanno Rahn -- Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen Fachstelle Geoinformatik Grüental, Postfach CH-8820 W

[OpenLayers-Users] LayerSwitcher Event

2010-06-10 Thread Rahn Hanno (rahn)
Hello, Today I try to realise a "trigger" for my LayerSwitcher. Something like "onLayerClick" or so. I want to start a function if I select/unselect a layer in the Layerswitcher. In my Layerswitcher I have a Layer. If I select this Layer, then I want to set the opacity from all other layers t

[OpenLayers-Users] Scalebar doesn't work

2010-04-29 Thread Rahn Hanno (rahn)
isplaySystem: 'metric', divisions: '2', subdivisions: '4' }); map.addControl(scalebar); I use OpenLayers 2.9. Hope that somebody can help me. Greetings Hanno Rahn -- Han

[OpenLayers-Users] Openlayers Scalebar

2010-04-29 Thread Rahn Hanno (rahn)
haps somebody can help me with that? Thank you for all tips. Greetings Hanno Rahn ------ Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen Fachstelle Geoinformatik Grüental, Postfach

[OpenLayers-Users] Problem with OpenLayers.Layer.WMS in Firefox

2010-04-26 Thread Rahn Hanno (rahn)
Hello, I have a little complicated Question. I try to realise a Layer with labels for Polygons. For this I use OpenLAyers 8 and UMN Mapserver. I make a Layer (TYPE ANNOTATION) in Mapfile. After this I define a layer like this: var be = new OpenLayers.Layer.WMS('Beschriftung', urlArray, {map:map

[OpenLayers-Users] Click event for 4 maps

2010-04-07 Thread Rahn Hanno (rahn)
ray, {map:mapFile,layers:layerName+",Seen",format:"image/png",EXCEPTIONS:"application/vnd.ogc.se_inimage"},{singleTile: true, ratio:1} ); This layer will be styled differently for each year with sld and the "mergeNewParams"-Function. Perhaps somebody can he

[OpenLayers-Users] GML from PostGIS

2010-04-06 Thread Rahn Hanno (rahn)
me an example? I think I must write a php-skript and use the PostGIS function "asGML" or not? Thank you for any ideas. Perhaps somebody has an gml example file? Greetings Hanno Rahn -- Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher

[OpenLayers-Users] Performance of different layers

2010-03-24 Thread Rahn Hanno (rahn)
ll be much faster to "build and show" the map in the browser with this version? Thank you Greetings Hanno Rahn -- Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressour

[OpenLayers-Users] Performance of different layers

2010-03-24 Thread Rahn Hanno (rahn)
Hello list, I have another question and need a little help. I try to realsie something like a monitoring webgis. For this I have a map with political boundaries. Always the same. And now I will show different indicators in different years. That means that I have some data in a postgis database

[OpenLayers-Users] LayerSwitcher

2010-03-02 Thread Rahn Hanno (rahn)
w the overlays in the Layer Switcher. Greetings and a lot of thanks for your help. Hanno Rahn -- Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen Fachstelle Geoinformatik Grü

Re: [OpenLayers-Users] LayerSwitcher

2010-02-25 Thread Rahn Hanno (rahn)
Switcher').style.color = "black"; OpenLayers.Util.getElement('mapSwitcher').style.position = "absolute"; OpenLayers.Util.getElement('mapSwitcher').style.top = "400"; OpenLayers.Util.getElement('mapSwitcher').style.left = "5

[OpenLayers-Users] LayerSwitcher

2010-02-24 Thread Rahn Hanno (rahn)
Hello list, Perhaps you can help me with another question. I try to make the layerswitcher more individual. First I want to show it at another place in an extra div and not at the right border. But I can't find where I have to do this. Then I want to change the color of the div. The darkblue i

[OpenLayers-Users] Paneldiv

2010-02-19 Thread Rahn Hanno (rahn)
Hello list, I try to realise a paneldiv with buttons for the navigation. For example the zoom and pan and so on. I made it like this: var zoomBox = new OpenLayers.Control.ZoomBox({ title: "Zoom In / Rechteckzoom" }); var navHistory = new OpenLayers.Control.NavigationHistory(); navHistory.previ

Re: [OpenLayers-Users] Adding Legends in OpenLayers

2009-12-07 Thread Rahn Hanno (rahn)
hello, I made it like this. First I define a function: function toggleMe(a){ var e=document.getElementById(a); if(!e)return true; if(e.style.display=="none"){ e.style.display="block" } else { e.style.display="none" } return true; } Then you must create a div object wh

[OpenLayers-Users] Change the style of scaletext

2009-11-30 Thread Rahn Hanno (rahn)
s it is possible too to change the text. I think it is enough to write 1:500.000 without the "k" and without the "scale =" For your help a lot of thanks. Greetings Hanno Rahn ------ Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hoch

[OpenLayers-Users] Save jpg from actual Mapview

2009-11-12 Thread Rahn Hanno (rahn)
Hello list, I have another question to you. Perhaps you can help me. I will have a simple imgage (jpg, png, gif, ...) from my mapview. I will have a button on my side and if the user presses this button you can save the actual mapview with all shown layers in the shown scale and so on as an

[OpenLayers-Users] Problem with LayerSwitcher

2009-11-02 Thread Rahn Hanno (rahn)
te the Gemeinden2 radio button. Perhaps somebody has another idea and can help me. Greetings and a lot of thanks. Hanno Rahn ------ Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natür

[OpenLayers-Users] Problem with layer switcher

2009-10-30 Thread Rahn Hanno (rahn)
{map:mapFile,layers:"lk_500",transparent: "true",format:"image/png",EXCEPTIONS:"application/vnd.ogc.se_inimage"},{singleTile: true, ratio:1} ); var relief3 = new OpenLayers.Layer.WMS("Relief",urlArray, {map:mapFile,layers:&q

[OpenLayers-Users] OpenLayers and Tilecache doesn't work with "mergeNewParams" Parameter

2009-10-12 Thread Rahn Hanno (rahn)
,format:"image/png",EXCEPTIONS:"application/vnd.ogc.se_inimage"} ); var sld_string=url+"jahr="+jahr+"&indikator="+indikator1+"&klassen="+klassen+"&vis="+vis+"&fusion="+jahr4+"&farbe="+farbe; w

[OpenLayers-Users] TileCache and Openlayers

2009-09-30 Thread Rahn Hanno (rahn)
mp;indikator="+indikator1+"&klassen="+klassen+"&vis="+vis+"&fusion="+jahr4+"&farbe="+farbe; wms.mergeNewParams({ SLD:sld_string}); I only get a white map without any polygons. Perhaps you can give me a little tip. I don'

[OpenLayers-Users] Performance

2009-08-30 Thread Rahn Hanno (rahn)
http://webgis.hsw.ch/GINES/Start.php Is it better to use tiles for this? Greetings Hanno Rahn ------ Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen Fachstelle Geoinfor

[OpenLayers-Users] preload layers

2009-08-25 Thread Rahn Hanno (rahn)
Hello list, I have a little tricky question. Perhaps somebody can help me. I show a layer in my map. This layer shows polygons at a specific time. Now you can click a button and the next time will be shown in the map. You can change the time back of course, too. In my solution there are tim

[OpenLayers-Users] Scale text outside the map

2009-08-05 Thread Rahn Hanno (rahn)
t for your help. Greetings Hanno Rahn ------ Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen Fachstelle Geoinformatik Grüental, Postfach CH-8820 Wädenswil Tel +41

[OpenLayers-Users] other images for zoom buttons

2009-07-30 Thread Rahn Hanno (rahn)
Rahn ------ Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen Fachstelle Geoinformatik Grüental, Postfach CH-8820 Wädenswil Tel +41 (0)58 934 5592 Fax +41 (0)58 934 5580 hanno.r...@zh

[OpenLayers-Users] ZoomBox Pan in two Mapdivs at the same time

2009-07-30 Thread Rahn Hanno (rahn)
. Sorry for my bad english and a lot of thanks for your help. Greetings Hanno Rahn -- Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen Fachstelle Geoinformatik Grüental

[OpenLayers-Users] LayerSwitcher outside the map

2009-06-30 Thread Rahn Hanno (rahn)
Hello list, Perhaps somebody can help me. I try to realise the LayerSwitcher outside the map. I read the example "layerswitcher". First I make my own div where I want to place the result. Then I realise a control like this: map.addControl(new OpenLayers.Control.LayerSwitcher({'

[OpenLayers-Users] remove PanZoomBar

2009-05-28 Thread Rahn Hanno (rahn)
Hello List, Perhaps somebody can give me a tip. I have a problem with the ZoomBar and the PanBar in OpenLayers. If I add a map in my div object there are always the ZoomBar and the pan Buttons in the left upper side of the map as default. I will have this buttons outside the map. I try to de

[OpenLayers-Users] ZoomToScale

2009-04-07 Thread Rahn Hanno (rahn)
Hello list, I have another question. I try to realise a textfield where I can type in the scale. I want to type a scale in a textbox or so and then the map should zoom to this scale. I try to make it with the function "zoomToScale" but I don't understand it. If I for example set map.zoomToS

[OpenLayers-Users] ArcGIS Server 9.3 example code?

2009-03-04 Thread Rahn Hanno (rahn)
Rahn ------ Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen Fachstelle Geoinformatik Grüental, Postfach CH-8820 Wädenswil Tel +41 (0)58 934 5592 Fax +41 (0)58 934 5580 hanno.r...@zh

[OpenLayers-Users] GetLegendGraphic in div Object like layer switcher

2009-03-04 Thread Rahn Hanno (rahn)
ngs Hanno Rahn ------ Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen Fachstelle Geoinformatik Grüental, Postfach CH-8820 Wädenswil Tel +41 (0)58 934 5592 Fax +41 (0)58 934 5580 han

[OpenLayers-Users] Problem with ArcGIS Server

2009-02-03 Thread Rahn Hanno (rahn)
55995.74049803408&WIDTH=763&HEIGHT=848 in the sld parameter works the file for the sld. I always get the error "parser failed". I don't know my mistake. Perhaps somebody can help me. Greetings Hanno Rahn -- Hanno Rah

[OpenLayers-Users] problems with ArcGIS Server 9.3 and sld Parameter

2009-01-27 Thread Rahn Hanno (rahn)
sld_string and mergeNewParams). It doesn't work. I always get the message: "parser failed" What can I do to make it work? Can somebody help me? Thank you a lot for your help. Greetings Hanno Rahn -- Hanno Rahn, Dipl.-Ing.

[OpenLayers-Users] mousemove should show attributes from database

2009-01-15 Thread Rahn Hanno (rahn)
find a solution. Perhaps somebody had already realised it and can give me some tipps and help. For your help a lot of thanks. I hope it will be possible. Greetings Hanno Rahn ------ Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule

Re: [OpenLayers-Users] Mouseover should show attributes from a database

2008-11-03 Thread Rahn Hanno (rahn)
. Greetings Hanno Rahn -- Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen Fachstelle Geoinformatik Grüental, Postfach CH-8820 Wädenswil Tel +41 (0)58 934 5592 Fax +41

[OpenLayers-Users] Mouseover should show attributes from a database

2008-11-03 Thread Rahn Hanno (rahn)
about this and can help me a little bit. A lot of thanks for all your fantastic help. Greetings Hanno Rahn -- Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen

[OpenLayers-Users] dynamic sld/php file from UMN mapserver and Openlayers

2008-10-06 Thread Rahn Hanno (rahn)
;EXCEPTIONS=application/vnd.ogc.se_inimage Now I will use it in OpenLayers. For this I use the following: var map = new OpenLayers.Map('map',options); var wms = new OpenLayers.Layer.WMS("Gemeinden","http://localhost/cgi-bin/mapserv.exe?&q

[OpenLayers-Users] legend like the layerswitcher control

2008-10-02 Thread Rahn Hanno (rahn)
Hello list, I have another question for you. Is it possible to get a legend in the style like the layer switcher or so? I will have an extra button. If i use this button the legend should open. I nedd something like the layer switcher style. If you change the layer, you can choose it from th

[OpenLayers-Users] dynamic sld-files with dynamic class sizes

2008-09-29 Thread Rahn Hanno (rahn)
Hello List, I try to realise something like a dynamic sld file. I want to get the map in different colors for different indicators. The data for the indicators is in an database. The colorization should be in quantities. For example regions with a value between 1-10 should be red, with a va

[OpenLayers-Users] SLD for Openlayers. Need some help.

2008-09-18 Thread Rahn Hanno (rahn)
Hello list, My english ist not very well but I will try it in English. :-) Perhaps somebody can help me. I try to use SLD Documents with OpenLayers. I have a WMS Polygon Layer in my page like this: var options = {