[ka-Map-users] How to restrict the map dragging

Daniel Ceregatti daniel at ceregatti.org
Fri Feb 24 19:43:38 EST 2006


If I recall correctly, the patch that does this was applied to ka-map
cvs, and even the 0.2 release.

You have to define the "max_extents" metadata in your map file:

   WEB
    METADATA
      "MAX_EXTENTS" "-118.7, 33.65, -118.1, 34.38"
    END
  END

Once that's defined, the out-of bounds dragging is prevented.

Daniel

ramesh karra wrote:
> Hi,
>
> How can I restrict the dragging when using ka-Map to
> just the map that is being viewed and not beyond it.
>
> For example, the map at
> http://maps.dmsolutions.ca/demo/canmap/
> can be dragged beyond canada
>
> where as the map at
> http://map.sh.nu/prototype6
> cannot be dragged beyond LA
>
> How can I control this?
>
> Thanks in advance
> Ramesh
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>   


More information about the ka-Map-users mailing list