HTBox / allReady

This repo contains the code for allReady, an open-source solution focused on increasing awareness, efficiency and impact of preparedness campaigns as they are delivered by humanitarian and disaster response organizations in local communities.
http://www.htbox.org/projects/allready
MIT License
892 stars 628 forks source link

BING Map Error on Itinerary Confirmation page in Internet Explorer #1550

Open mgmccarthy opened 7 years ago

mgmccarthy commented 7 years ago

cc @stevejgordon

This only happens for me when using IE, not when using Chrome (I didn't check in FireFox)

I successfully create the Itinerary but when the map at the bottom tries to load, I get this error from the IDE: image

here is the full error text:

Unhandled exception at line 1, column 230651 in https://www.bing.com/rms/MapCoreBundle/jc,nj/81a88ae6/9adb7eaf.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCache*Gimme*GimmeWrapper*evPromise*ExternalPromise*StaticPromise*CookiesHelper*LruCache*Point*Rectangle*NAARectangle*ResourceManager*Units*Anchor*Size*Binding*ChangeMagnitude*EventBinding*Observable*ObservableObject*ObservableObjectChangedArgs*ObservableCollection*Debug*DelayLoadedObject*JSEvent*Dispatcher*WorkDispatcher*Iterator*ElementSizeHelper*GimmeExt*GimmeTransition*Helper*PerfState*ClientPerf*LoggingWrapper*LoggerConstants*Network*ThrottledEventInvoker*ObjectPool*StaticObjectPool*FixedSizeObjectPool*OrderedDictionary*PooledImage*Url*MapCoreMiddle*AltitudeReference*TransformCurve*GraphType*CurveKey*Curve*Color*CurveVector4*CurveColor*Vector4*CurveTangent*DiscreteRange*DiscreteRangeCollectionSpline*MapLayer*AutoScaling*PointLabelPlacementPreference*PolygonFillPreference*VerticalAlignment*CopyrightProvider*CopyrightProviderService*EntityState*MinZoomFraming*GeometryType*HitTestability*HorizontalAlignment*MapModeType*ViewChangeCause*MapFrameManager*LayerFrameManager*GoalCounter*FrameEventAggregator*DataMonitor*MapFrameData*LayerFrameData*Clipper*CompositePrimitiveSet*DataLoader*Differ*FixedPrimitiveSet*PrimitiveSubset*Overlay*OverlayAlignment*ImageryMapLayer*SimpleSceneContributor*VectorMapLayer*BasicMapAnimation*MapViewAnimator*BoundsAccumulator*CombinedLayerCollection*ConstrainViewArgs*LatLonCrs*LocationRect*Matrix2D*MapInstrumentationManager*Map*MapHelper*MapMath*MapLocation*MapType*MapTypeChangeArgs*MapTypeCollection*MapTypeId*MapView*MapEventForPrimitiveOverlay*MapQuadrant*PrimitiveOverlayHelper*OverlayBehavior*GeometryGeneralizer*SimplePointPrimitive*SimpleLinePrimitive*SimpleAreaPrimitive*MoveableSimplePointPrimitive*TargetViewChangeArgs*VectorMath*ViewChangeArgs*ZoomLevel*ZoomAroundLocationAnimator*ZoomEventArgs*OverviewMapMode*MapAuthentication*PublicApi*InternalApi*AnonymousEnd

0x800a139e - JavaScript runtime error: Invalid latitude
stevejgordon commented 7 years ago

Hmm, weird. Good spot @mgmccarthy

I have had some issues even with the API test site for Bing on IE. I'll see if I can replicate this and dig into it. Which version of IE are you seeing it on?

mgmccarthy commented 7 years ago

@stevejgordon, here is the version of IE:

image

EmilyLuijbregts commented 7 years ago

@stevejgordon - have you got any update on this? Do you need any further information from Michael?

stevejgordon commented 7 years ago

@EmilyLuijbregts - I was unable to replicate locally at the time but I will need to try again and validate that for sure.

stevejgordon commented 7 years ago

@mgmccarthy Can you please test again on your machine? I've run it in IE 11.0.37 without issue. It was okay even with a request with lat/long of zero.

mgmccarthy commented 7 years ago

@stevejgordon, still the same issue. IE give me: image

Chrome shows the error in it's dev tools window: image

it's the same error: invalid latitude. In the case of this particular Itinerary, the latitude value is 0

stevejgordon commented 7 years ago

Hmm, weird. Is it okay for you when the lat is greater than 0?

dchristensen commented 7 years ago

I may have fixed this issue with #1662. I was seeing a similar error on the Itinerary Add Requests page.

tonysurma commented 7 years ago

Still open after #1662