[OpenLayers-Users] graphicWidth symbol can't be used in IE

longsen 945070223 at qq.com
Mon Apr 1 01:11:25 PDT 2013


my code like this:
      var style_blue = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']);
      style_blue.cursor='pointer';
      style_blue.fontColor='#343434';
      style_blue.externalGraphic="images/device/loufang.png";
      style_blue.graphicHeight='16';
      style_blue.graphicWidth='16';
      var point = new OpenLayers.Geometry.Point(12576735.085414,3271755.6191489);
      var pointFeatures = new OpenLayers.Feature.Vector(point, null, style_blue);
      vector_layer_current.addFeatures([pointFeatures]);
it works right in firefox,but it doesn't work in ie10/9;
if I remove 
style_blue.graphicHeight='16';
      style_blue.graphicWidth='16';
it works right;

ie9/10 already support svg.but OL 2.12 still render used vml.

------------------
========================================================================================  
 

OpenGSC

专注OGC,玩儿转开源GIS!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130401/aa5b9115/attachment.html>


More information about the Users mailing list