[OpenLayers-Users] very slow map using WKT Multipolygon with a lot of Points
Xavier Mamano (jorix)
xavier.mamano at gmail.com
Mon Nov 19 10:47:18 PST 2012
Hi,
Warning: SVG2 was created in 2.11, and in version 2.12 SVG2 was classified
as deprecated. SVG2 cause some behavioral problems in some browsers.
Fabrizio wrote
> 2012/11/18 Sergeant_york <
> electronicpanda@
> >
>
>> Codes seems okay to me. The only thing that can cause performance issue
>> could
>> be transforming from 4326 to map projection but after initializing
>> geometries it shouldn't affect the performance.
>>
>> In my opinion, you can:
>>
>> 1- Try to change renderers to get best performance.
>>
>
> as said in the openlayers 2.11 release notes I put the following line
> before any Vector and
> it is way more fast dragging which was one of my targets, so really good
> point.
>
> OpenLayers.Layer.Vector.prototype.renderers = ["SVG2", "VML", "Canvas"];
>
>
>
>> 2- Simplify geometries with respect to zoom levels.
>>
>
>
> Is there a method to simplify geometries automatically?
>
>
>> 3- Try to keep fill opacity to 0 and stroke opacity to 1 (should be
>> tested)
>>
>
> It does not change performances
>
>
>> 4- Draw only the place inside the bounding box
>>
>
> what do you mean , I should reduce the bbox?
>
>
>>
>> These are the things which I can say, but unfortunately with many
>> vertexes
>> openlayers (even in chrome) gives a bit bad performance. So don't expect
>> to
>> get results like desktop applications.
>>
>
>
> Yes, it is still very slow loading the vertexes.... I'm thinking about
> reducing the polygon vertexes, do you know any algorithm or any way to
> simplify polygons?
>
> thanks
>
>
> --
> Fab
>
> http://twitter.com/fabrizioburatta
>
> http://www.linkedin.com/in/fburatta
>
> http://nonfartiprenderedalpanico.blogspot.com/
>
> _______________________________________________
> Users mailing list
> Users at .osgeo
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/very-slow-map-using-WKT-Multipolygon-with-a-lot-of-Points-tp5017181p5017492.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list