[OpenLayers-Users] Internet Explorer 8 Issues on adding KML-Layer

Andreas Schnieders schnieders.a at gmail.com
Thu Aug 9 01:12:19 PDT 2012


Alright, cheers, I did expect something like that!

How would you setup an environment for this? Unfortunately I have only very
little experience in the use of map server. Would the map server render the
objects already and how would them be transferred to the OpenLayers in IE
then?

Regards,
Andreas

2012/8/9 Zac Spitzer <zac.spitzer at gmail.com>

> put simply, IE is not in the same class as chrome or firefox,
> you will need to use a map server to render that much data reliably in IE
>
> On Thu, Aug 9, 2012 at 6:03 PM, Andreas Schnieders
> <schnieders.a at gmail.com> wrote:
> > Hi,
> >
> > I'm experiencing serious issues when adding a KML-Layer to OpenLayers in
> the
> > IE. The KML-Data is - up to this state of development - provided by a
> JSP.
> > When just creating the KML-Layer everything is fine, but when actually
> > adding it to the map the IE8 consumes 50-80% CPU-Usage and just crashes.
> No
> > interaction or anything possible.
> >
> > Creating and adding works just fine in Chrome and Firefox.
> >
> > Does anyone have any hints on this? How is the internal OpenLayers
> > mechanisms? Isn't the data obtained and created on "new
> > OpenLayers.Layer.Vector(...)" already? How is it this works but adding
> it to
> > the map doesn't? It's something around 150 objects. Each consisting of
> one
> > Point-Placemark and on LineString-Placemark.
> >
> > Here's my code for creating the layer:
> >
> >     kmlLayer = new OpenLayers.Layer.Vector("KML", {
> >                 strategies: [new OpenLayers.Strategy.Fixed(),
> >                              new OpenLayers.Strategy.Refresh({force:
> true,
> > interval:  5000 })],
> >                 protocol: new OpenLayers.Protocol.HTTP({
> >                     url: "track-server.jsp",
> >                     params: {
> >                         'track': 1,
> >                         'label': 1,
> >                         'speed': 6
> > //                      'speed': $("#speedLengthSelector").val(),
> >                         },
> >                     format: new OpenLayers.Format.KML({
> >                         extractStyles: false,
> >                         extractAttributes: true,
> >                         maxDepth: 2
> >                     })
> >                 }),
> >                 styleMap: styleMap
> >             });
> >
> >     map.addLayer(kmlLayer);
> >
> > Many thanks in advance,
> > Andreas
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/openlayers-users
> >
>
>
>
> --
> Zac Spitzer
> Solution Architect / Director
> Ennoble Consultancy Australia
> http://www.ennoble.com.au
> http://zacster.blogspot.com
> +61 405 847 168
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120809/705a76ae/attachment.html>


More information about the Users mailing list