Hello,

write a new plugin with a client part that retrieves the user choice about the raster file to use (client class must implements the "GuiProvider" interface) and transmits it to the server part of the plugin (client class must implements the "ServerCaller" interface).

The server part may look like :

class ServerRasterFileSelector  extends ClientResponderAdapter {

    public function handlePreDrawing($request) {

        $layer = new LayerOverlay();
        $layer->name = "the_name_of_the_layer_to_update";
        $layer->data = "the_new_raster_file_path";

        $mapOverlay = $this->serverContext->getPluginManager()->mapOverlay;
        $mapOverlay->updateMap($layer);
    }
}

AS

Stéphane LII wrote:
Hello,
i have also this problem. J'ai aussi un problème similaire.
i would like to draw different raster file depending on the name of a file on the fly. Je voudrai qu'un utilisateur choisisse un fichier raster selon par exemple son nom et que le paramètre DATA d'une couche soit modifié en conséquence à la volée.
Is it possible ? Comment effectuer cela. ?
Merci d'avance pour des éclaircissements.
_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to