You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create WKT string for polygon with more than 1 hole in it.
Read WKT string and use toObject method, to create polygon object.
Use fromObject method with previously created polygon object.
Write WKT string from previously loaded object.
In result WKT string there should be polygon coordinates, coordinates of first hole and other holes will be "undefined". This is causing problem with disapearing holes.
The text was updated successfully, but these errors were encountered:
Hello!
Yes, I am using Google Maps, but I think it is not caused by google maps.
Even in debugger I saw the string and it has "undefined" there.
I do not have now that old input wkt string. You should make string for
polygon with maybe 3 holes in it and it will reproduce issue. In
badWktString variable there should be "undefined" for more holes after
first hole.
let wktString = "WKT_STRING";
let wicket = new Wkt.Wkt();
wicket.read(wktString);
let polygon = wicket.toObject({
color: '#1E90FF',
strokeColor: '#1E90FF',
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: '#1E90FF',
fillOpacity: 0.35,
editable: false
});
wicket.fromObject(polygon);
let badWktString = wicket.write();
śr., 6 maj 2020 o 14:24 K. Arthur Endsley <[email protected]>
napisał(a):
Steps to reproduce this issue:
In result WKT string there should be polygon coordinates, coordinates of first hole and other holes will be "undefined". This is causing problem with disapearing holes.
The text was updated successfully, but these errors were encountered: