Hi I have a project for which I am embedding pmapper 2.1.1 into an iframe that is within a webapp (called shirt) implemented with the google web toolkit.
I have a few issues that i have been trying to solve for a few days now. I have searched the list to no avail. I would love to here from anyone that has experience in embedding pmapper into other webapps. the url for shirt is: http://agtrix.no-ip.info/Shirt/ You will have to log in (user pmapper, pw pmapper) The url for the pmapper webapp that is being wrapped is (this works fine): http://agtrix.no-ip.info/mapper/ the url that shirt loads into the iframe is: http://agtrix.no-ip.info/mapper/map.phtml?dg=Frame,Vegetation,Waterbodies,Topography,Localities,Transport,Vehicles,Hazards,Blocks&me=153.39004735,-29.0381921166,153.459723709,-28.9800605735&language=en&config=shirt my issues are: 1. the slider works but has the wrong initial position, it generates the error: Error: [Exception... "'Permission denied to get property Window.myslider' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] 2. Some of my layers dont show even though i can search for them, see the layer 'Blocks' (search for grower 'rose'). 3. the autorefresh doesnt work - generates a javascript error as well. 4. the zoomextent (&me=.....) only works sometimes. 5. the mutual disable list generates a php error but it is commented out. [02-Nov-2006 17:27:28] P.MAPPER-ERROR: Layer/Group '' not existing. Check '/config/config.ini' file definition for section 'mutualDisableList'. below are my mapfile, config and custom files config_shirt.ini: ;********************************************************************************* ; Copyright (c) 2003-2006 Armin Burger ; ; Permission is hereby granted, free of charge, to any person obtaining ; a copy of this software and associated documentation files (the "Software"), ; to deal in the Software without restriction, including without limitation ; the rights to use, copy, modify, merge, publish, distribute, sublicense, ; and/or sell copies of the Software, and to permit persons to whom the Software ; is furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included ; in all copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS ; FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR OR ; COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER ; IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN ; CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ;********************************************************************************** ;************************************************; ; CONFIGURATION FILE FOR MAPSERVER APPLICATION ; ; Is read by init.php and startup_config.php ; ; Change according to application ; ; Comments are semicolons ; ; ;************************************************; [GENERAL] ; p.mapper version pmapper = 2.1.1 ;==================================================== ; MapServer Version ; necessary only if extension dl() function is used ; corresponding to naming of php_mapscript_xx.dll/.so ; e.g. for php_mapscript_44.dll set ; msVersion = 44 ; === MANDATORY === ;---------------------------------------------------- msVersion = 48 ;======================================= ; Configuration directory for ; js_config.php & php_config.php ; without slashes or backslashes ; === OPTIONAL === ;--------------------------------------- pm_config_location = shirt ;================================= ; WEB LOCATION for INCPHP dir ; === OPTIONAL === ;--------------------------------- ;pm_incphp_location = ../../pmapper2lib/incphp ;================================= ; WEB LOCATION for JAVASCRIPT dir ; === OPTIONAL === ;--------------------------------- ;pm_javascript_location = ../../pmapper2lib/javascript ;================================================================== ; MAP FILE ; absolute path in file system or filename in 'pm_config_location' ; Use slashes (/), no backslashes (\) ; === MANDATORY === ;------------------------------------------------------------------ mapFile = default.map ;================================= ; DEFAULT LANGUAGE ;--------------------------------- pm_default_language = en ;=============================== ; Character encoding settings ; Default character set ; UTF-8 ;------------------------ defCharset = UTF-8 ; if map file contains non-ASCII characters ; eg for layer DESCRIPTION or CLASS names, set value to 1 ;---------------------------------------------------------- map2unicode = 1 ;========================================================================== ; ; LAYERS/GROUPS DEFINED MANUALLY ; ;========================================================================== ; ALL groups displayed in TOC in this order ; - without definition, the order from map file will be taken. ; - separated with commas ; === MANDATORY === ;----------------------------------------------------------- ;allGroups = countries, cities, corine, dem, rivers, jpl_wms_global_mosaic allGroups = Frame, Vegetation, Waterbodies, Localities, Topography, Transport, Vehicles, Hazards, Blocks ; Default Groups (visible at start) ; === RECOMMENDED === ;---------------------------------- defGroups = Frame, Vegetation, Waterbodies, Localities, Topography, Transport, Vehicles, Hazards, Blocks ; Groups/Layers that shall be mutually disabled ; if one is clicked, the other ones will be disabled ;------------------------------------------------------------- ;mutualDisableList = ; Automatically refresh map when selection of ; layers/grouops has changed in TOC ;-------------------------------------------- layerAutoRefresh = 1 ;========================================================================== ; ; SETTINGS FOR IDENTIFY/SEARCH/SELECT ; ;-------------------------------------------------------------------------- ; Limit for results of selection with select tool or search ;---------------------------------------------------------- limitResult = 300 ; Highlight color for identify/search zoom in ; RGB values, separated with commas ;--------------------------------------------- highlightColor = 0, 255, 255 ; Defines if SELECT function causes feature highlight ;----------------------------------------------------- highlightSelected = off ; AUTOZOOM: zoom in automatically after results are displayed ; possible values: off search nquery (= select) ;------------------------------------------------------------- autoZoom = search ; Add button 'zoom to All Features' to result table ; - possible values: off search nquery (= select) ;--------------------------------------------------- zoomAll = search nquery ; WINDOW DESIGN: ; Query results (identify/search) in separate WINDOW or FRAME ;------------------------------------------------------------- infoWin = window ;infoWin = frame ; Automatically align column contents of result tables of queries ; with regard to data type (default, numeric, currency, etc) ; algorithm in 'sorttable.js', function 'ts_alignCols(table)' ;----------------------------------------------------------------- alignQueryResults = 1 ; Extent buffer for zoom extent for point layers in queries ;----------------------------------------------------------------- pointBuffer = 0.1 ;======================================================================== ; LEGEND: ICONS SIZE AND FORMAT, LEGEND STYLE ;------------------------------------------------------------------------ ; Categories Style: ; - tree or flat ;----------------------------------------- catStyle = tree ;catStyle = flat ; Group/Layer Style: ; - tree or flat ;----------------------------------------- grpStyle = tree ;grpStyle = flat ; Legend Style: ; - attached: together with TOC ; - swap: swapping with TOC ; - popup: separate popup over map ;----------------------------------------- legStyle = attached ;legStyle = swap ;legStyle = popup ;;;; experimental ;;;; ; Use categories to thematically group layers ; categories defined in incphp/custom.php ; works for TOC setting 'flat' and 'tree' ; 1 = yes, 0 = no ;-------------------------------------------- useCategories = 1 ; Layer list (TOC) automatically updated according to scale ;----------------------------------------------------------- scaleLayers = 1 ; Icon Width in pixels ;---------------------- icoW = 30 ; Icon Height in pixels ;----------------------- icoH = 18 ;==================================================================== ; IMAGE FORMATS ; Image format for map and legend icons ; - possible values: png jpeg gif ;-------------------------------------------------------------------- ;imgFormat = jpeg imgFormat = png ; alternative Image format for map ; useful eg. for imagery data ; - possible values: png jpeg gif altImgFormat = jpeg ; layer list (comma separated) that shall activate alternative ; image format when one of these layers has status ON altImgFormatLayers = ;============================================================= ; DEFINE START AND END SCALE FOR ZOOM SLIDER ; => Adapt to specific extents of the datasets ; or use 'max' for automatically calculate from map file ; -> in file 'map.phtml' ;------------------------------------------------------------- ;sliderMax = 40000000 sliderMax = max sliderMin = 10000 ;============================================================= ; TOOLBAR ORIENTATION ; - vertical or horizontal (horizontal currently not working) ;------------------------------------------------------------- toolBarOrientation = vertical ;toolBarOrientation = horizontal ;============================================================== ; PDF PRINT RESOLUTION ; - Factor to increase resolution for better image quality ;-------------------------------------------------------------- pdfres = 2 ;============================================================== ; DPI levels for map download ; - used in downloaddlg.phtml ;-------------------------------------------------------------- dpiLevels = 150, 200, 300 ;============================================================== ; Enable pan mode if right mouse button is pressed ; independent of selected tool ;-------------------------------------------------------------- enableRightMousePan = 1 excerpt from php_config.php: $categories['Base'] = array("Frame", "Vegetation", "Waterbodies", "Topography"); $categories['Infrastructure'] = array("Localities", "Transport"); $categories['Shirt'] = array("Vehicles", "Blocks", "Hazards"); $_SESSION['categories'] = $categories; excerpt from js_config.php: searchList['Vehicles'] = new Array('<?php echo _("Multi")?>', '#c_org_truck_id', '<?php echo _("Multi ID") ?>','f.v_truck_geom'); searchList['Blocks'] = new Array('<?php echo _("Grower")?>', '#c_grower_name', '<?php echo _("Growers name") ?>','f.v_block_geom'); default.map: MAP NAME "Test_01" STATUS ON EXTENT 112.883330 -44.000000 154.000000 -9.000000 SIZE 1100 900 SHAPEPATH "/var/www/GA250K" SYMBOLSET "/var/www/htdocs/symbols/symbol.sym" FONTSET "/var/www/htdocs/fonts/fonts.inc" IMAGETYPE PNG RESOLUTION 96 IMAGECOLOR 160 200 255 UNITS DD DEBUG ON OUTPUTFORMAT NAME png MIMETYPE "image/png" DRIVER "GD/PNG" FORMATOPTION "INTERLACE=OFF" END WEB IMAGEPATH "/var/www/htdocs/images.tmp/" IMAGEURL "/images.tmp/" LOG "/var/www/htdocs/images.tmp/log.txt" END # WEB REFERENCE STATUS ON IMAGE "reference_aust.png" SIZE 170 146 EXTENT 112.883330 -44.000000 154.000000 -9.000000 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END #REFERENCE QUERYMAP STATUS OFF SIZE -1 -1 COLOR 255 255 0 STYLE SELECTED END SCALEBAR STATUS ON COLOR 0 0 0 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 IMAGECOLOR 255 255 255 TRANSPARENT OFF UNITS KILOMETERS INTERVALS 5 SIZE 180 6 STYLE 0 LABEL SIZE TINY OFFSET 0 0 COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END # # # # # # Start of layer definitions # R 1 LAYER GROUP "Frame" NAME "frame" STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "Frame_Regions.TAB" CLASSITEM "FEAT_CODE" LABELITEM "NAME" LABELMAXSCALE 10000000 LABELMINSCALE 10000 CLASS EXPRESSION "mainland" NAME "Mainland" LABEL MINDISTANCE 400 TYPE truetype FONT "Vera" SIZE 8 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END STYLE COLOR 255 255 204 END END CLASS EXPRESSION "sea" NAME "Sea" LABEL TYPE truetype FONT "Vera" MINDISTANCE 400 SIZE 9 POSITION CR COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END STYLE COLOR 160 200 255 END END CLASS EXPRESSION "island" NAME "Island" LABEL TYPE truetype FONT "Vera" MINDISTANCE 400 SIZE 7 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END STYLE COLOR 255 255 204 END END METADATA "DESCRIPTION" "Frame" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # Frame_Regions # R 2 LAYER NAME "vegetation" GROUP "Vegetation" STATUS ON TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "Vege_Vegetation_Regions.TAB" CLASSITEM "FEAT_CODE" CLASS NAME "Forest" EXPRESSION "forest" STYLE COLOR 146 226 146 END END CLASS NAME "Mangrove" EXPRESSION "mangrove" STYLE COLOR 179 255 198 END END CLASS NAME "Orchard" EXPRESSION "orchard" STYLE COLOR 52 197 52 END END CLASS NAME "Pine" EXPRESSION "pine" STYLE COLOR 125 255 182 END END CLASS NAME "Rainforest" EXPRESSION "rainforest" STYLE COLOR 167 255 138 END END METADATA "DESCRIPTION" "Vegetation" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # end Vegetation # R 3 LAYER NAME "Res_ReservedAreas" GROUP "Vegetation" STATUS ON TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "Res_ReservedAreas.TAB" LABELITEM "NAME" LABELMAXSCALE 400000 CLASS NAME "Reserved areas" LABEL MINDISTANCE 400 TYPE truetype FONT "Vera" SIZE 6 POSITION cc COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END STYLE OUTLINECOLOR 0 214 104 END END METADATA "DESCRIPTION" "Vegetation" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # R 5 LAYER NAME "waterbodies" GROUP "Waterbodies" STATUS ON MAXSCALE 600000 TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "Hydro_Waterbodies_Regions.TAB" CLASSITEM "FEAT_CODE" LABELITEM "NAME" CLASS NAME "Lake" EXPRESSION "lake" STYLE COLOR 160 200 255 END END CLASS NAME "River" EXPRESSION "watercours_a" STYLE COLOR 160 200 255 END END CLASS NAME "Flood prone" EXPRESSION "sub_to_inund" STYLE COLOR 210 210 210 END END CLASS NAME "Swamp" EXPRESSION "swamp" STYLE COLOR 151 204 204 END END CLASS NAME "Sewerage pond" EXPRESSION "sew_pond" STYLE COLOR 84 212 148 END END METADATA "DESCRIPTION" "Waterbodies" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # R 6 LAYER NAME "localities" GROUP "Localities" STATUS ON MAXSCALE 2000000 TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "Infra_Localities_Regions.TAB" CLASSITEM "FEAT_CODE" LABELITEM "NAME" LABELMAXSCALE 1000000 LABELMINSCALE 10000 CLASS NAME "Prohibited" EXPRESSION "proh_a" LABEL MINDISTANCE 400 TYPE truetype FONT "Vera" SIZE 6 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END STYLE COLOR 192 192 192 END END METADATA "DESCRIPTION" "Localities" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # R 7 LAYER NAME "Infra_BuiltUpAreas_Regions" GROUP "Localities" STATUS ON TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "Infra_BuiltUpAreas_Regions.TAB" CLASSITEM "FEAT_CODE" LABELITEM "NAME" LABELMAXSCALE 10000000 METADATA "DESCRIPTION" "Localities" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata TOLERANCE 10 TOLERANCEUNITS pixels CLASS NAME "Urban area" EXPRESSION "builtup_a" STYLE COLOR 255 204 230 END LABEL MINDISTANCE 400 TYPE truetype FONT "Vera" SIZE 8 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END END CLASS NAME "Park" EXPRESSION "park" STYLE COLOR 122 255 156 # OUTLINECOLOR 0 0 0 END # LABEL # MINDISTANCE 400 # TYPE truetype # FONT "Vera" # SIZE 6 # POSITION AUTO # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # PARTIALS FALSE # END END CLASS NAME "Cemetery" EXPRESSION "cemetery" STYLE COLOR 40 40 40 # OUTLINECOLOR 0 0 0 END # LABEL # MINDISTANCE 400 # TYPE truetype # FONT "Vera" # SIZE 6 # POSITION AUTO # COLOR 0 0 0 # OUTLINECOLOR 255 255 255 # PARTIALS FALSE # END END END # R LAYER NAME "Blocks" STATUS ON MAXSCALE 2000000 TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "connection string" DATA "the_geom from r.v_block_geom" LABELITEM "c_grower_name" TOLERANCE 10 TOLERANCEUNITS pixels LABELMAXSCALE 100000 LABELMINSCALE 1000 TEMPLATE "void" CLASS NAME "Block" STYLE SYMBOL "stippled" COLOR 0 128 0 OUTLINECOLOR 255 255 0 END LABEL MINDISTANCE 400 TYPE truetype FONT "Vera" SIZE 6 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END END METADATA "DESCRIPTION" "Blocks" "RESULT_FIELDS" "i_base_id,c_rotation_order,c_org_farm_id,c_grower_name" "RESULT_HEADERS" "Base,Order,Farm ID,Grower" END # Metadata END # L 1 # LAYER # GROUP "frame" # NAME "Frame_Lines" # STATUS DEFAULT # TYPE LINE # CONNECTIONTYPE OGR # CONNECTION "Frame_Lines.TAB" # CLASSITEM "FEAT_CODE" # CLASS # NAME "State Border" # EXPRESSION "state_border" # STYLE # SYMBOL "dashed_long" # SIZE 1 # COLOR 0 0 0 # END # END # END # L 3 LAYER NAME "topography" GROUP "Topography" STATUS ON MAXSCALE 250000 TYPE LINE CONNECTIONTYPE OGR CONNECTION "Relief_Contours_Lines.TAB" CLASSITEM "FEAT_CODE" CLASS NAME "50m Contours" EXPRESSION "contour" STYLE COLOR 180 180 0 END END METADATA "DESCRIPTION" "Topography" END # Metadata END # L 3B LAYER NAME "Relief_SandRidges_Lines" GROUP "Topography" STATUS ON TYPE LINE MAXSCALE 250000 CONNECTIONTYPE OGR CONNECTION "Relief_SandRidges_Lines.TAB" CLASSITEM "FEAT_CODE" CLASS NAME "Sand ridge" EXPRESSION "sand_ridge" STYLE COLOR 255 199 143 END END METADATA "DESCRIPTION" "Topography" END # Metadata END # L 5 LAYER NAME "Hydro_Drainage_Lines" GROUP "Waterbodies" STATUS ON MAXSCALE 500000 TYPE LINE CONNECTIONTYPE OGR CONNECTION "Hydro_Drainage_Lines.TAB" CLASSITEM "FEAT_CODE" LABELITEM "NAME" CLASS NAME "Canal" EXPRESSION "canal" STYLE COLOR 153 255 255 END END CLASS NAME "connector" EXPRESSION "connector" STYLE COLOR 160 200 255 END END CLASS NAME "Rapids" EXPRESSION "rapid_l" STYLE COLOR 153 255 255 END END CLASS NAME "Spillway" EXPRESSION "spillway" STYLE COLOR 160 200 255 END END CLASS NAME "Watercourse" EXPRESSION "watercours_l" STYLE COLOR 160 200 255 END END METADATA "DESCRIPTION" "Waterbodies" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # R 1 #LAYER # NAME "jpl_wms_global_mosaic" # GROUP "Satelite" # TYPE RASTER # STATUS ON # CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" # CONNECTIONTYPE WMS # PROJECTION # "init=epsg:4326" # END # METADATA # "DESCRIPTION" "JPL Global Mosaic (WMS)" # "wms_name" "global_mosaic_base" # "wms_style" "visual" # "wms_server_version" "1.1.1" # "wms_format" "image/jpeg" # END #END # L 7 LAYER NAME "transport" GROUP "Transport" STATUS ON TYPE LINE CONNECTIONTYPE OGR CONNECTION "Infra_RoadTransport_Lines.TAB" CLASSITEM "CLASS" METADATA "wms_title" "Infra_RoadTransport_Lines" END CLASS NAME "unsealed road" EXPRESSION "5" MAXSCALE 200000 STYLE SYMBOL "dotted" COLOR 128 64 0 END END CLASS NAME "minor road" EXPRESSION "4" MAXSCALE 750000 STYLE COLOR 128 64 0 END END CLASS NAME "major road" EXPRESSION "3" MAXSCALE 1500000 STYLE COLOR 0 0 0 END END CLASS NAME "highway" EXPRESSION "2" MAXSCALE 2000000 STYLE SYMBOL "double_line" COLOR 0 0 0 END END CLASS NAME "freeway" EXPRESSION "1" STYLE SYMBOL "thick_line" COLOR 45 134 45 END END METADATA "DESCRIPTION" "Transport" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END LAYER NAME "Hazards" STATUS ON MAXSCALE 2000000 TYPE LINE CONNECTIONTYPE postgis CONNECTION "connection string" DATA "the_geom from r.v_hazard_geom" CLASSITEM "c_type" CLASS EXPRESSION "Low Powerline" NAME "Low Powerline" MAXSCALE 2000000 STYLE SYMBOL "double_line" COLOR 255 0 0 END END METADATA "DESCRIPTION" "Hazards" END # Metadata END # P 3 LAYER NAME "Infra_Buildings_Points" GROUP "Localities" STATUS ON MAXSCALE 200000 TYPE POINT CONNECTIONTYPE OGR CONNECTION "Infra_Buildings_Points.TAB" CLASS NAME "Building" STYLE SYMBOL "square" COLOR 0 0 0 END END METADATA "DESCRIPTION" "Localities" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata END # P 4 LAYER NAME "Infra_Localities_Points" GROUP "Localities" TYPE POINT STATUS ON MAXSCALE 400000 CONNECTIONTYPE OGR CONNECTION "Infra_Localities_Points.TAB" LABELITEM "NAME" METADATA "DESCRIPTION" "Localities" "RESULT_FIELDS" "NAME,FEAT_CODE" "RESULT_HEADERS" "Name,Type" END # Metadata TOLERANCE 10 TOLERANCEUNITS pixels CLASS NAME "Locality" LABEL MINDISTANCE 400 TYPE truetype FONT "Vera" SIZE 6 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE END STYLE SYMBOL "circle" COLOR 255 50 100 OUTLINECOLOR 0 0 0 SIZE 4 END END END # P 8 # LAYER # NAME "Pads" # GROUP "Pads" # STATUS ON # TYPE POINT # CONNECTIONTYPE postgis # CONNECTION "user=simplot password=qwerty123 dbname=webfred host=localhost" # DATA "the_geom from t_destinations" # LABELITEM "c_site_name" # TOLERANCE 3 # TOLERANCEUNITS pixels # METADATA # "RESULT_FIELDS" "i_site_id,c_site_name" # "RESULT_HEADERS" "Site ID,Name" # END # Metadata # CLASS # NAME "Pad" # LABEL # TYPE truetype # FONT "VeraBold" # SIZE 7 # POSITION ur # OFFSET 0 0 # BUFFER 4 # COLOR 128 0 0 # OUTLINECOLOR 255 255 255 # ANTIALIAS TRUE # END # STYLE # SYMBOL "tree" # COLOR 255 50 100 # OUTLINECOLOR 0 0 0 # SIZE 6 # END # TEMPLATE "void" # END # END # P 9 LAYER NAME "Vehicles" GROUP "Vehicles" STATUS ON TYPE POINT CONNECTIONTYPE postgis CONNECTION "connection string" DATA "the_geom from f.v_truck_geom" LABELITEM "c_org_truck_id" TOLERANCE 30 TOLERANCEUNITS pixels CLASS NAME "Truck" LABEL TYPE truetype FONT "VeraBold" SIZE 7 POSITION uc OFFSET 0 -10 BUFFER 4 COLOR 128 0 0 OUTLINECOLOR 255 255 255 ANTIALIAS TRUE END STYLE SYMBOL "truck" COLOR 255 50 100 OUTLINECOLOR 0 0 0 END TEMPLATE "void" END METADATA "DESCRIPTION" "Vehicles" "RESULT_FIELDS" "c_org_truck_id,i_speed,i_bearing,d_timestamp" "RESULT_HEADERS" "Multi #,Speed,Bearing,Time" END # Metadata END END sorry for such a long message and thanks in advance Gabriel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users