Hello,
I use different markers in google maps … I copy all in the assets folder and set the path in code.
So far all was running fine, when I emulate iOS.
But as I copy to my iPhone via Xcode, the images are not found.
I read a lot and try a lot, but nothing works.
ionic -v
6.16.3
Cordova -v
10.0.0
assets structure:
my code:
const markerCluster: MarkerCluster = this.map.addMarkerClusterSync({
markers: markerPoints,
icons: [
{
min: 3,
max: 5,
url: './assets/maps/m1.png',
label: {
color: 'white'
}
},
{
min: 6,
max: 10,
url: './assets/maps/m2.png',
label: {
color: 'white'
}
},
{
min: 11,
max: 20,
url: './assets/maps/m3.png',
label: {
color: 'white'
}
},
]
});
When I emulate with:
ionic cordova emulate ios --livereload
Its running ok … but not on my iPhone (Android not tested so far)
How I need set the path to the assets folder?
Thank you!
1 post - 1 participant