[Mapserver-users] more than one map, multiple ms_newmapObject()
Daniel Morissette
morissette at dmsolutions.ca
Tue Sep 9 07:16:56 PDT 2003
If you want to render the same map multiple times then you can simply
call $map->draw() multiple times on the same map object.
About calling ms_newMapObj() twice like you did, this worked for me when
I tried it with MapServer 4.0 two minutes ago. If you have a systematic
way to reproduce this with MapServer 4.0 then please file a bug in
bugzilla with the full details to reproduce, including mapfile, system
configuration information, etc.
Daniel
Pierre GIRAUD wrote:
> Hello,
>
> I didn't find any message corresponding to my question in the archive
> but this problem might have been discussed many times.
>
> To render several maps, how can I create more than one map object in php
> Mapscript ?
>
> Using this script,
> ------------------------------------------------------------
> //create the map objects
> $map1 = ms_newMapObj($map_file);
> $map2 = ms_newMapObj($map_file);
> ------------------------------------------------------------
> I get the following errors : "MapServer Error in msLoadMap(): ...",
> "Unable to open map file...".
>
> Is it possible to avoid those errors.
>
> Thanks.
>
> Pierre GIRAUD
More information about the MapServer-users
mailing list