This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[closed] render kml 10mb KML file cordinates data on OSM map throws stop running script error in OpenLayer.js file

0

I am trying to render the kml file having 18000 line string data on OSM map using openlayer HTTP strategy. To render OSM map i am using GeoExt.MapPanel and ExtJS 3.4 viewport.

The problem is I am facing the stop running script error on page and in IE8 hang the PC and browser.

Thanks...

asked 15 Apr '13, 08:15

Bhavin%20Patel's gravatar image

Bhavin Patel
1111
accept rate: 0%

closed 15 Apr '13, 08:40

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273

The question has been closed for the following reason “Question is off-topic or not relevant” by Frederik Ramm 15 Apr ‘13, 08:40


One Answer:

3

You need to set up a database on the server side and make it so that only data for the currently visible map extent is loaded from the database. Asking the browser to handle that amount of data is asking for trouble. Various options exist to do the database loading, one of the simplest probably being FeatureServer.

Your question is not OpenStreetMap related - the fact that you are using an OSM base map is not relevant to your problem. Check openlayers.org for OpenLayers help.

answered 15 Apr '13, 08:39

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

edited 15 Apr '13, 08:39

Source code available on GitHub .