Closed stephenrjones closed 9 years ago
This has been implemented in the latest upgrade. On the Layers list page, there's a menu function for to 'Import KML/KMZ' files. The File import page allows a user to specify a KML/KMZ file and a name; upon import the file will be uploaded to the server and a new layer created automatically. Where these files are stored will be specified by the 'KML_REPOSITORY_ROOT' path specified in the settings file
Right now the system is totally dependent on outside layers to build system maps. Recommend providing a means to import a file, which will then be hosted on the local system as a layer, with the layer object created upon import and optionally assigned to a Job. As a first pass, we'll provide an import page that will allow the user to drag&drop a kmz layer into the page, assign a name, and optionally choose Jobs that will use this Layer. Upon completion of the form, the system will upload the kmz file, expand it to a local directory, create a kml object in the database for this layer, and assign it to the appropriate Jobs.