Sal_Joensen

Horizontal/vertical Lines appear while panning map

Discussion created by Sal_Joensen on Mar 1, 2012
Latest reply on Jan 16, 2013 by sjacksonesriaustralia-com-au-esridist
I have a 250px X 250px map which, when panning, there will appear horizontal and vertical lines intermittently. I'm at a loss what could be causing this.

The map code:

      dojo.require("esri.map");

      var map;
      var sms =  new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_DIAMOND, 10,
       new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
       new dojo.Color([255,0,0]), 2),
       new dojo.Color([0,255,0,0.25]));

      var mLoc = new esri.geometry.Point(615839.4083,6877702.1883, new esri.SpatialReference({ wkid: 32629 })); 

      function init() {
        var initExtent = new esri.geometry.Extent( {
          "xmax": 615930.5776797816,
          "xmin": 615754.1002434933,
          "ymax": 6877746.606664156,
          "ymin": 6877660.616908844,
            "spatialReference": {
              "wkid":32629
            }
          });
       map = new esri.Map("map",{
          extent: initExtent,
          logo: false
       });
        //Add the topographic layer to the map. View the ArcGIS Online site for services http://arcgisonline/home/search.html?t=content&f=typekeywords:service   
        var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://www.kort.fo:8089/ArcGIS/rest/services/munin/Muninkort-vegir2/MapServer");
        map.addLayer(basemap);


Might it have something to do with this in the HTML?


   <div style="position: relative;">
    <div id="map" style="position: absolute; bottom: 0; right: 0; width: 250px; height: 250px; background: #99B3CC;" >
    </div>
   </div>


Reason for that background is for displaying the ocean colour in the map div.

Attachments

Outcomes