kb23

Problem with PictureMarkerSymbol in IE8

Discussion created by kb23 on Apr 15, 2013
Latest reply on Apr 15, 2013 by JGravois-esristaff
I'm having problems getting my PictureMarkerSymbol to show up correctly in IE8. It works fine in Chrome and Firefox, but in IE8 all I get is a white box in the top left corner of the map. Any ideas on why this is happening?

        var point = new esri.geometry.Point(esri.geometry.geographicToWebMercator(new esri.geometry.Point(lat, lon, new esri.SpatialReference({wkid: 4326}))));
        var symbol = new esri.symbol.PictureMarkerSymbol({
                "angle": 0,
                "xoffset": 0,
                "yoffset": 12,
                "type": "picturemarkersymbol",
                "url": "http://www.blahblahblah.com/images/marker.png",
                "contentType": "image/png",
                "width": 32,
                "height": 37
        });
        var graphic = new esri.Graphic(point, symbol);
        var layer = new esri.layers.GraphicsLayer();
        layer.add(graphic);
        map.addLayer(layer);

Outcomes