From Bhupendra.Singh1 at india.nec.com Tue Mar 3 06:01:43 2020 From: Bhupendra.Singh1 at india.nec.com (Bhupendra Singh) Date: Tue, 3 Mar 2020 11:01:43 +0000 Subject: [Geojs-users] Need help to highlight the area using Geojs Message-ID: Hi Geojs team, I have to implement the below functionality using GeoJS and I am new to the Geo JS so I need help to implement this. 1. The mouse pointer shall change to hand icon when the mouse pointer is in the area of the ROI and on the boundary of the ROI. 2. Highlight the ROI where the mouse pointer is, with 25% opaque color of the ROI`s line color. 3. Adhere to the color rules of the annotations while highlighting the ROI 4. Highlighting should be possible at any enlargement scale. Thanks & Regards, Bhupendra ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.manthey at kitware.com Tue Mar 3 08:46:45 2020 From: david.manthey at kitware.com (David Manthey) Date: Tue, 3 Mar 2020 08:46:45 -0500 Subject: [Geojs-users] Need help to highlight the area using Geojs In-Reply-To: References: Message-ID: This is straightforward. Here is a link with an example: https://opengeoscience.github.io/geojs/tutorials/editor/?src=pVLBSsNAEL33KwYVdgPrUqOFNqV6EDwJPXoQD9tk0kY32bC7rVbJvzubJhoEoeIpu2.evHn7MjtloVQ1LGCNRtKJf4wAKpNhAiendD8RdE-x8mgT-HhLYCInAvb0jeW0CcV3Y8oEZqMmmo92JGdcea.2aEmT-mVqUXlsEc6oxojW8nLCtxZ.5XZ11snWRu-JNuzq-HcHiLNAWZuKReRKZsor.kgngMfg-0pOe9-XjeieMuuh-Cd0OWCNeyhunkjwqdV3fq-xTQvAeWte8NZoQyGxlVbpCxODykOR-U0C8RBLwNstDpFlrdLC0ySeCSgE1AKeI1hcQy0dakw9ZnADYxlPIIGLQ2deaN3PPR2Pp-wb.psctTWH3Kx65ZR5CFPSUiwrHlYDd7QDsktflmbr0FQCOO58KxqCoHMb-7f-on3knGqtXGmyIi8w49HXGIAzzsKcZ3euw09lkUyd4yzdWmcsE8DWVq3CFjTHucrzI2zlSrv.-iqqDdrC99Y-AQ__ The style of whatever you are drawing can be changed based on a flag. When you hover over something, you set the flag and change the css to change the cursor. - David On Tue, Mar 3, 2020 at 6:01 AM Bhupendra Singh < Bhupendra.Singh1 at india.nec.com> wrote: > Hi Geojs team, > > > > I have to implement the below functionality using GeoJS and I am new to > the Geo JS so I need help to implement this. > > > > 1. The mouse pointer shall change to hand icon when the mouse pointer > is in the area of the ROI and on the boundary of the ROI. > > 2. Highlight the ROI where the mouse pointer is, with 25% opaque > color of the ROI`s line color. > > 3. Adhere to the color rules of the annotations while highlighting > the ROI > > 4. Highlighting should be possible at any enlargement scale. > > > > Thanks & Regards, > > Bhupendra > ------------------------------ > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. It shall not attach any liability > on the originator or NECTI or its affiliates. Any views or opinions > presented in this email are solely those of the author and may not > necessarily reflect the opinions of NECTI or its affiliates. Any form of > reproduction, dissemination, copying, disclosure, modification, > distribution and / or publication of this message without the prior written > consent of the author of this e-mail is strictly prohibited. If you have > received this email in error please delete it and notify the sender > immediately. > _______________________________________________ > Geojs-users mailing list > Geojs-users at public.kitware.com > https://public.kitware.com/mailman/listinfo/geojs-users > -- David Manthey R&D Engineer Kitware Inc. (518) 881-4439 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bhupendra.Singh1 at india.nec.com Tue Mar 3 09:34:16 2020 From: Bhupendra.Singh1 at india.nec.com (Bhupendra Singh) Date: Tue, 3 Mar 2020 14:34:16 +0000 Subject: [Geojs-users] Need help to highlight the area using Geojs In-Reply-To: References: Message-ID: Hi David, Thanks for your prompt reply. I really appreciate it. Thanks & Regards, Bhupendra From: David Manthey [mailto:david.manthey at kitware.com] Sent: 03 March 2020 22:47 To: Bhupendra Singh Cc: geojs-users at public.kitware.com Subject: Re: [Geojs-users] Need help to highlight the area using Geojs This is straightforward. Here is a link with an example: https://opengeoscience.github.io/geojs/tutorials/editor/?src=pVLBSsNAEL33KwYVdgPrUqOFNqV6EDwJPXoQD9tk0kY32bC7rVbJvzubJhoEoeIpu2.evHn7MjtloVQ1LGCNRtKJf4wAKpNhAiendD8RdE-x8mgT-HhLYCInAvb0jeW0CcV3Y8oEZqMmmo92JGdcea.2aEmT-mVqUXlsEc6oxojW8nLCtxZ.5XZ11snWRu-JNuzq-HcHiLNAWZuKReRKZsor.kgngMfg-0pOe9-XjeieMuuh-Cd0OWCNeyhunkjwqdV3fq-xTQvAeWte8NZoQyGxlVbpCxODykOR-U0C8RBLwNstDpFlrdLC0ySeCSgE1AKeI1hcQy0dakw9ZnADYxlPIIGLQ2deaN3PPR2Pp-wb.psctTWH3Kx65ZR5CFPSUiwrHlYDd7QDsktflmbr0FQCOO58KxqCoHMb-7f-on3knGqtXGmyIi8w49HXGIAzzsKcZ3euw09lkUyd4yzdWmcsE8DWVq3CFjTHucrzI2zlSrv.-iqqDdrC99Y-AQ__ The style of whatever you are drawing can be changed based on a flag. When you hover over something, you set the flag and change the css to change the cursor. - David On Tue, Mar 3, 2020 at 6:01 AM Bhupendra Singh > wrote: Hi Geojs team, I have to implement the below functionality using GeoJS and I am new to the Geo JS so I need help to implement this. 1. The mouse pointer shall change to hand icon when the mouse pointer is in the area of the ROI and on the boundary of the ROI. 2. Highlight the ROI where the mouse pointer is, with 25% opaque color of the ROI`s line color. 3. Adhere to the color rules of the annotations while highlighting the ROI 4. Highlighting should be possible at any enlargement scale. Thanks & Regards, Bhupendra ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. _______________________________________________ Geojs-users mailing list Geojs-users at public.kitware.com https://public.kitware.com/mailman/listinfo/geojs-users -- David Manthey R&D Engineer Kitware Inc. (518) 881-4439 ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bhupendra.Singh1 at india.nec.com Fri Mar 6 04:15:17 2020 From: Bhupendra.Singh1 at india.nec.com (Bhupendra Singh) Date: Fri, 6 Mar 2020 09:15:17 +0000 Subject: [Geojs-users] Need help to strokeopacity while creating multiple annotation Message-ID: Hi Geojs team, I observed one behaviour after implementing the Geo JS code , the code is only highlighting the latest created annotation all other annotation are not highlighting on mouse hover over. In the below example, ANO3 is changing the strokeopacity with mouse hover over if I will create the new annotation on the page then that will be only highlighted on mouse over hover. I need strokeopacity should work for all the created annotation. [cid:image001.png at 01D5F3E3.4DDA8530] Thanks & Regards, Bhupendra ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 24986 bytes Desc: image001.png URL: From david.manthey at kitware.com Fri Mar 6 13:24:10 2020 From: david.manthey at kitware.com (David Manthey) Date: Fri, 6 Mar 2020 13:24:10 -0500 Subject: [Geojs-users] Need help to strokeopacity while creating multiple annotation In-Reply-To: References: Message-ID: If you are using feature events, are you using mouseon/mouseoff or mouseover/mouseout? mouseon and mouseoff are for the "topmost" element (though a function can override what it means to be topmost). mouseover and mouseout apply to all features (see https://opengeoscience.github.io/geojs/apidocs/geo.event.feature.html#.event:mouseoff, etc.) On Fri, Mar 6, 2020 at 4:15 AM Bhupendra Singh < Bhupendra.Singh1 at india.nec.com> wrote: > Hi Geojs team, > > > > I observed one behaviour after implementing the Geo JS code , the code is > only highlighting the latest created annotation all other annotation are > not highlighting on mouse hover over. > > > > In the below example, ANO3 is changing the strokeopacity with mouse hover > over if I will create the new annotation on the page then that will be only > highlighted on mouse over hover. I need strokeopacity should work for all > the created annotation. > > > > > > > > Thanks & Regards, > > Bhupendra > ------------------------------ > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. It shall not attach any liability > on the originator or NECTI or its affiliates. Any views or opinions > presented in this email are solely those of the author and may not > necessarily reflect the opinions of NECTI or its affiliates. Any form of > reproduction, dissemination, copying, disclosure, modification, > distribution and / or publication of this message without the prior written > consent of the author of this e-mail is strictly prohibited. If you have > received this email in error please delete it and notify the sender > immediately. > -- David Manthey R&D Engineer Kitware Inc. (518) 881-4439 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 24986 bytes Desc: not available URL: From Bhupendra.Singh1 at india.nec.com Sun Mar 8 00:47:34 2020 From: Bhupendra.Singh1 at india.nec.com (Bhupendra Singh) Date: Sun, 8 Mar 2020 05:47:34 +0000 Subject: [Geojs-users] Need help to strokeopacity while creating multiple annotation In-Reply-To: References: Message-ID: Thanks David for your reply. I tried both the options mouseover/mouseout or mouseon/mouseoff but the results are same. Only one annotation is getting highlighted on mouse hover over. I am using below code. line.geoOn(geo.event.feature.mouseover, (evt) => { evt.data.selected = true; line.modified().draw(); $('.geojs-layer').css('cursor', 'pointer'); }); line.geoOn(geo.event.feature.mouseout, (evt) => { evt.data.selected = false; line.modified().draw(); $('.geojs-layer').css('cursor', 'inherit'); $("#geojs .geojs-layer").css("pointer-events", "auto"); }); Thanks & Regards, Bhupendra From: David Manthey [mailto:david.manthey at kitware.com] Sent: 07 March 2020 03:24 To: Bhupendra Singh Cc: geojs-users at public.kitware.com Subject: Re: Need help to strokeopacity while creating multiple annotation If you are using feature events, are you using mouseon/mouseoff or mouseover/mouseout? mouseon and mouseoff are for the "topmost" element (though a function can override what it means to be topmost). mouseover and mouseout apply to all features (see https://opengeoscience.github.io/geojs/apidocs/geo.event.feature.html#.event:mouseoff, etc.) On Fri, Mar 6, 2020 at 4:15 AM Bhupendra Singh > wrote: Hi Geojs team, I observed one behaviour after implementing the Geo JS code , the code is only highlighting the latest created annotation all other annotation are not highlighting on mouse hover over. In the below example, ANO3 is changing the strokeopacity with mouse hover over if I will create the new annotation on the page then that will be only highlighted on mouse over hover. I need strokeopacity should work for all the created annotation. [cid:image001.png at 01D5F558.9D8F0260] Thanks & Regards, Bhupendra ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -- David Manthey R&D Engineer Kitware Inc. (518) 881-4439 ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 24986 bytes Desc: image001.png URL: From Bhupendra.Singh1 at india.nec.com Mon Mar 9 04:29:52 2020 From: Bhupendra.Singh1 at india.nec.com (Bhupendra Singh) Date: Mon, 9 Mar 2020 08:29:52 +0000 Subject: [Geojs-users] Zoom functionality using GeoJS Message-ID: Hi GeoJs team, Appreciate your effort as always you provide the solution! I have to zoom the annotation area and I am struggling to achieve it so please can you help me how we can achieve that functionality using Geojs. Example: If user mouse hover over on any annotation suppose R0122 then user should see this annotation with zoom in different place in the same page. [cid:image001.png at 01D5F638.7380CCC0] Thanks & Regards, Bhupendra ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 100977 bytes Desc: image001.png URL: From david.manthey at kitware.com Mon Mar 9 10:32:54 2020 From: david.manthey at kitware.com (David Manthey) Date: Mon, 9 Mar 2020 10:32:54 -0400 Subject: [Geojs-users] Need help to strokeopacity while creating multiple annotation In-Reply-To: References: Message-ID: This should work. The logic for switching the cursor back to the default should check if any elements are selected, though. See here: https://opengeoscience.github.io/geojs/tutorials/editor/?src=lZLBTuMwEIbvfYpZQLIjea0S6KoEFQ5Ie1qJ4x4QBxNPSiCJI9sJdFHefcdu2kaVVrAn2..MfDPjmV5ZqFULK1ijkXTjHzOAxmjM4OSU3ieC3jk2Hm0GH-8ZLORCwIbOVC6HYPxjTJ3B1WxIrmc94Yyrf6kNWmJSvMwtKo9R4YxsjNyiX0F6Z.GfvqOdjdjWVBtym0aN.j-3EmfBZW0allBVUiuv-APdAB5C3Zdyuav7YhBjK1c7KT2WLiZe852UDo.iQFzIy2PiD3l-TNxLU2I6IRLwMVbs.KbC-P8AzlvzinemMvTt7KlS-SsTE8vvUvvnDNKploG3HU6V-1blpadMXAsoBbQCXhJY3UArHVaYe9RwC3OZLiCD821kUVbVLu.pfL5kB.n.cBQ2bCdh1RunKYbxSFqz-4aHZcOetkqO85S16RyaHq0Ajr2P2PAVdI-jPGRYxTavyRaBtdFlUaLmyT4RwBlnIdOL-16FRWGJzJ3jLO-sM5YJYGurnsJmDV-rq.NfKKtQlfukrrIA.i2a43om0pkauQ5UvUclCWyX4NMuyuYZbelZZA-xmb8_ On Sun, Mar 8, 2020 at 12:47 AM Bhupendra Singh < Bhupendra.Singh1 at india.nec.com> wrote: > Thanks David for your reply. > > > > I tried both the options mouseover/mouseout or mouseon/mouseoff but the > results are same. Only one annotation is getting highlighted on mouse > hover over. I am using below code. > > > > line.geoOn(geo.event.feature.mouseover, (evt) => { > > evt.data.selected = true; > > line.modified().draw(); > > $('.geojs-layer').css('cursor', > 'pointer'); > > }); > > line.geoOn(geo.event.feature.mouseout, > (evt) => { > > evt.data.selected = false; > > line.modified().draw(); > > $('.geojs-layer').css('cursor', > 'inherit'); > > $("#geojs > .geojs-layer").css("pointer-events", "auto"); > > }); > > > > Thanks & Regards, > > Bhupendra > > > > *From:* David Manthey [mailto:david.manthey at kitware.com] > *Sent:* 07 March 2020 03:24 > *To:* Bhupendra Singh > *Cc:* geojs-users at public.kitware.com > *Subject:* Re: Need help to strokeopacity while creating multiple > annotation > > > > If you are using feature events, are you using mouseon/mouseoff or > mouseover/mouseout? mouseon and mouseoff are for the "topmost" element > (though a function can override what it means to be topmost). mouseover > and mouseout apply to all features (see > https://opengeoscience.github.io/geojs/apidocs/geo.event.feature.html#.event:mouseoff, > etc.) > > > > On Fri, Mar 6, 2020 at 4:15 AM Bhupendra Singh < > Bhupendra.Singh1 at india.nec.com> wrote: > > Hi Geojs team, > > > > I observed one behaviour after implementing the Geo JS code , the code is > only highlighting the latest created annotation all other annotation are > not highlighting on mouse hover over. > > > > In the below example, ANO3 is changing the strokeopacity with mouse hover > over if I will create the new annotation on the page then that will be only > highlighted on mouse over hover. I need strokeopacity should work for all > the created annotation. > > > > > > > > Thanks & Regards, > > Bhupendra > ------------------------------ > > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. It shall not attach any liability > on the originator or NECTI or its affiliates. Any views or opinions > presented in this email are solely those of the author and may not > necessarily reflect the opinions of NECTI or its affiliates. Any form of > reproduction, dissemination, copying, disclosure, modification, > distribution and / or publication of this message without the prior written > consent of the author of this e-mail is strictly prohibited. If you have > received this email in error please delete it and notify the sender > immediately. > > > > > -- > > David Manthey > > R&D Engineer > Kitware Inc. > (518) 881-4439 > ------------------------------ > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. It shall not attach any liability > on the originator or NECTI or its affiliates. Any views or opinions > presented in this email are solely those of the author and may not > necessarily reflect the opinions of NECTI or its affiliates. Any form of > reproduction, dissemination, copying, disclosure, modification, > distribution and / or publication of this message without the prior written > consent of the author of this e-mail is strictly prohibited. If you have > received this email in error please delete it and notify the sender > immediately. > -- David Manthey R&D Engineer Kitware Inc. (518) 881-4439 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 24986 bytes Desc: not available URL: From david.manthey at kitware.com Mon Mar 9 10:34:16 2020 From: david.manthey at kitware.com (David Manthey) Date: Mon, 9 Mar 2020 10:34:16 -0400 Subject: [Geojs-users] Zoom functionality using GeoJS In-Reply-To: References: Message-ID: I would do this by constructing two geo.map objects, one for the main view and one for the zoom-in view. When hovering over the main view, set the bounds of the zoom-in view to the bounding box of the hovered object. - David On Mon, Mar 9, 2020 at 4:29 AM Bhupendra Singh < Bhupendra.Singh1 at india.nec.com> wrote: > Hi GeoJs team, > > > > Appreciate your effort as always you provide the solution! > > > > I have to zoom the annotation area and I am struggling to achieve it so > please can you help me how we can achieve that functionality using Geojs. > > > > Example: If user mouse hover over on any annotation suppose R0122 then > user should see this annotation with zoom in different place in the same > page. > > > > > > Thanks & Regards, > > Bhupendra > ------------------------------ > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. It shall not attach any liability > on the originator or NECTI or its affiliates. Any views or opinions > presented in this email are solely those of the author and may not > necessarily reflect the opinions of NECTI or its affiliates. Any form of > reproduction, dissemination, copying, disclosure, modification, > distribution and / or publication of this message without the prior written > consent of the author of this e-mail is strictly prohibited. If you have > received this email in error please delete it and notify the sender > immediately. > -- David Manthey R&D Engineer Kitware Inc. (518) 881-4439 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 100977 bytes Desc: not available URL: From Bhupendra.Singh1 at india.nec.com Mon Mar 9 10:56:25 2020 From: Bhupendra.Singh1 at india.nec.com (Bhupendra Singh) Date: Mon, 9 Mar 2020 14:56:25 +0000 Subject: [Geojs-users] Zoom functionality using GeoJS In-Reply-To: References: Message-ID: Thanks David, Can I get the reference example or code for the same. Thanks & Regards, Bhupendra From: David Manthey [mailto:david.manthey at kitware.com] Sent: 09 March 2020 23:34 To: Bhupendra Singh Cc: geojs-users at public.kitware.com Subject: Re: Zoom functionality using GeoJS I would do this by constructing two geo.map objects, one for the main view and one for the zoom-in view. When hovering over the main view, set the bounds of the zoom-in view to the bounding box of the hovered object. - David On Mon, Mar 9, 2020 at 4:29 AM Bhupendra Singh > wrote: Hi GeoJs team, Appreciate your effort as always you provide the solution! I have to zoom the annotation area and I am struggling to achieve it so please can you help me how we can achieve that functionality using Geojs. Example: If user mouse hover over on any annotation suppose R0122 then user should see this annotation with zoom in different place in the same page. [cid:image001.png at 01D5F66E.733B4FC0] Thanks & Regards, Bhupendra ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -- David Manthey R&D Engineer Kitware Inc. (518) 881-4439 ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 100977 bytes Desc: image001.png URL: From Bhupendra.Singh1 at india.nec.com Mon Mar 9 11:10:15 2020 From: Bhupendra.Singh1 at india.nec.com (Bhupendra Singh) Date: Mon, 9 Mar 2020 15:10:15 +0000 Subject: [Geojs-users] Need help to strokeopacity while creating multiple annotation In-Reply-To: References: Message-ID: Thanks David for the below example. I have changed the code as mentioned in the example but still only the newly created annotation is changing the colour when mouse is hover over. Thanks & Regards, Bhupendra From: David Manthey [mailto:david.manthey at kitware.com] Sent: 09 March 2020 23:33 To: Bhupendra Singh Cc: geojs-users at public.kitware.com Subject: Re: Need help to strokeopacity while creating multiple annotation This should work. The logic for switching the cursor back to the default should check if any elements are selected, though. See here: https://opengeoscience.github.io/geojs/tutorials/editor/?src=lZLBTuMwEIbvfYpZQLIjea0S6KoEFQ5Ie1qJ4x4QBxNPSiCJI9sJdFHefcdu2kaVVrAn2..MfDPjmV5ZqFULK1ijkXTjHzOAxmjM4OSU3ieC3jk2Hm0GH-8ZLORCwIbOVC6HYPxjTJ3B1WxIrmc94Yyrf6kNWmJSvMwtKo9R4YxsjNyiX0F6Z.GfvqOdjdjWVBtym0aN.j-3EmfBZW0allBVUiuv-APdAB5C3Zdyuav7YhBjK1c7KT2WLiZe852UDo.iQFzIy2PiD3l-TNxLU2I6IRLwMVbs.KbC-P8AzlvzinemMvTt7KlS-SsTE8vvUvvnDNKploG3HU6V-1blpadMXAsoBbQCXhJY3UArHVaYe9RwC3OZLiCD821kUVbVLu.pfL5kB.n.cBQ2bCdh1RunKYbxSFqz-4aHZcOetkqO85S16RyaHq0Ajr2P2PAVdI-jPGRYxTavyRaBtdFlUaLmyT4RwBlnIdOL-16FRWGJzJ3jLO-sM5YJYGurnsJmDV-rq.NfKKtQlfukrrIA.i2a43om0pkauQ5UvUclCWyX4NMuyuYZbelZZA-xmb8_ On Sun, Mar 8, 2020 at 12:47 AM Bhupendra Singh > wrote: Thanks David for your reply. I tried both the options mouseover/mouseout or mouseon/mouseoff but the results are same. Only one annotation is getting highlighted on mouse hover over. I am using below code. line.geoOn(geo.event.feature.mouseover, (evt) => { evt.data.selected = true; line.modified().draw(); $('.geojs-layer').css('cursor', 'pointer'); }); line.geoOn(geo.event.feature.mouseout, (evt) => { evt.data.selected = false; line.modified().draw(); $('.geojs-layer').css('cursor', 'inherit'); $("#geojs .geojs-layer").css("pointer-events", "auto"); }); Thanks & Regards, Bhupendra From: David Manthey [mailto:david.manthey at kitware.com] Sent: 07 March 2020 03:24 To: Bhupendra Singh > Cc: geojs-users at public.kitware.com Subject: Re: Need help to strokeopacity while creating multiple annotation If you are using feature events, are you using mouseon/mouseoff or mouseover/mouseout? mouseon and mouseoff are for the "topmost" element (though a function can override what it means to be topmost). mouseover and mouseout apply to all features (see https://opengeoscience.github.io/geojs/apidocs/geo.event.feature.html#.event:mouseoff, etc.) On Fri, Mar 6, 2020 at 4:15 AM Bhupendra Singh > wrote: Hi Geojs team, I observed one behaviour after implementing the Geo JS code , the code is only highlighting the latest created annotation all other annotation are not highlighting on mouse hover over. In the below example, ANO3 is changing the strokeopacity with mouse hover over if I will create the new annotation on the page then that will be only highlighted on mouse over hover. I need strokeopacity should work for all the created annotation. [cid:image001.png at 01D5F670.62C8E240] Thanks & Regards, Bhupendra ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -- David Manthey R&D Engineer Kitware Inc. (518) 881-4439 ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -- David Manthey R&D Engineer Kitware Inc. (518) 881-4439 ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 24986 bytes Desc: image001.png URL: From Bhupendra.Singh1 at india.nec.com Tue Mar 10 11:52:20 2020 From: Bhupendra.Singh1 at india.nec.com (Bhupendra Singh) Date: Tue, 10 Mar 2020 15:52:20 +0000 Subject: [Geojs-users] Zoom functionality using GeoJS In-Reply-To: References: Message-ID: Hi David, Please provide the reference code for the zoom functionality. Thanks & Regards, Bhupendra From: Bhupendra Singh Sent: 09 March 2020 23:56 To: David Manthey Cc: geojs-users at public.kitware.com Subject: RE: Zoom functionality using GeoJS Thanks David, Can I get the reference example or code for the same. Thanks & Regards, Bhupendra From: David Manthey [mailto:david.manthey at kitware.com] Sent: 09 March 2020 23:34 To: Bhupendra Singh > Cc: geojs-users at public.kitware.com Subject: Re: Zoom functionality using GeoJS I would do this by constructing two geo.map objects, one for the main view and one for the zoom-in view. When hovering over the main view, set the bounds of the zoom-in view to the bounding box of the hovered object. - David On Mon, Mar 9, 2020 at 4:29 AM Bhupendra Singh > wrote: Hi GeoJs team, Appreciate your effort as always you provide the solution! I have to zoom the annotation area and I am struggling to achieve it so please can you help me how we can achieve that functionality using Geojs. Example: If user mouse hover over on any annotation suppose R0122 then user should see this annotation with zoom in different place in the same page. [cid:image001.png at 01D5F73F.6A2F9040] Thanks & Regards, Bhupendra ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -- David Manthey R&D Engineer Kitware Inc. (518) 881-4439 ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECTI or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECTI or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 100977 bytes Desc: image001.png URL: From david.manthey at kitware.com Tue Mar 10 12:13:52 2020 From: david.manthey at kitware.com (David Manthey) Date: Tue, 10 Mar 2020 12:13:52 -0400 Subject: [Geojs-users] Zoom functionality using GeoJS In-Reply-To: References: Message-ID: This is just going to be having two map objects. In map A, your event that triggers the zoom needs to know the bounds of the thing you want to zoom to, and then just call mapB.bounds({left: .., top: .., right: .., bottom: ..}) with the bounds of where you want to zoom. On Tue, Mar 10, 2020 at 11:52 AM Bhupendra Singh < Bhupendra.Singh1 at india.nec.com> wrote: > Hi David, > > > > Please provide the reference code for the zoom functionality. > > > > Thanks & Regards, > > Bhupendra > > > > *From:* Bhupendra Singh > *Sent:* 09 March 2020 23:56 > *To:* David Manthey > *Cc:* geojs-users at public.kitware.com > *Subject:* RE: Zoom functionality using GeoJS > > > > Thanks David, > > > > Can I get the reference example or code for the same. > > > > Thanks & Regards, > > Bhupendra > > > > *From:* David Manthey [mailto:david.manthey at kitware.com > ] > *Sent:* 09 March 2020 23:34 > *To:* Bhupendra Singh > *Cc:* geojs-users at public.kitware.com > *Subject:* Re: Zoom functionality using GeoJS > > > > I would do this by constructing two geo.map objects, one for the main view > and one for the zoom-in view. When hovering over the main view, set the > bounds of the zoom-in view to the bounding box of the hovered object. > > > > - David > > > > On Mon, Mar 9, 2020 at 4:29 AM Bhupendra Singh < > Bhupendra.Singh1 at india.nec.com> wrote: > > Hi GeoJs team, > > > > Appreciate your effort as always you provide the solution! > > > > I have to zoom the annotation area and I am struggling to achieve it so > please can you help me how we can achieve that functionality using Geojs. > > > > Example: If user mouse hover over on any annotation suppose R0122 then > user should see this annotation with zoom in different place in the same > page. > > > > > > Thanks & Regards, > > Bhupendra > ------------------------------ > > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. It shall not attach any liability > on the originator or NECTI or its affiliates. Any views or opinions > presented in this email are solely those of the author and may not > necessarily reflect the opinions of NECTI or its affiliates. Any form of > reproduction, dissemination, copying, disclosure, modification, > distribution and / or publication of this message without the prior written > consent of the author of this e-mail is strictly prohibited. If you have > received this email in error please delete it and notify the sender > immediately. > > > > > -- > > David Manthey > > R&D Engineer > Kitware Inc. > (518) 881-4439 > ------------------------------ > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. It shall not attach any liability > on the originator or NECTI or its affiliates. Any views or opinions > presented in this email are solely those of the author and may not > necessarily reflect the opinions of NECTI or its affiliates. Any form of > reproduction, dissemination, copying, disclosure, modification, > distribution and / or publication of this message without the prior written > consent of the author of this e-mail is strictly prohibited. If you have > received this email in error please delete it and notify the sender > immediately. > -- David Manthey R&D Engineer Kitware Inc. (518) 881-4439 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 100977 bytes Desc: not available URL: