<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">My re-reply to message 1 "mosaic layer not displayng" below Phil Scadden message:<br><br>--- <b>Mer 6/3/13, openlayers-users-request@lists.osgeo.org <i><openlayers-users-request@lists.osgeo.org></i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>Da: openlayers-users-request@lists.osgeo.org <openlayers-users-request@lists.osgeo.org><br>Oggetto: Users Digest, Vol 78, Issue 23<br>A: openlayers-users@lists.osgeo.org<br>Data: Mercoledì 6 marzo 2013, 22:48<br><br><div class="plainMail">Send Users mailing list submissions to<br>    <a ymailto="mailto:openlayers-users@lists.osgeo.org" href="/mc/compose?to=openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    <a
 href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>or, via email, send a message with subject or body 'help' to<br>    <a ymailto="mailto:openlayers-users-request@lists.osgeo.org" href="/mc/compose?to=openlayers-users-request@lists.osgeo.org">openlayers-users-request@lists.osgeo.org</a><br><br>You can reach the person managing the list at<br>    <a ymailto="mailto:openlayers-users-owner@lists.osgeo.org" href="/mc/compose?to=openlayers-users-owner@lists.osgeo.org">openlayers-users-owner@lists.osgeo.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Users digest..."<br><br><br>Today's Topics:<br><br>   1. Re: mosaic layer not displayng (Phil Scadden)<br>   2. Re: Conversion of BBox for GetFeature Request (Jerome A. Wendell)<br>   3.
 Re: Conversion of BBox for GetFeature Request (Gery .)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 07 Mar 2013 09:02:55 +1300<br>From: Phil Scadden <<a ymailto="mailto:p.scadden@gns.cri.nz" href="/mc/compose?to=p.scadden@gns.cri.nz">p.scadden@gns.cri.nz</a>><br>To: <a ymailto="mailto:openlayers-users@lists.osgeo.org" href="/mc/compose?to=openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br>Subject: Re: [OpenLayers-Users] mosaic layer not displayng<br>Message-ID: <<a ymailto="mailto:5137A0EF.9090003@gns.cri.nz" href="/mc/compose?to=5137A0EF.9090003@gns.cri.nz">5137A0EF.9090003@gns.cri.nz</a>><br>Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"<br><br>On the geoserver layer preview, do a view source and compare with your <br>code. You might be able to track down the issue by taking this code and <br>gradually adding your bits. I would put
 my money on an issue with a <br>disconnect between the mozaic EPSG and you the EPSG that you are using <br>on your map. The image mozaic does not reproject on the fly so you must <br>use the same EPGS on your map.<br><br><font color="#4040ff">Hi Phil,<br>I've already tried to compare two codes, but without be able to integrate them in a working map. I'm quite beginner. I think you guessed with EPSG problem, I tried to put the imagemosaic layer in a map with the same layer's EPSG and now I can see my layer!<br>I understood that tiles inside imagemosaic must have same EPSG, but I didn't know that it doesn't support the reprojection on the fly.<br>I'll try to fit my code. Many thanks!! Bye bye.<br>Francesca</font><br><br><br><br><br>Notice: This email and any attachments are confidential.<br>If received in error please destroy and immediately notify us.<br>Do not copy or disclose the contents.<br><br><br><br>------------------------------<br><br>Message:
 2<br>Date: Wed, 6 Mar 2013 16:38:29 -0500<br>From: "Jerome A. Wendell" <<a ymailto="mailto:jawendell@digitalmapping.com" href="/mc/compose?to=jawendell@digitalmapping.com">jawendell@digitalmapping.com</a>><br>To: <<a ymailto="mailto:jawendell@digitalmapping.com" href="/mc/compose?to=jawendell@digitalmapping.com">jawendell@digitalmapping.com</a>>,    "'Gery .'" <<a ymailto="mailto:gamejihou@hotmail.com" href="/mc/compose?to=gamejihou@hotmail.com">gamejihou@hotmail.com</a>><br>Cc: 'OpenLayers User List' <<a ymailto="mailto:openlayers-users@lists.osgeo.org" href="/mc/compose?to=openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a>><br>Subject: Re: [OpenLayers-Users] Conversion of BBox for GetFeature<br>    Request<br>Message-ID: <009e01ce1ab2$f65ffdf0$e31ff9d0$@com><br>Content-Type: text/plain; charset="utf-8"<br><br>I was having a difficult time getting the code to work for a box
 selection, so I decided to set it up for selection on click.  The click selection actually works better for my particular situation.  The control is now returning features, but there seems to be a problem with adding them to the highlight layer.  The code that I am using is below:<br><br>var highlightLayer = new OpenLayers.Layer.Vector("Highlighted Features", {<br><br>                                                styleMap: myStyles,<br><br>                                                displayInLayerSwitcher: false,<br><br>                                                isBaseLayer:
 false<br><br>                                                }<br><br>                                );<br><br>                                OpenLayers.Control.myGetFeature = OpenLayers.Class(OpenLayers.Control.GetFeature,{<br><br>                                                               selectClick: function(evt){<br><br>                                                     
                          var layerSRSgeo = new OpenLayers.Projection('EPSG:4326');<br><br>                                                                                var baseSRSmer = new OpenLayers.Projection('EPSG:900913');<br><br>                                                                               var bounds = this.pixelToBounds(evt.xy).transform(baseSRSmer,layerSRSgeo);<br><br>                         
                                                      this.request(bounds, {single: this.single});<br><br>                                                               },<br><br>                                                    CLASS_NAME: 'OpenLayers.Control.myGetFeature'<br><br>                                });<br><br>                var myControl = new OpenLayers.Control.myGetFeature({<br><br> 
                               protocol: OpenLayers.Protocol.WFS.fromWMSLayer(mylayer),<br><br>                                                box: false,<br><br>                                                hover: false,<br><br>                                                maxFeatures: 40,<br><br>                                                clickTolerance: 1<br><br>         
       });<br><br>                myControl.events.register("featureselected", this, function(e) {<br><br>                                highlightLayer.addFeatures(e.features);<br><br>                });<br><br>                myControl.events.register("featureunselected", this, function(e) {<br><br>                                highlightLayer.removeFeatures(e.features);<br><br>                });<br><br>                map.addControl(myControl);<br><br>                myControl.activate();<br><br> <br><br>The error that I now get is
 below:<br><br><br><br>I have been working on troubleshooting this issue for quite a while and have been searching for an answer.  So far I have been unsuccessful in getting the selected features added to the highlight layer.<br><br> <br><br>Any suggestions that you might have are greatly appreciated.<br><br> <br><br>Thanks.<br><br> <br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130306/9beb8efe/attachment-0001.html" target="_blank">http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130306/9beb8efe/attachment-0001.html</a>><br>-------------- next part --------------<br>A non-text attachment was scrubbed...<br>Name: image001.png<br>Type: image/png<br>Size: 3270 bytes<br>Desc: not available<br>URL: <<a href="http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130306/9beb8efe/attachment-0001.png"
 target="_blank">http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130306/9beb8efe/attachment-0001.png</a>><br><br>------------------------------<br><br>Message: 3<br>Date: Wed, 6 Mar 2013 22:48:02 +0100<br>From: "Gery ." <<a ymailto="mailto:gamejihou@hotmail.com" href="/mc/compose?to=gamejihou@hotmail.com">gamejihou@hotmail.com</a>><br>To: "<<a ymailto="mailto:jawendell@digitalmapping.com" href="/mc/compose?to=jawendell@digitalmapping.com">jawendell@digitalmapping.com</a>>" <<a ymailto="mailto:jawendell@digitalmapping.com" href="/mc/compose?to=jawendell@digitalmapping.com">jawendell@digitalmapping.com</a>><br>Cc: OpenLayers User List <<a ymailto="mailto:openlayers-users@lists.osgeo.org" href="/mc/compose?to=openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a>><br>Subject: Re: [OpenLayers-Users] Conversion of BBox for GetFeature<br>    Request<br>Message-ID: <<a
 ymailto="mailto:DUB406-EAS18910474EFF529780E4A153B0E40@phx.gbl" href="/mc/compose?to=DUB406-EAS18910474EFF529780E4A153B0E40@phx.gbl">DUB406-EAS18910474EFF529780E4A153B0E40@phx.gbl</a>><br>Content-Type: text/plain; charset="us-ascii"<br><br>Hi Jerome,<br><br>Not sure here, but seems to me that the problem is the events.register, try this to see what is going on there:<br><br>myControl.events.register("featureselected", this, function(e) {<br>                                highlightLayer.addFeatures(e.features);<br>console.log("THIS HAS BEEN ADDED: " + e.features);<br>                });<br>                myControl.events.register("featureunselected", this, function(e) {<br>                               
 highlightLayer.removeFeatures(e.features);<br>console.log("THIS HAS BEEN DELETED: " + e.features);<br><br>Try some variants inside the parentheses of each console.log call.<br><br>Sent from my iBath<br><br>On Mar 6, 2013, at 22:38, "Jerome A. Wendell" <<a ymailto="mailto:jawendell@digitalmapping.com" href="/mc/compose?to=jawendell@digitalmapping.com">jawendell@digitalmapping.com</a>> wrote:<br><br>I was having a difficult time getting the code to work for a box selection, so I decided to set it up for selection on click.  The click selection actually works better for my particular situation.  The control is now returning features, but there seems to be a problem with adding them to the highlight layer.  The code that I am using is below:<br>var highlightLayer = new OpenLayers.Layer.Vector("Highlighted Features", {<br>                               
                 styleMap: myStyles,<br>                                                displayInLayerSwitcher: false,<br>                                                isBaseLayer: false<br>                                                }<br>                                );<br>                                OpenLayers.Control.myGetFeature = OpenLayers.Class(OpenLayers.Control.GetFeature,{<br> 
                                                              selectClick: function(evt){<br>                                                                               var layerSRSgeo = new OpenLayers.Projection('EPSG:4326');<br>                                                                                var baseSRSmer = new OpenLayers.Projection('EPSG:900913');<br>       
                                                                        var bounds = this.pixelToBounds(evt.xy).transform(baseSRSmer,layerSRSgeo);<br>                                                                               this.request(bounds, {single: this.single});<br>                                                               },<br>                 
                                   CLASS_NAME: 'OpenLayers.Control.myGetFeature'<br>                                });<br>                var myControl = new OpenLayers.Control.myGetFeature({<br>                                protocol: OpenLayers.Protocol.WFS.fromWMSLayer(mylayer),<br>                                                box: false,<br>                                                hover: false,<br>       
                                         maxFeatures: 40,<br>                                                clickTolerance: 1<br>                });<br>                myControl.events.register("featureselected", this, function(e) {<br>                                highlightLayer.addFeatures(e.features);<br>                });<br>                myControl.events.register("featureunselected", this, function(e) {<br>                       
         highlightLayer.removeFeatures(e.features);<br>                });<br>                map.addControl(myControl);<br>                myControl.activate();<br> <br>The error that I now get is below:<br><image001.png><br>I have been working on troubleshooting this issue for quite a while and have been searching for an answer.  So far I have been unsuccessful in getting the selected features added to the highlight layer.<br> <br>Any suggestions that you might have are greatly appreciated.<br> <br>Thanks.<br> <br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130306/1d1cd42f/attachment.html"
 target="_blank">http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130306/1d1cd42f/attachment.html</a>><br><br>------------------------------<br><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.osgeo.org" href="/mc/compose?to=Users@lists.osgeo.org">Users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br><br><br>End of Users Digest, Vol 78, Issue 23<br>*************************************<br></div></blockquote></td></tr></table>