Node background-image not working (Only images from Flickr display)

590 views
Skip to first unread message

Joel Brogan

unread,
Dec 1, 2016, 5:30:52 PM12/1/16
to cytoscape-helpdesk
Hello all,

I am having trouble getting the background-image node property to work.  

I am simply using the "Images & breadthfirst layout" demo as a test example, but I cannot even get that to work.

In the demo, within the 'code.js' file, if I change any image path to anything other than staticflickr, the image will not display. For instance:

If I change 

    .selector('#bird')
      .css({
      })

to 
    .selector('#bird')
      .css({
      })

The image shows up blank in the graph (as shown in the attached image).

I have tried local files, multiple other images hosted on different sites, and the only images I can get to work are from flickr.

Am I completely missing something?

Thanks,
Joel

graph-shot.png

piet molenaar

unread,
Dec 2, 2016, 3:15:24 AM12/2/16
to cytoscape-helpdesk
Hi Joel,
This is the cytoscape java application helpdesk, the cytoscape.js community answers questions on http://stackoverflow.com/questions/tagged/cytoscape.js 
Cheers,
Piet

--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To post to this group, send email to cytoscape-helpdesk@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
For more options, visit https://groups.google.com/d/optout.



--
Piet Molenaar
piet...@gmail.com
Department of Oncogenomics, M1-131
Academic Medical Center
University of Amsterdam
Meibergdreef 9
1105 AZ Amsterdam
the Netherlands

tel (+31) 20-5666592
fax (+31) 20-6918626
Reply all
Reply to author
Forward
0 new messages