Hello!
Imagine I have a GeoJSON stream, which contains this entry:
{
"type":"Feature",
"geometry":{"type":"Point","coordinates":[132.1567,43.3499]},
"properties":
{
"modelFile":"\/models\/building_textures\/building_textures.gltf"
},
"id":"bm_55d3605ef5a502e86b05becf"
},
In my JavaScript code, that entity is represented in the entity variable below.
scope.viewer.dataSources.add(dataSource);
var entities = dataSource.entities.values;
var colorHash = {};
for (var i = 0; i < entities.length; i++) {
var entity = entities[i];
How can I access the value of the "modelFile" property of the GeoJSON property?
Thanks in advance
Dmitri Pisarenko