[OpenLayers-Users] get feature info of vector layer

2010-06-03 Thread Imran Rajjad
Hi, I have a vector layer containing some features. I want to view the attributes upon clicking them. Also I need to change the color of the feature of the layers when I select them or i hover my mouse over them. Which events do I need to register while creating this vector layer regards, --

[OpenLayers-Users] using conditional strokeWidth and external Graphics Cluster Strategy

2010-06-03 Thread Zac Spitzer
Anyone got an example switching between icons ( aka externalGraphics) and varying sized clustered stoked circles? basically I want to switch to using icons for non clustered points If guess it's something like using context rules in a stylemap? z -- Zac Spitzer Solution Architect / Director

[OpenLayers-Users] Problem displaying basic shapefile.....

2010-06-03 Thread mani2604
Hi everyone... Well I am jus trying to display a sample europe shapefile in OL and the thing is I have two map files; one of them retrieving the same shapefile from the POSTGIS db the other via. the path specified..I could successfully display the postgis one in OL

[OpenLayers-Users] select feature control not working

2010-06-03 Thread Imran Rajjad
I`m trying to run a function on clicking and highlighting of a vector layer. the events do not seem to trigger.. what am i doing wrong here? my code var report = function(e) { // it will be called when event is trigered from eventListeners console.log(e.type, e.feature.id);

Re: [OpenLayers-Users] select feature control not working

2010-06-03 Thread Eric Lemoine
On Thu, Jun 3, 2010 at 12:01 PM, Imran Rajjad raj...@gmail.com wrote: I`m trying to run a function on clicking and highlighting of a vector layer. the events do not seem to trigger.. what am i doing wrong here? my code var report = function(e) { // it will be called when event is

Re: [OpenLayers-Users] select feature control not working

2010-06-03 Thread Imran Rajjad
thanks for your reply I`m using the one that comes with geoserver 1.7.7 . not too sure about the version. But the select and highlight works. When I tried the code on my page.. only the highlight control was working with a highlight color different from the one in example. Later through console i

Re: [OpenLayers-Users] select feature control not working

2010-06-03 Thread Andreas Hocevar
Hi, the OpenLayers versions that ship with GeoServer only include the functionality that is needed for the GeoServer layer preview. Please download a full version from http://openlayers.org Regards, Andreas. On Jun 3, 2010, at 13:46 , Imran Rajjad wrote: thanks for your reply I`m using

Re: [OpenLayers-Users] select feature control not working

2010-06-03 Thread Imran Rajjad
All right and I replace the js file in geoserver directory with the new downloaded? will that be ok? On Thu, Jun 3, 2010 at 4:52 PM, Andreas Hocevar ahoce...@opengeo.org wrote: Hi, the OpenLayers versions that ship with GeoServer only include the functionality that is needed for the

Re: [OpenLayers-Users] select feature control not working

2010-06-03 Thread Andreas Hocevar
No, if you host your application off GeoServer it is better to place a full version in the www folder of your data dir and not touch the one that is included. -Andreas. On Jun 3, 2010, at 13:53 , Imran Rajjad wrote: All right and I replace the js file in geoserver directory with the new

Re: [OpenLayers-Users] get feature info of vector layer

2010-06-03 Thread Alexandre Dube
Hi Imran, See : http://www.openlayers.org/dev/examples/select-feature-openpopup.html http://www.openlayers.org/dev/examples/highlight-feature.html Regards, Alexandre Imran Rajjad wrote: Hi, I have a vector layer containing some features. I want to view the attributes upon clicking them.

Re: [OpenLayers-Users] select feature control not working

2010-06-03 Thread Imran Rajjad
ok I download the latest and deployed it from my application and now the map controls are not responding , instead the mouse control has gone to other divs. I think I have messed it up. I better try to use the one with GS.. or I think i`ll try to put the new js file in geoserver regards, On

Re: [OpenLayers-Users] Problem displaying basic shapefile.....

2010-06-03 Thread mani2604
ok i got the above problem sorted out. Now the thing is as I try to overlay the shapefile over the basemap {google maps}, somehow a white background is covering the entire base layer(even with the transparency on}.. U cud see the image below and i am trying altering the parameters with no

Re: [OpenLayers-Users] using conditional strokeWidth and external Graphics Cluster Strategy

2010-06-03 Thread Mike Adair
Zac, I've done that for the color and graphic like so: var HLDefaultStyle = new OpenLayers.Style({ fillColor: '${getStatusColor}', graphicName: '${getStatusShape}', pointRadius: 4 }, { context: {

[OpenLayers-Users] SelectFeature and overlapping feature

2010-06-03 Thread jrom
Hi all, I have a layer containing partial or complete overlapped feature. Using the SelectFeature control, i can only access the top feature. Is there a way to cycle through each feature under the mouse click ? With a key modifier for example : CTRL+click cycles over all the features ? Regards

[OpenLayers-Users] external layer switcher bgcolor

2010-06-03 Thread Tonton
hello i try tu use layer switcher at external of the map. it ok but ... there is a deep-blue color line up and down the layer switcher the same at this exemple : http://openlayers.org/dev/examples/layerswitcher.html how to change that with color from my css or color i want ? tonton

Re: [OpenLayers-Users] Using Proxy Host?

2010-06-03 Thread Ryan Williams
Hello all, I'd sent out a question earlier this week about using a proxy server with openlayers, so that I could make WMSGetFeatureInfo requests to a Geoserver WMS running on another domain. I got a response here and another on the Geoserver users group that were both helpful and have the

[OpenLayers-Users] Map and overlay are not properly aligned

2010-06-03 Thread Willy
Hi, I'm still trying to use geoscopio layer over google maps with spherical Mercator. The best result I've obtained is this: http://img513.imageshack.us/img513/2284/geoscopiovsgoogle.png I'm using the following code, someone is able to make this work? html xmlns=http://www.w3.org/1999/xhtml;

[OpenLayers-Users] Polygon swap inner/outer border when I zoom the map‏

2010-06-03 Thread Willy
Hi, I'm loading the following polygon layer from a gml file and overlay on a Google layer. If I zoom too much Inner and outer border swap (in this case there is only a border, but the behaviour is the same). Why? I've tried with a small polygon (5/6 point) and works properly. ?xml version=1.0

[OpenLayers-Users] Iphone Ipad

2010-06-03 Thread Valeria Muñoz
HI! exist some version of OL for see maps on Iphone and ipad? RG ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

Re: [OpenLayers-Users] Geoserver+OL 2.9.1 WMS get only 1 field instead of all attributes within a Popup

2010-06-03 Thread BMcBride
Take a look at the GetFeatureInfo Templates documentation here: http://docs.geoserver.org/stable/en/user/tutorials/GetFeatureInfo/index.html#tutorials-getfeatureinfo http://docs.geoserver.org/stable/en/user/tutorials/GetFeatureInfo/index.html#tutorials-getfeatureinfo . - Bryan R. McBride,

Re: [OpenLayers-Users] Map and overlay are not properly aligned

2010-06-03 Thread Ian Turton
It appears that your WMS server is too dumb to produce layers in anything but 4326 so I suspect you are out of luck. Ian ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users