[OpenLayers-Users] pan behaviour for WMS.Untiled

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Mar 20 07:51:09 EDT 2007


Hi Bill,

I am still on 2.3RC2 (I had a problem with 2.3 final which I reported to the
list before).

I tested your code for MouseToolbar and it works fine.

Thanks a lot!

Is this something that could be incorporated into OpenLayers trunk you
think?

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Bill Woodall <bwoodall at wardrobe.dhs.org>
Naar: Bart van den Eijnden OSGIS <bartvde at osgis.nl>
Cc: users at openlayers.org
Onderwerp: Re: [OpenLayers-Users] pan behaviour for WMS.Untiled
Datum: 20/03/07 09:29

> Hi Bart,
> 
> You didn't mention which version (stable, lastest trunk, ...), but
> looking at 2.3 in either MouseDefaults.js or MouseToolbar.js the
> function defaultMouseOut just drops the ball so to speak.
> 
> A modified 2.3 MouseToolbar could look like;
> 
>     /**
>     * @param {Event} evt
>     */
>     defaultMouseOut: function (evt) {
>         if (this.mouseDragStart != null
>             &amp;&amp; OpenLayers.Util.mouseLeft(evt, this.map.div)) {
>             switch (this.mode) {
>                 case &quot;zoombox&quot;:
>                     this.removeZoomBox();
>                     if (this.startViaKeyboard) this.leaveMode();
>                     break;
>                 case &quot;pan&quot;:
>                     if (this.performedDrag) {
>                         this.map.setCenter(this.map.center);
>                     }
>             }
>             this.mouseDragStart = null;
>             this.map.div.style.cursor = &quot;default&quot;;
>         }
>     },
> 
> and the MouseDefaults;
>     /**
>     * @param {Event} evt
>     */
>     defaultMouseOut: function (evt) {
>         if (this.mouseDragStart != null &amp;&amp;
>             OpenLayers.Util.mouseLeft(evt, this.map.div)) {
>             if (this.zoomBox) {
>                 this.removeZoomBox();
>             } else {
>                 if (this.performedDrag) {
>                     this.map.setCenter(this.map.center);
>                 }
>             }
>             this.mouseDragStart = null;
>         }
>     },
> 
> 
> 
> ..........Bill,
> 
> On Tue, 2007-03-20 at 11:02 +0100, Bart van den Eijnden (OSGIS) wrote:
> &gt; Hi list,
> &gt; 
> &gt; when somebody drags outside of the map when panning (WMS.Untiled),
part of
> &gt; the map stays white and does not update.
> &gt; 
> &gt; In a tiled situation this does not occur.
> &gt; 
> &gt; Is this intentional? Does anybody know a quick fix which will cause
the map
> &gt; to update in this case?
> &gt; 
> &gt; Thanks in advance.
> &gt; 
> &gt; Best regards,
> &gt; Bart
> &gt; 
> &gt; --
> &gt; Bart van den Eijnden
> &gt; OSGIS, Open Source GIS
> &gt; http://www.osgis.nl
> &gt; 
> &gt; 
> &gt; 
> &gt; 
> &gt; 
> &gt; _______________________________________________
> &gt; Users mailing list
> &gt; Users at openlayers.org
> &gt; http://openlayers.org/mailman/listinfo/users
> 
> 
> 






More information about the Users mailing list