IE11

68 views
Skip to first unread message

Julie

unread,
Jun 3, 2019, 8:06:20 AM6/3/19
to JSTS devs
Hi, I'm using jsts and i find it great. I'd like to know if there is a version with a compatibility with IE11 (not ES6). I tried 1.3.0 and i have a "syntax error" throwing at the loading, exactly thje same than the last one.
Thank you, have a nice day.

Björn

unread,
Jun 3, 2019, 8:14:41 AM6/3/19
to JSTS devs
Try 1.6.2.

Julie

unread,
Jun 3, 2019, 8:26:10 AM6/3/19
to JSTS devs
Thank you so much for your answer !
Yes, no more syntax error, but the parser.inject method does not exists any more.
In that code :
var parser = new jsts.io.OL3Parser();
parser.inject(Point, LineString, LinearRing, Polygon, MultiPoint, MultiLineString, MultiPolygon);

I don't know exactly how to find the doc for this version ?

Thanks again

Julie

unread,
Jun 3, 2019, 9:50:53 AM6/3/19
to JSTS devs
My bad, this works perfectly. I was having a cache problem.
Thank you for your time !
Have fun !

சுடர் SUDAR

unread,
Jun 14, 2020, 4:42:38 PM6/14/20
to JSTS devs
Hi Bjorn,
I have tried to use 1.6.2 version in IE11. But my page is breaking.

Sample code what  i am using...
My helper.js file
const jsts = require('jsts');
// import * as jsts from 'jsts'; --tried this as well

 const googleMaps2JTS = boundaries => {
   const coordinates = [];
   for (let i = 0; i < boundaries.getLength(); i += 1) {
     coordinates.push(
       new jsts.goem.Coordinate(
         boundaries.getAt(i).lat(),
         boundaries.getAt(i).lng(),
       ),
     );
   }
   coordinates.push(coordinates[0]);
   return coordinates;
 };

In react component i am trying import 

import {
  googleMaps2JTS ,
from './_helper';

when i am using the above './_helper' import the react page is breaking...Please help me
Reply all
Reply to author
Forward
0 new messages