|
||||
[maplab-users] Re: Query problem in MapLabMario noti@ciaoweb.itMon, 16 Jun 2003 12:13:12 +0200
|
This is a multi-part message in MIME format. ------=_NextPart_000_005F_01C33400.A893F8E0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi, I'm trying again to query the map in my maplab application. It seems that window.open command doesn't work if called in = doneLoading() function of main .phtml file. In fact, if I use window.open and the query string as argument outside = the function (i.e. in a link tag) the query windows opens regularly and displays query results. Maybe it's my javascript very low knowledge.... Any idea? thanks Mario ----- Original Message -----=20 From: Valerio Noti=20 To: maplab-users@dmsolutions.ca=20 Sent: Thursday, June 12, 2003 2:56 PM Subject: [maplab-users] Re: Query problem in MapLab Ok, thank you Paul. I tried to modify javascript code in .phtml file: it seems that it cannot open the new window for query results. In fact, if I insert QUERYMAP in mapfile, the querymap appears in the main map windows. Mario ----- Original Message -----=20 From: "Paul Spencer" <pagameba@magma.ca> To: "Valerio Noti" <noti@ciaoweb.it> Cc: "Maplab-users" <Maplab-users@dmsolutions.ca> Sent: Thursday, June 12, 2003 1:45 PM Subject: Re: [Mapserver-users] Query problem in MapLab > Mario, please use the maplab-users mailing list to ensure a response = for=20 > maplab-specific issues. >=20 > I've cc'd it here. There may be a problem in maplab, we'll take a = look=20 > and let you know. >=20 > Cheers, >=20 > Paul >=20 > Valerio Noti wrote: > > Hi, > > I'm new to Mapserver/MapLab. > > i'm trying to build a web application with MapLab GMapFactory = module. > > I'm using MapServer 3.6.6 for win32, mapScript 3.6 dll and MapLab = 2.0.1 on > > IIS5. > > I wrote mapfile with several shapefiles and the application seems to = work > > except > > for the query button. > > The layer section for shapefiles is as the following: > > /******************************** > > LAYER > > NAME "Region" > > STATUS DEFAULT > > DATA "Region" > > TYPE POLYGON > > CLASSITEM "Regione" > > UNITS METERS > > LABELITEM "Region" > > CLASS > > EXPRESSION /./ > > OUTLINECOLOR 128 128 128 > > COLOR 125 225 185 > > TEMPLATE "region.html" > > LABEL > > COLOR 0 0 0 > > SIZE tiny > > FONT Arial > > END > > END > > TOLERANCE 5 > > HEADER "region_header.html" > > FOOTER "region_footer.html" > > END > > /******************************** > > When I try to query the map nothing happens and the browser gives me = the > > following error: > > /******************************** > > "Property not supported by the object" > > Raw 36 > > Char 9 > > = http://192.168.1.51/maplab-2.0-release/projects/gmf_apps/toscana/toscana.= pht > > = ml?layer_status%5B%5D=3DRegioni&PrevStateKey=3DBBOX%3D1570594.70743%2C481= 2069.21 > > = 037%2C1711125.72305%2C4952891.36545%7CSRS%3D%7CMAPSIZE%3D400%2C400%7CLAYE= RS% > > = 3D0&NotFirstLoad=3D1&RosaMode=3D1&ROSA_CMD=3DQUERY&INPUT_TYPE=3Dauto_rect= &INPUT_COOR > > D=3D241%2C334%3B241%2C334&QueryString=3D > > /******************************** > > I opened phtml file and commented the line 36: > > /******************************** > > // give it focus > > mapquery.focus(); > > /******************************** > > After that nothing happens when I try to query the map. > > I got the same error when I build the application in HTML without = rosa > > applet. > >=20 > > Any help appreciated > >=20 > > Thanks > >=20 > > Mario > >=20 > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > >=20 >=20 > --=20 > Paul Spencer > Applications and Software Development > DM Solutions Group Inc. > http://www.dmsolutions.ca >=20 >=20 > ------=_NextPart_000_005F_01C33400.A893F8E0 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dwindows-1252"> <META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I'm trying again to query the map in my = maplab=20 application.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>It seems that window.open command = doesn't work if=20 called </FONT><FONT face=3DArial><FONT size=3D2>in doneLoading() = function of main=20 .phtml file.</FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2>In fact, if I use window.open and the = query string=20 as argument outside the function (i.e. in a link tag) the=20 query</FONT></DIV> <DIV><FONT face=3DArial size=3D2>windows opens regularly and displays = query=20 results.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Maybe it's my javascript very low=20 knowledge....</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Any idea?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>thanks</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Mario</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV style=3D"FONT: 10pt arial">----- Original Message -----=20 <DIV style=3D"BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A=20 title=3Dnoti@ciaoweb.it href=3D"mailto:noti@ciaoweb.it">Valerio Noti</A> = </DIV> <DIV><B>To:</B> <A title=3Dmaplab-users@dmsolutions.ca=20 href=3D"mailto:maplab-users@dmsolutions.ca">maplab-users@dmsolutions.ca</= A> </DIV> <DIV><B>Sent:</B> Thursday, June 12, 2003 2:56 PM</DIV> <DIV><B>Subject:</B> [maplab-users] Re: Query problem in = MapLab</DIV></DIV> <DIV><BR></DIV> <DIV><FONT face=3DArial size=3D2> <DIV>Ok,</DIV> <DIV>thank you Paul.</DIV> <DIV>I tried to modify javascript code in .phtml file:</DIV> <DIV>it seems that it cannot open the new window for query = results.</DIV> <DIV>In fact, if I insert QUERYMAP in mapfile, the querymap = appears</DIV> <DIV>in the main map windows.</DIV> <DIV> </DIV> <DIV>Mario</DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV>----- Original Message -----=20 <DIV>From: "Paul Spencer" <<A=20 href=3D"mailto:pagameba@magma.ca">pagameba@magma.ca</A>></DIV> <DIV>To: "Valerio Noti" <<A=20 href=3D"mailto:noti@ciaoweb.it">noti@ciaoweb.it</A>></DIV> <DIV>Cc: "Maplab-users" <<A=20 href=3D"mailto:Maplab-users@dmsolutions.ca">Maplab-users@dmsolutions.ca</= A>></DIV> <DIV>Sent: Thursday, June 12, 2003 1:45 PM</DIV> <DIV>Subject: Re: [Mapserver-users] Query problem in MapLab</DIV></DIV> <DIV><BR></DIV>> Mario, please use the maplab-users mailing list to = ensure a=20 response for <BR>> maplab-specific issues.<BR>> <BR>> I've cc'd = it=20 here. There may be a problem in maplab, we'll take a look <BR>> = and let=20 you know.<BR>> <BR>> Cheers,<BR>> <BR>> Paul<BR>> = <BR>>=20 Valerio Noti wrote:<BR>> > Hi,<BR>> > I'm new to=20 Mapserver/MapLab.<BR>> > i'm trying to build a web application = with MapLab=20 GMapFactory module.<BR>> > I'm using MapServer 3.6.6 for win32, = mapScript=20 3.6 dll and MapLab 2.0.1 on<BR>> > IIS5.<BR>> > I wrote = mapfile with=20 several shapefiles and the application seems to work<BR>> > = except<BR>>=20 > for the query button.<BR>> > The layer section for shapefiles = is as=20 the following:<BR>> > /********************************<BR>> = >=20 LAYER<BR>> > NAME "Region"<BR>>=20 > STATUS DEFAULT<BR>> = > =20 DATA "Region"<BR>> > TYPE POLYGON<BR>>=20 > CLASSITEM "Regione"<BR>>=20 > UNITS METERS<BR>> > LABELITEM=20 "Region"<BR>> > CLASS<BR>>=20 > EXPRESSION /./<BR>> = > =20 OUTLINECOLOR 128 128 128<BR>> > COLOR 125 = 225=20 185<BR>> > TEMPLATE "region.html"<BR>> > = LABEL<BR>>=20 > COLOR 0 0 0<BR>> > SIZE tiny<BR>>=20 > FONT Arial<BR>> > END<BR>> = > =20 END<BR>> > TOLERANCE 5<BR>> > HEADER = "region_header.html"<BR>> > FOOTER=20 "region_footer.html"<BR>> > END<BR>> >=20 /********************************<BR>> > When I try to query the = map=20 nothing happens and the browser gives me the<BR>> > following=20 error:<BR>> > /********************************<BR>> > = "Property not=20 supported by the object"<BR>> > Raw 36<BR>> > Char 9<BR>> = > <A=20 href=3D"http://192.168.1.51/maplab-2.0-release/projects/gmf_apps/toscana/= toscana.pht">http://192.168.1.51/maplab-2.0-release/projects/gmf_apps/tos= cana/toscana.pht</A><BR>>=20 >=20 ml?layer_status%5B%5D=3DRegioni&PrevStateKey=3DBBOX%3D1570594.70743%2= C4812069.21<BR>>=20 >=20 037%2C1711125.72305%2C4952891.36545%7CSRS%3D%7CMAPSIZE%3D400%2C400%7CLAYE= RS%<BR>>=20 >=20 3D0&NotFirstLoad=3D1&RosaMode=3D1&ROSA_CMD=3DQUERY&INPUT_= TYPE=3Dauto_rect&INPUT_COOR<BR>>=20 > D=3D241%2C334%3B241%2C334&QueryString=3D<BR>> >=20 /********************************<BR>> > I opened phtml file and = commented=20 the line 36:<BR>> > /********************************<BR>>=20 > // give it = focus<BR>>=20 > = mapquery.focus();<BR>>=20 > /********************************<BR>> > After that nothing = happens=20 when I try to query the map.<BR>> > I got the same error when I = build the=20 application in HTML without rosa<BR>> > applet.<BR>> > = <BR>> >=20 Any help appreciated<BR>> > <BR>> > Thanks<BR>> > = <BR>>=20 > Mario<BR>> > <BR>> >=20 _______________________________________________<BR>> > = Mapserver-users=20 mailing list<BR>> > <A=20 href=3D"mailto:Mapserver-users@lists.gis.umn.edu">Mapserver-users@lists.g= is.umn.edu</A><BR>>=20 > <A=20 href=3D"http://lists.gis.umn.edu/mailman/listinfo/mapserver-users">http:/= /lists.gis.umn.edu/mailman/listinfo/mapserver-users</A><BR>>=20 > <BR>> <BR>> -- <BR>> Paul Spencer<BR>> Applications and = Software Development<BR>> DM Solutions Group Inc.<BR>> <A=20 href=3D"http://www.dmsolutions.ca">http://www.dmsolutions.ca</A><BR>> = <BR>>=20 <BR>> </FONT></DIV></BODY></HTML> ------=_NextPart_000_005F_01C33400.A893F8E0--
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |