JSTS IE11 is not working

65 views
Skip to first unread message

சுடர் SUDAR

unread,
Jun 14, 2020, 4:51:29 PM6/14/20
to JSTS devs
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