[Geojs-users] Zoom functionality using GeoJS

David Manthey david.manthey at kitware.com
Tue Mar 10 12:13:52 EDT 2020


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 <david.manthey at kitware.com>
> *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
> <david.manthey at kitware.com>]
> *Sent:* 09 March 2020 23:34
> *To:* Bhupendra Singh <Bhupendra.Singh1 at india.nec.com>
> *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: <https://public.kitware.com/pipermail/geojs-users/attachments/20200310/864cd238/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 100977 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/geojs-users/attachments/20200310/864cd238/attachment-0001.png>


More information about the Geojs-users mailing list