How do you use embedded relative url address in a cmzl file?

25 visualizzazioni
Passa al primo messaggio da leggere

maynard crebs

da leggere,
2 lug 2017, 21:13:3402/07/17
a cesium-dev
Maybe I've missed something but I'm trying to define some image properties for a billboard definition for use in my CMZL file.

I've tried something like this:

var czml = [{
    "id" : "document",
    "name" : "Basic CZML billboard and label",
    "version" : "1.0"
}, {
    "id" : "some-unique-id",
    "name" : "AGI",
    "description" : "<p><a href='http://www.agi.com' target='_blank'>Analytical Graphics, Inc.</a> (AGI) founded Cesium.</p>",
    "billboard" : {
        "image" : 'Assets/Textures/maki/camera.png',
        "scale" : 10
    },

A second question I about CMZL files is how can you use the Cesium constants to set say "color" properties?
 or make a call to an javascript method on the client to provide the value?

Scott Hunter

da leggere,
5 lug 2017, 13:43:3005/07/17
a cesiu...@googlegroups.com
URIs in CZML are defined relative to the location of the CZML document itself (if loaded from a URI), otherwise, relative to the page location.

So your example would work if your document was a sibling of the Assets directory.



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

maynard crebs

da leggere,
7 lug 2017, 11:42:3807/07/17
a cesium-dev
thanks for the clarification.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi