[mapguide-users] Can't get fusion to work using Sheboygan and Google Maps

Nathan Elmore elmore.nathan at gmail.com
Wed Jul 13 17:21:58 EDT 2011


Hello All,

So I've been trying to get Fusion to work for a while now with the Fusion
Sheboygan example with no luck. (it comes in the
fusion2.2/templates/standard) The closest I've gotten is an "overview map"
that shows the Sheboygan layer when I am looking at the google map
(Screenshot here). <http://i.imgur.com/B6m6p.png> But when I uncheck the
google map. Its only the brownish background color. When I try to select a
parcel, I get an error:*

FireBug Response:

Parameters:
*clientagentFusion ViewergeometryPOLYGON((-9764299.9866531 5426831.0385417,
-9764130.3919966 5426831.0385417, -9764130.3919966 5426907.47557,
-9764299.9866531 5426907.47557, -9764299.9866531 5426831.0385417))
layerAttributeFilter3localeenmapnameSheboygan_m4e1e035eb6646maxFeatures-1
operationQUERYMAPFEATURESpersist1selectionVariantINTERSECTSsession
b59310f4-ad90-11e0-8000-0025901891b2_en_7F0000010AFC0AFB0AFAversion1.0.0
*Location:*
http://localhost:8008/mapguide/mapagent/mapagent.fcgi?version=1.0.0&locale=en&clientagent=Fusion%20Viewer&operation=QUERYMAPFEATURES&session=b59310f4-ad90-11e0-8000-0025901891b2_en_7F0000010AFC0AFB0AFA&mapname=Sheboygan_m4e1e035eb6646&geometry=POLYGON((-9764299.9866531%205426831.0385417%2C%20-9764130.3919966%205426831.0385417%2C%20-9764130.3919966%205426907.47557%2C%20-9764299.9866531%205426907.47557%2C%20-9764299.9866531%205426831.0385417))&maxFeatures=-1&persist=1&selectionVariant=INTERSECTS&layerAttributeFilter=3

*Response:*
<html>
<head>
<title>MgInvalidArgumentException</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
</head>
<body>
<h2>Invalid argument(s):
The value cannot be less than or equal to zero.</h2>
Invalid argument(s):
The value cannot be less than or equal to zero.
</body>
</html>

I am using MGOS 2.2 on RHEL 64 bit. I'm using the latest release of fusion
2.2 (I also got the trunk from svn, but it does the same thing).

Here are my steps.

I made a copy of the Sheboygan.MapDefinition and called it Sheboygan_m. I
converted it to PseudoMercator using Maestro3.5 and gave a warning (known
warning I've seen in another mailing list post). Then I changed the
ResourceID ApplicationDefinition.xml where the MapGroup is google-sheboygan
to point to Sheboygan_m. Then I uncommented the line in index.html to load
the google maps api.

    <MapGroup id="google-sheboygan">
      <Map>
        <Type>Google</Type>
        <Extension>
          <ResourceId>google</ResourceId>
          <Options>
            <name>GoogleLayer</name>
          </Options>
        </Extension>
      </Map>
      <Map>
        <Type>MapGuide</Type>
        <SingleTile>true</SingleTile>
        <Extension>
         *<ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan_m.MapDefinition</ResourceId>
*
          <ImageFormat>PNG8</ImageFormat>
          <SelectionAsOverlay>true</SelectionAsOverlay>
          <SelectionFormat>PNG</SelectionFormat>
          <SelectionColor>0xFF0000FF</SelectionColor>
          <Options>
            <isBaseLayer>false</isBaseLayer>
          </Options>
        </Extension>
      </Map>
    </MapGroup>

Then I loaded the map in a browser. And it has the two issues I mentioned
above.

Thanks guys.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20110713/eb1ed37e/attachment.html


More information about the mapguide-users mailing list