none
HELP!!! IE 10 problem (not consistent) == Polygon not scaling and locating properly RRS feed

  • Question

  • OK -- this one has me baffled.

    I draw a small map and put a pushpin and polygon to show the location.

    In Google ..

    Nicely located...

    In IE 10 (Win 8)

    My java code;

    var LF = LF || {};
    
    LF.ThumbMap = {
        map: null,
        llArray: null,
    
        init: function (mapdiv, lat, long, zoom, address, inArray) {
            this.llArray = inArray;
            var controlID = document.getElementById(mapdiv);
            this.map = new Microsoft.Maps.Map(controlID, {
                credentials: "xxx-xxx",
                showDashboard: false,
                enableSearchLogo: false,
                enableClickableLogo: false,
                showMapTypeSelector: false,
                width: 220,
                height: 250
            });
            var location = new Microsoft.Maps.Location(lat, long);
            var options = {
                zoom: zoom,
                center: location,
                mapTypeId: Microsoft.Maps.MapTypeId.road
              
            };
            LF.ThumbMap.AddPoly(llArray);
            LF.ThumbMap.map.setView(options);
        
            var pp = new Microsoft.Maps.Pushpin(location);
            LF.ThumbMap.map.entities.push(pp);
        },
    
        AddPoly: function (LatLongArray) {
            // LatLongArray is pattern point = [ {lat: 23.3, long: -84.2}, {lat: 22.4, long: -92}];
      
            var vertices = new Array();
            var color = new Microsoft.Maps.Color(120, 192, 208, 50);
            for (var i = 0; i < LatLongArray.length; i++) {
                var ll = LatLongArray[i];
                vertices[i] = new Microsoft.Maps.Location(ll.lat, ll.long);
    
            }
    
            var polygon = new Microsoft.Maps.Polygon(vertices, { fillColor: color, strokeColor: color, strokeThickness: 1 });
            LF.ThumbMap.map.entities.push(polygon);
        }
    };

    HELP!

    --mike

    Wednesday, November 21, 2012 5:16 PM

Answers

All replies