[mapserver-dev] Problem with zooming

Akila Shashith akila789 at gmail.com
Sat Aug 27 10:10:14 EDT 2011

Hello, I am from Sri Lanka and currently developing web based GIS .I am
using OpenLayers for map viewing purpose . I have been facing a problem when
zooming the map. When i zoom the map using control in OpenLayer API , map is
not zoom but giving several images of the land. Can anyone give me a
suggestion to fix this problem ?

*OpenLayer code*

<!DOCTYPE html>
<html lang='en'>
    <meta charset='utf-8' />
    <title>Map of New Airports in Sri Lanka</title>
    <script type='text/javascript' src='OpenLayers.js'></script>
    <script type='text/javascript'>

    var map;

    function init() {
    map = new OpenLayers.Map('map_element', {});

    var wms_layer_airports = new OpenLayers.Layer.WMS (
     'New Airports in Sri Lanka',


     var wms_layer_boun = new OpenLayers.Layer.WMS(
    'Boundary layer',


         map.addControl(new OpenLayers.Control.LayerSwitcher({}));



<body onload='init();'>
    <div id='map_element' style='width: 500px; height: 500px;'>

Akila Shashith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110827/4b03882b/attachment.html

More information about the mapserver-dev mailing list