[Mapserver-users] virtual layers befor map file layers
Eric Bridger
eric at gomoos.org
Tue Mar 16 06:40:37 PST 2004
I'm not quite sure I understand. What prevents you from re-arragning the
the order of your Array?
Anyway, my approach is to not use $map->draw(), but $layer->draw() for
each of my layers. Then I have full control of the order and draw the
rasters first,dynamical points after.
On Tue, 2004-03-16 at 09:30, Gijs Epping wrote:
> Well i understand that but how can I add the dynamic layer before the
> map layers it is now like this:
>
> $gpoMap = ms_newMapObj("mapfiles/test.map");
> virtual_layers($gpoMap);
>
> One content of the virtual_layer function looks like this:
> $layer1 = ms_newlayerObj($map);
> $layer1->set("name", "raster1");
> $layer1->set("group", "astandaard");
> $layer1->setMetaData("LYRNAME","lyrraster1");
> $layer1->set("type", MS_LAYER_RASTER);
> $layer1->set("status", MS_ON);
> $layer1->set("minscale", 30000);
> $layer1->set("maxscale", 150000);
> $layer1->set("tileindex",
> '/var/www/html/datalocal/tileindex/raster1.shp');
> $layer1->set("tileitem", location);
>
> The result of this in an array looks like this:
> Array ( [0] => nederland [1] => pointdata [2] => MapLayer [3] => raster1
> [4] => raster2 [5] => raster3 [6] => raster4 )
>
> The rasters must load before the pointdata. So what you are telling me
> is that I never can change to load order of the map may it be virtual or
> dynamical the load order cannot be changed.
>
>
>
>
>
>
>
>
>
> -----Oorspronkelijk bericht-----
> Van: Eric Bridger [mailto:eric at gomoos.org]
> Verzonden: dinsdag 16 maart 2004 14:56
> Aan: Gijs Epping
> CC: Mapserver List
> Onderwerp: Re: [Mapserver-users] virtual layers befor map file layers
>
> The order of you layers in your map file IS significant. Your raster
> layers must come first, then you points. If you are using mapscript the
> same principal applies, raster or polygon layers should be drawn first
> then your points.
>
> On Tue, 2004-03-16 at 08:37, Gijs Epping wrote:
> > Hello,
> >
> > I added some virtual layers, but before i do, i add the map file with
> > his own layers (some point data). The problem is that the POINT layers
> > are added before the RASTER layers and so you don't see them because
> > they are behind the rasters.
> >
> > How can you reverse this or change the index of the map layers or
> > dynamic layers.
> >
> > Thanks in advance
> >
> > Gijs
>
>
>
>
>
More information about the MapServer-users
mailing list