I need to change my imageResource everytime a certain object is detected in my data function(commented in code). Is it possible to a certain methode like the one that is used to alter text in a label?
//image.text = "foto/" + detect + ".png"; <<<<--------------------------------------- needs to alter image here with certain methode
}
</script>
</head>
<body>
</body>
</html>
Greetings,
Tim
A
Andreas Fötschl
said
over 10 years ago
Hi Timmy!
ImageResources paths are not meant to be changed at runtime. You may define a set of ImageResources and adjust the GeoObjects cam-drawables instead, using geoObject.drawables.addCamDrawable and geoObject.drawables.removeCamDrawable
Timmy Vanuytsel