[Geomoose-users] Identify Error TypeError.Application.GetMapSource(….) is undefined Help!

Tim Hennig THennig at villageofbellevue.org
Thu Mar 7 13:35:20 PST 2013


Hello,

I was wondering if someone can help me regarding an issue that I am having with GeoMoose 2.6.1.

I have setup my layers based on the MSW4 install.  I can see me layers and have set the properties, etc that I want.

Now I want to start developing the identify tool.  I’ve setup my identify.html, parcel.map, and have set properties in the map file.  When I try to identify I can an, “TypeError.Application.GetMapSource(….) is undefined.  I ran the firebug and it looks like the data is being processed (e.g. cords, parcel info, etc.)  Here is my identify info, it’s passing the information through and is correct.  I’ve also included the error message, parcel.map, identify.html, and mapbook.xml syntax below.  One thing I’ve noticed too is that I cannot not print, it just shows, “Loading…” nothing happens.  Not sure if this is related.

Does anyone have any ideas to what’s going on, I am stumped.   I noticed there were one feed regarding something similar, but I did everything that person recommended.  One other thing… I installed the demo version on the web server and everything works, but when I try mine it doesn’t.  I’m I missing something there?

This info is passing through the identify.html correctly…..
POST http://webmaps.villageofbellevue.org:8080/geomoose2/php/identify.php

200 OK

[chrome://firebug/content/blank.gif]

28


<results><script> GeoMOOSE.clearLayerParameters('highlight'); GeoMOOSE.turnLayerOff('highlight/highlight');</script><html><![CDATA[<!-- MapServer Template -->
Detailed information for the area you clicked on the map...
<table border="0">
<tr>
<td colspan="2"><b><u>Ground Coordinates</u></b>
<br>
<b>X: </b>116052.58098509
<br>
<b>Y: </b>548553.64016749</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<table border="0" cellpadding="1" cellspacing="2">
<tr bgcolor="#DEE5EB"><td colspan="2"><b><u>Parcels</u></b></tr>
<tr>
<td align="right"><b>PARCEL ID:</b></td>
<td>B-94
</tr>
<td align="right"><b>ADDRESS LOCATION:</b></td>
<td>2595 EATON RD
</tr>
<tr>
<td align="right"><b>OWNER INFORMATION:</b></td>
<td>THE HOME DEPOT USA PROPERTY TAX DEPT #4915
</tr>
<tr>
<td align="right"><b>TOTAL VALUE:</b></td>
<td>6268800.00000000
</tr>
<tr>
<td align="right"><b>ACRES:</b></td>
<td>11.83400000
</tr>
<tr>
<td align="right"><b>SQ FT:</b></td>
<td>515,496 SF
</tr>
<tr>
<td> </td>
<td> </td>
</tr>]]></html><footer><![CDATA[<b>Disclaimer: This information is being distributed as demonstation data only.  You should not use the data for any other purposes.</b>
]]></footer></results>



Error Message….

ypeError: Application.getMapSource(...) is undefined
window.GeoMOOSE.clearLayerParameters()geomoose.js (line 273)
()dojo.js (line 14)
.onServiceReturn()dojo.js (line 14)
dojo._listener.getDispatcher/<()dojo.js (line 14)
dojo.hitch/<()dojo.js (line 14)
dojo._ioSetArgs/<()dojo.js (line 14)
_102()dojo.js (line 14)
_100()dojo.js (line 14)
()dojo.js (line 14)
_102()dojo.js (line 14)
_100()dojo.js (line 14)
()dojo.js (line 14)
_28d()dojo.js (line 14)
_286/func()dojo.js (line 14)
_286()dojo.js (line 14)

Application.getMapSource(layerName).clearParameters();
geomoose.js (line 273)

TypeError: Application.getMapSource(...) is undefined
window.GeoMOOSE.clearLayerParameters()geomoose.js (line 273)
()dojo.js (line 14)
.onServiceReturn()dojo.js (line 14)
dojo._listener.getDispatcher/<()dojo.js (line 14)
dojo.hitch/<()dojo.js (line 14)
dojo._ioSetArgs/<()dojo.js (line 14)
_102()dojo.js (line 14)
_100()dojo.js (line 14)
()dojo.js (line 14)
_102()dojo.js (line 14)
_100()dojo.js (line 14)
()dojo.js (line 14)
_28d()dojo.js (line 14)
_286/func()dojo.js (line 14)
_286()dojo.js (line 14)

Application.getMapSource(layerName).clearParameters();
geomoose.js (line 273)



Parcel Map File

MAP
                NAME 'parcels'
                SIZE 100 100
                STATUS ON
                EXTENT  93825.780843 534965.034252 137522.621907 560222.710446

                UNITS METERS

                INCLUDE "../../geomoose_globals.map"

                WEB
                                METADATA
                                                'ows_title' 'Parcel Maps'
                                                'ows_srs' 'EPSG:2929'
                                                'ows_enable_request' '*'
                                END
                END

                PROJECTION
                                'init=epsg:2929'
                END

                LEGEND
                      STATUS ON
                      LABEL
                                TYPE TRUETYPE
                                FONT vera_sans
                                SIZE 8
                                COLOR 0 0 0
                    END
                END

                LAYER
                                NAME TaxParcel
                                DATA './TaxParcel.shp'
                                STATUS ON
                                TYPE POLYGON
                                TOLERANCE 50
                                TOLERANCEUNITS FEET
#                             LABELITEM 'PARCELID'
#                             LABELCACHE ON
#                             LABELMAXSCALE 2000

                                CLASS
                                                NAME 'Parcels'
                                                STYLE
                                                                WIDTH .5
                                                                OUTLINECOLOR 213 213 213
                                                                MAXSCALEDENOM 8000
                                                END
                                                STYLE
                                                                SIZE .5
                                                                OUTLINECOLOR 213 213 213
                                                                MAXSCALEDENOM 8000
                                                END

#                                             LABEL
#                                                             TYPE TRUETYPE
#                                                             FONT vera_sans
#                                                             SIZE 8
#                                                             ANTIALIAS TRUE
#                                                             COLOR 0 0 0
#                                                             OUTLINECOLOR 254 254 200
#                                                             BUFFER 4
#                                                             MINFEATURESIZE auto
#                                                             PARTIALS FALSE
#                                                             POSITION cc
#                                             END
                                END

                                METADATA
                                                # drill-down identify service record.
                                                'identify_record'              'templates/identify.html'

                                                # query.php / "Search Parcels" functionality.
                                                'itemquery'         'templates/search_result.html'
                                                'itemquery-filter'             '/.*[qstring].*/i'
                                                'qstring_validation_pattern' '.'

                                                # Feature reports are stored in the conf/feature_report directory.
                                                'feature_report' 'parcel.xml'

                                                'select_record'  'templates/select_result.html'
                                                'select_header' 'templates/select_header.html'
                                                'popups' 'parcels_popup.html'

                                END

                  END

END ## end Map

Identify.html

<!-- MapServer Template -->
<tr bgcolor="#DEE5EB"><td colspan="2"><b><u>Parcels</u></b></tr>
<tr>
<td align="right"><b>PARCEL ID:</b></td>
<td>[PARCELID]
</tr>
<td align="right"><b>ADDRESS LOCATION:</b></td>
<td>[LOCATION]
</tr>
<tr>
<td align="right"><b>OWNER INFORMATION:</b></td>
<td>[OWNMAIL1]
</tr>
<tr>
<td align="right"><b>TOTAL VALUE:</b></td>
<td>[TOTVAL]
</tr>
<tr>
<td align="right"><b>ACRES:</b></td>
<td>[ACREAGE]
</tr>
<tr>
<td align="right"><b>SQ FT:</b></td>
<td>[MapAreaTxt]
</tr>
<tr>
<td> </td>
<td> </td>
</tr>


Mapbook.xml

                <map-source name="Parcel" type="mapserver" reference="false">
                                <file>./Data/Bellevue/TaxParcel.map</file>
                                <layer name="TaxParcel" status="on"/>
                                <param name="FORMAT" value="image/png;bits=8"/>
                </map-source>

                <service name="identify" title="Identify" display="true">
                                <url>php/identify.php</url>
                                <step type="spatial" name="shape" line="false" polygon="false" jump-start="true" default="point" box="true" pan="false">
                                                <input type="hidden" name="layers" value="Parcel/TaxParcel"/>
                                                <header>
                                                                Click on the map to see more detailed information.
                                                </header>
                                                <input type="visiblelayers" name="layers"/>
                                                <input type="projection" name="projection"/>
                                </step>
                </service>


Thank You,

Tim
-----------------------------------------------------------------
Tim Hennig
GIS Coordinator

Community Development Department
Village of Bellevue
2828 Allouez Avenue
Bellevue, WI 54311
phone: (920) 468-5225
cell: (920) 370-5876
fax: (920) 468-4039
e-mail: timh at villageofbellevue.org<mailto:timh at villageofbellevue>
web: http://www.villageofbellevue.org<http://www.villageofbellevue.org/>

media:  Facebook <http://www.facebook.com/pages/Green-Bay-WI/Village-of-Bellevue-Wisconsin/100899366161>  |  Twitter<http://www.twitter.com/bellevuewi>  |  Blog<http://www.villageofbellevue.blogspot.com/>  |  YouTube Channel<http://www.youtube.com/user/VillageOfBellevue>
P Save money and the environment; think twice before printing this email.
This message may contain confidential information that is legally privileged, and is intended only for the use of the parties to whom it is addressed.  If you are not an intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any information in this message is strictly prohibited.  If you have received this message in error please notify me at  (920) 468-5225 or by reply e-mail.  Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20130307/6e9856b8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 174 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20130307/6e9856b8/attachment-0001.png>


More information about the Geomoose-users mailing list