<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Oliver!<br>
<br>
Thank you for the fast response!<br>
Oliver Christen schreef:
<blockquote cite="mid:0D920D6DDCA4453BA661CE5155BE5F61@maunakea"
 type="cite">
  <title>3DSite</title>
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.6000.16525" name="GENERATOR">
  <div><font color="#000000" size="2">Hi Milo</font></div>
  <div>&nbsp;</div>
  <div><font color="#000000" size="2">cant you use the existing system ?</font></div>
  <div><font color="#000000" size="2"><a moz-do-not-send="true"
 href="http://www.cartoweb.org/doc/cw3.3/xhtml/user.security.html#user.security.plugin_permissions.layers">http://www.cartoweb.org/doc/cw3.3/xhtml/user.security.html#user.security.plugin_permissions.layers</a></font></div>
</blockquote>
Partially I can use it to map usertypes. But the biggest challenge is
the fact that the layer is created by dynamically selecting objects
from a postGIS database. So the DATA parameter in the Mapfile is
dynamic:<br>
DATA 'the_geom from select * from sketch_points where pointsetID = %X%
as skpt USING unique sketch_id' where %X% is replaced by a variable.<br>
<br>
This is repeated for a set of 8 layers.<br>
<br>
Basically I would like to program to operate like this:<br>
<br>
- User accesses the URL and a general map of the world is shown (ready)<br>
&nbsp;&nbsp;&nbsp; (user specific sequence)<br>
&nbsp;&nbsp;&nbsp; - User logs in: a pull-down box for a map for that user comes
available. a second pull-down comes available that presents the user
with the option to select a theme ((ready, but not yet user-specific)<br>
&nbsp;&nbsp;&nbsp; - In the pull-down a default map is selected, user zooms automatic
to the bbox of that map (already implemented; uses a view in the
postGIS db containing the BBOX with a buffer)<br>
&nbsp;&nbsp;&nbsp; - Layers come available in the themes dialog. Default the user
specific layers get turned on. (to be implemented)<br>
&nbsp;&nbsp;&nbsp; - User selects a theme in a second pull-down box -&gt; a thematic
layer should be created and shown<br>
(end of sequence)<br>
- User selects another map<br>
- for the map that was already open the user specific layers should be
removed, the user specific sequence is ran again.<br>
- Users should also be able to switch themes<br>
<br>
<blockquote cite="mid:0D920D6DDCA4453BA661CE5155BE5F61@maunakea"
 type="cite">
  <div>&nbsp;</div>
  <div><font color="#000000" size="2">if you want to change layer data
on-the-fly, you can change some (not all) parameters via mapOverlay</font></div>
  <div><font color="#000000" size="2">see example there</font></div>
  <div><font color="#000000" size="2"><a moz-do-not-send="true"
 href="http://lists.maptools.org/pipermail/cartoweb-users/2007-March/002236.html">http://lists.maptools.org/pipermail/cartoweb-users/2007-March/002236.html</a></font></div>
</blockquote>
I will look&nbsp; at the sample!<br>
<blockquote cite="mid:0D920D6DDCA4453BA661CE5155BE5F61@maunakea"
 type="cite">
  <div><font color="#000000" size="2">dont hesitate to look at the code
of ServerMapOverlay.php to see the available action possible, its
pretty strightforward</font></div>
  <div><font color="#000000" size="2">also <a moz-do-not-send="true"
 href="http://www.cartoweb.org/doc/cw3.3/apidoc/Plugins/ServerMapOverlay.html">http://www.cartoweb.org/doc/cw3.3/apidoc/Plugins/ServerMapOverlay.html</a></font></div>
</blockquote>
<br>
<blockquote cite="mid:0D920D6DDCA4453BA661CE5155BE5F61@maunakea"
 type="cite">
  <div>&nbsp;</div>
  <div><font color="#000000" size="2">regards</font></div>
  <div><font color="#000000" size="2">Oliver</font></div>
  <div>&nbsp;</div>
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div
 style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message -----</div>
    <div
 style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
    <a moz-do-not-send="true" title="mlinden@zeelandnet.nl"
 href="mailto:mlinden@zeelandnet.nl">Milo van der Linden</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
    <a moz-do-not-send="true" title="cartoweb-users@lists.maptools.org"
 href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</a>
    </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Wednesday, August 29, 2007 10:40 AM</div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
[Cartoweb-users] MapFile based upon user credentials</div>
    <div><br>
    </div>
    <font face="Helvetica, Arial, sans-serif">Hello list!<br>
    <br>
I want my mapfile to have layers based upon user credentials. For
instance:<br>
- A user logs in to the system. The moment the user logs in, a specific
postGIS database should be accessed for certain fixed layers. Within
the query to access the layer, a parameter pointsetID is introduced
restricting the user to only get points that validate with the
pointsetID should get returned.<br>
    <br>
My feeling tells me to use the mapOverlay, but it is not to well
documented.<br>
    <br>
Any tips or tricks?<br>
    </font>
    <div class="moz-signature">-- <br>
    <style type="text/css">BODY {
        MARGIN: 5px; BACKGROUND-COLOR: #ffffff
}
BODY {
        FONT-SIZE: 12px; COLOR: #333333; FONT-FAMILY: Arial, Helvetica, sans-serif
}
TD {
        FONT-SIZE: 12px; COLOR: #333333; FONT-FAMILY: Arial, Helvetica, sans-serif
}
TH {
        FONT-SIZE: 12px; COLOR: #333333; FONT-FAMILY: Arial, Helvetica, sans-serif
}
.style4 {
        FONT-SIZE: 9px
}
.style5 {
        FONT-SIZE: 9px; COLOR: #cccccc
}
    </style>
    <meta content="MSHTML 6.00.2900.2912" name="GENERATOR">
    <br>
    <table border="0" cellpadding="0" cellspacing="0" width="400">
      <tbody>
        <tr>
          <td rowspan="3" align="left" height="0" valign="bottom"
 width="15"><br>
          </td>
          <td colspan="2" align="left" height="78" valign="top"
 width="0">
          <p class="style4">Milo van der Linden <br>
          <a moz-do-not-send="true" href="skype:milovanderlinden?add">skype:
milovanderlinden</a><br>
          <a moz-do-not-send="true" href="mailto:mlinden@zeelandnet.nl">mlinden@zeelandnet.nl</a><br>
          <a moz-do-not-send="true"
 href="mailto:milovanderlinden@gmail.com">milovanderlinden@gmail.com</a><br>
          <a moz-do-not-send="true" href="mailto:milo@3dsite.nl">milo@3dsite.nl</a><br>
          <a moz-do-not-send="true" href="http://www.3dsite.nl">http://www.3dsite.nl</a><br>
          </p>
          </td>
          <td rowspan="3" align="left" height="0" valign="top"
 width="15">&nbsp;</td>
          <td valign="top" width="300">
          <p class="style5"><span lang="NL">De informatie in dit
bericht reflecteert mijn persoonlijke mening en niet die van een
bedrijf of instantie. Aan de informatie kunnen geen rechten worden
ontleend. Indien dit bericht onderdeel is van een forum, mailing-list
of community dan gelden automatisch de bij het betreffende medium
behorende voorwaarden.</span> <span lang="EN">The information in this
message reflects my personal opinion and not that of a company or
public body. All rights reserved.If this message is contained in a
mailing-list or community, the rights on the medium are automatically
adapted.</span></p>
          </td>
        </tr>
      </tbody>
    </table>
    </div>
    <p> </p>
    <hr> _______________________________________________<br>
Cartoweb-users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/cartoweb-users">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a><br>
  </blockquote>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<title>3DSite</title>
<meta http-equiv="Content-Type" content="text/html; ">
<style type="text/css">
<!--
body {
        background-color: #FFFFFF;
        margin-left: 5px;
        margin-top: 5px;
        margin-right: 5px;
        margin-bottom: 5px;
}
body,td,th {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        color: #333333;
}
.style4 {font-size: 9px; }
.style5 {font-size: 9px; color: #CCCCCC; }
-->
</style>
<meta content="MSHTML 6.00.2900.2912" name="GENERATOR">
<br>
<table border="0" cellpadding="0" cellspacing="0" width="400">
  <tbody>
    <tr>
      <td rowspan="3" align="left" height="0" valign="bottom" width="15"><br>
      </td>
      <td colspan="2" align="left" height="78" valign="top" width="0">
      <p class="style4">Milo van der Linden
      <br>
      <a href="skype:milovanderlinden?add">skype: milovanderlinden</a><br>
      <a href="mailto:mlinden@zeelandnet.nl">mlinden@zeelandnet.nl</a><br>
      <a href="mailto:milovanderlinden@gmail.com">milovanderlinden@gmail.com</a><br>
      <a href="mailto:milo@3dsite.nl">milo@3dsite.nl</a><br>
      <a href="http://www.3dsite.nl">http://www.3dsite.nl</a><br>
      </p>
      </td>
      <td rowspan="3" align="left" height="0" valign="top" width="15">&nbsp;</td>
      <td valign="top" width="300">
      <p class="style5"><span lang="NL">De informatie in dit bericht
reflecteert mijn persoonlijke mening en niet die van een bedrijf of
instantie. Aan de informatie kunnen geen rechten worden ontleend.
Indien dit bericht onderdeel is van een forum, mailing-list of
community dan gelden automatisch de bij het betreffende medium
behorende voorwaarden.</span>
      <span lang="EN">The information in this message reflects my
personal opinion and not that of a company or public body. All rights
reserved.If this message is contained in a mailing-list or community,
the rights on the medium are automatically adapted.</span></p>
      </td>
    </tr>
  </tbody>
</table>
</div>
</body>
</html>