|
||||
[Chameleon] legend and context questionsDebbie Pagurek pagurekd@agr.gc.caThu, 11 Mar 2004 09:43:03 -0500
|
This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=_EDCCF0EF.92F39CCC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, thanks for getting back to me on this. First - the context thing works fine, that was something silly on my part ;-). the legend popup remains an issue however. When I run the sample script that you provided, I am first getting an error message: Mapscript: Unable to register functions, unable to load. When I click ok, however, then I do see a listing of the layers with a checkbox next to it. Is that what I should be seeing? When I try my chameleon application again and click on the legend button, I still get an empty pop up box as described below - not a 404 error, but a message "The legend displays the layers in your map" If I click Apply or OK at this point, the map refreshes and I get an error that says: the legend template has no inputs named legendlayername[]. Which makes sense I guess, because nothing is showing in the pop up. How should the layer status be set in the mapfile - Default? On? Other issues in trying to get my chameleon app working: When I do a view source, I am seeing a couple errors right at the top: <!-- ROIManagerMode ParseURL Failed ! --> <!-- ROIRectangleTool ParseURL Failed ! --> <!-- PanMap ParseURL Failed ! --> I appreciate everyone's help in getting my first app up and running. Debbie >>> pagameba@magma.ca 03/10/04 07:34PM >>> Debbie ... you can test your template using a test script outside of chameleon to make sure it actually works: <?php dl( 'php_mapscript_41.dll' ); $oMap = ms_newMapObj( "/ms4w/apps/gmap/htdocs/gmap75.map" ); $oMap->legend->set( "template", "/ms4w/apps/chameleon/htdocs/legend_template_widget.html" ); echo "<table>"; echo $oMap->processLegendTemplate( array() ); echo "</table>"; ?> obviously you'll have to add your own paths. Debbie Pagurek wrote: > OK - now I have the most recent chameleon and mapserver versions > installed properly and the correct documentation to go with it - Thank > you Paul. > I have a lot working but am having trouble seeing a legend. I have > tried the following tags for either an embedded legend: > <cwc2 type="LegendTemplate" visible="true" embedded="true" > template="legend_template.html" popupwidth="500" popupheight="400" > status="false" menubar="false"/> > > nothing shows. > > or a popup: > <cwc2 type="LegendTemplate" styleresource="TextButton" embedded="false" > template="legend_template_widget.html" PopupWidth="350" > PopupHeight="300" Toolbar="false" Status="false" Menubar="false" > Location="false" Visible="true" Image="images/icon_legend.png" > ImageTip="Display Legend" LABEL="Legend"> > <image state="normal"/> > <image state="selected"/> > <image state="hover"/> > </cwc2> > > the popup simply says " The legend displays the layers in your map. " > but I see no legend. > > Also, I tried to save a context map. My mapfile is set up to serve wms > layers, and I know the wms getmap request works. > However, when I click on my "save" button, I get a message that says: > There are no WMS Layers to export. > > I don't think anything is wrong with my mapfile... > anyone have any suggestions? > > Thanks, > Debbie -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- --=_EDCCF0EF.92F39CCC Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Description: HTML <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD> <BODY style="MARGIN-TOP: 2px; FONT: 10pt Arial; MARGIN-LEFT: 2px"> <DIV>Hi,</DIV> <DIV>thanks for getting back to me on this. First - the context thing works fine, that was something silly on my part ;-).</DIV> <DIV> </DIV> <DIV>the legend popup remains an issue however.</DIV> <DIV>When I run the sample script that you provided, I am first getting an error message:</DIV> <DIV>Mapscript: Unable to register functions, unable to load.</DIV> <DIV> </DIV> <DIV>When I click ok, however, then I do see a listing of the layers with a checkbox next to it. Is that what I should be seeing?</DIV> <DIV> </DIV> <DIV>When I try my chameleon application again and click on the legend button, I still get an empty pop up box as described below - not a 404 error, but a message "The legend displays the layers in your map"</DIV> <DIV> </DIV> <DIV>If I click Apply or OK at this point, the map refreshes and I get an error that says:</DIV> <DIV>the legend template has no inputs named legendlayername[]. Which makes sense I guess, because nothing is showing in the pop up.</DIV> <DIV> </DIV> <DIV>How should the layer status be set in the mapfile - Default? On?</DIV> <DIV> </DIV> <DIV>Other issues in trying to get my chameleon app working:</DIV> <DIV>When I do a view source, I am seeing a couple errors right at the top:</DIV> <DIV><!-- ROIManagerMode ParseURL Failed ! --></DIV> <DIV> </DIV> <DIV><!-- ROIRectangleTool ParseURL Failed ! --></DIV> <DIV> </DIV> <DIV><!-- PanMap ParseURL Failed ! --></DIV> <DIV> </DIV> <DIV>I appreciate everyone's help in getting my first app up and running.</DIV> <DIV> </DIV> <DIV>Debbie</DIV> <DIV><BR>>>> pagameba@magma.ca 03/10/04 07:34PM >>><BR>Debbie ...<BR><BR>you can test your template using a test script outside of chameleon to <BR>make sure it actually works:<BR><BR><?php<BR>dl( 'php_mapscript_41.dll' );<BR><BR>$oMap = ms_newMapObj( "/ms4w/apps/gmap/htdocs/gmap75.map" );<BR>$oMap->legend->set( "template", <BR>"/ms4w/apps/chameleon/htdocs/legend_template_widget.html" );<BR><BR>echo "<table>";<BR>echo $oMap->processLegendTemplate( array() );<BR>echo "</table>";<BR>?><BR><BR>obviously you'll have to add your own paths.<BR><BR>Debbie Pagurek wrote:<BR><BR>> OK - now I have the most recent chameleon and mapserver versions <BR>> installed properly and the correct documentation to go with it - Thank <BR>> you Paul.<BR>> I have a lot working but am having trouble seeing a legend. I have <BR>> tried the following tags for either an embedded legend:<BR>> <cwc2 type="LegendTemplate" visible="true" embedded="true" <BR>> template="legend_template.html" popupwidth="500" popupheight="400" <BR>> status="false" menubar="false"/><BR>> <BR>> nothing shows.<BR>> <BR>> or a popup:<BR>> <cwc2 type="LegendTemplate" styleresource="TextButton" embedded="false" <BR>> template="legend_template_widget.html" PopupWidth="350" <BR>> PopupHeight="300" Toolbar="false" Status="false" Menubar="false" <BR>> Location="false" Visible="true" Image="images/icon_legend.png" <BR>> ImageTip="Display Legend" LABEL="Legend"><BR>> <image state="normal"/><BR>> <image state="selected"/><BR>> <image state="hover"/><BR>> </cwc2><BR>> <BR>> the popup simply says " The legend displays the layers in your map. " <BR>> but I see no legend.<BR>> <BR>> Also, I tried to save a context map. My mapfile is set up to serve wms <BR>> layers, and I know the wms getmap request works.<BR>> However, when I click on my "save" button, I get a message that says: <BR>> There are no WMS Layers to export.<BR>> <BR>> I don't think anything is wrong with my mapfile...<BR>> anyone have any suggestions?<BR>> <BR>> Thanks,<BR>> Debbie<BR><BR>-- <BR> -----------------------------------------------------------------<BR>|Paul Spencer spencer@dmsolutions.ca |<BR>|-----------------------------------------------------------------|<BR>|Applications & Software Development |<BR>|DM Solutions Group Inc <A href="http://www.dmsolutions.ca/|">http://www.dmsolutions.ca/|</A><BR> -----------------------------------------------------------------<BR><BR></DIV></BODY></HTML> --=_EDCCF0EF.92F39CCC--
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |