Hi,

is there any way to control the number of decimals in the SVG paths when
using OpenLayers.loadUrl()?

The number of coordinate decimals in the GeoJSON that are loaded does not
seem to have any influence, e.g. the following polygon:

[[[[-13.0885,8.4123],[-13.0112,8.3605],[-12.9437,8.3463],[-12.9296,8.2924],[-13.0533,8.2385],[-13.1665,8.1704],[-13.1607,8.2857],[-13.1828,8.2847],[-13.2021,8.3343],[-13.2312,8.3441],[-13.2902,8.419],[-13.2768,8.4535],[-13.2967,8.4941],[-13.275,8.4905],[-13.2787,8.4751],[-13.2679,8.4947],[-13.2072,8.4907],[-13.1225,8.4138],[-13.0885,8.4123]]]]

gives me this SVG element:

<path id="OpenLayers.Geometry.Polygon_250" d=" M
702.8816355555557,144.88848000004532 703.9921066666668,164.96798222226766
686.1335466666669,171.1392888889343 683.5030044444445,175.2352888889343
693.4608355555558,184.2191822222676 702.644977777778,183.172426666712
706.2858666666668,190.3267733333787 710.0268800000001,207.37523555560097
713.6768711111113,210.32435555560085 707.6967111111114,218.1431644444898
708.9801244444445,221.5564977778231 714.0864711111112,224.41459555560095
705.5121777777779,228.98391111115643 701.2887466666668,250.346826666712
695.681777777778,252.1126577778232 692.2047288888891,256.2723733333787
684.7682133333335,255.46227555560097 680.6722133333335,258.52972444448983
675.2108800000003,257.2736177778231 670.486826666667,252.7498133333787
666.0722488888891,251.52101333337862 663.2050488888892,253.14120888893433
662.6316088888891,239.26032000004545 650.1524622222223,231.6872711111564
649.524408888889,228.30124444448984 643.1710577777781,227.9189511111565
641.4871466666668,225.70711111115645 644.3361422222224,220.78280888893426
647.5128177777779,220.8374222222676 653.3655466666669,211.0616355556009
653.620408888889,207.52087111115645 646.4842666666668,204.49893333337877
646.0655644444448,202.38721777782314 651.2265244444447,197.34458666671196
658.4354844444447,202.08684444448988 655.9050666666667,196.07027555560092
659.473137777778,193.47614222226764 655.9778844444445,187.25932444448983
649.2240355555557,183.6002311111564 650.8351288888891,177.5654577778231
646.8392533333335,175.03504000004546 641.4871466666668,175.17157333337877
643.8446222222224,165.82359111115647 646.6299022222224,164.19429333337882
648.1499733333335,165.40488888893424 647.3580800000002,162.7561422222676
649.2513422222223,161.8914311111564 650.0068266666667,152.99856000004536
656.1235200000001,149.5306133333787 674.755768888889,145.62576000004537
684.5042488888892,150.42263111115653 702.8816355555557,144.88848000004532 z"
fill-rule="evenodd" fill="#FF3F00" fill-opacity="1" stroke="#222222"
stroke-opacity="1" stroke-width="1" stroke-linecap="round"
stroke-linejoin="round" stroke-dasharray="none"
pointer-events="visiblePainted" cursor="inherit"/>


Jan
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to