Hello,
I'm trying to change the path property of a ShapefileFeatureTable by a fileUrl taked from a FileDialog.
I'm trying with this code:
Mapview{
id:mapView
Map{
FeatureLayer{
ShapefileFeatureTable{
id:shpfile
}
}
}
}
FileDialog { id: fileDialog
title: "Ouvrir un fichier shapefile"
folder: shortcuts.home
nameFilters: [ "Shapefile (*.shp)"]
onAccepted: {
fileDialog.close
shpfile.path=fileUrl
shpfile.retryLoad()
}
onRejected: {
fileDialog.close() }
}
The Probem is: on the first add it's work, but on the second add it look like that the path does not change it remain the first Shapfile path.
Thank you for your Help