Fix infinite recursion error caused when rendering cyclical relations (close #7691)

This commit is contained in:
Quincy Morgan
2020-06-16 10:24:42 -04:00
parent b5377b7587
commit 24b124e536
+7
View File
@@ -300,7 +300,14 @@ export function svgVertices(projection, context) {
function getSiblingAndChildVertices(ids, graph, wireframe, zoom) {
var results = {};
var seenIds = {};
function addChildVertices(entity) {
// avoid redunant work and infinite recursion of circular relations
if (seenIds[entity.id]) return;
seenIds[entity.id] = true;
var geometry = entity.geometry(graph);
if (!context.features().isHiddenFeature(entity, graph, geometry)) {
var i;