Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

FYI Correction to Icons GoJS Sample

$
0
0

@anguskwalker wrote:

I’ve been struggling to find out why my default SVG icon wasn’t displaying using the example above.

I discovered that the code in your example has a bug in the geoFunc function:

The line

  if (geo === undefined) geo = "heart";  // use this for an unknown icon name

Should read

  if (geo === undefined) geo = icons["heart"];  // use this for an unknown icon name

Then everything works nicely.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles