[fusion-trac] #364: Measure: uncaught exception thrown when the baselayer is BingMap

Fusion trac_fusion at osgeo.org
Fri Feb 26 05:29:22 EST 2010


#364: Measure: uncaught exception thrown when the baselayer is BingMap
---------------------+------------------------------------------------------
 Reporter:  liuar    |         Owner:  madair
     Type:  defect   |        Status:  new   
 Priority:  P2       |     Milestone:  Future
Component:  Widgets  |       Version:  1.1.1 
 Severity:  Major    |    Resolution:        
 Keywords:           |   External_id:        
    State:  New      |       Browser:  All   
       Os:  All      |  
---------------------+------------------------------------------------------
Changes (by liuar):

 * cc: jie.tan at autodesk.com (added)

Comment:

 The method getMapObjectLonLatFromLonLat[[BR]]

 Google: gLatLng = new GLatLng(lonlat.lat, lonlat.lon);[[BR]]
 Bing  : veLatLong = new VELatLong(lonlat.lat, lonlat.lon);[[BR]]
 Yahoo!: yLatLong = new YGeoPoint(lonlat.lat, lonlat.lon);[[BR]]

 Only Bing map throws exception when the lonlat.lat or lonlat.lon is NaN.
 So a workaround is catching the exception when it is thrown.

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/364#comment:1>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list