# Bing Map Displaying Geometry off target in Windows Phone

**URL:** <https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406>\
**Category:** Windows Phone\
**Created:** [March 13, 2015, 1:03am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406 "2015-03-13T01:03:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeeshan1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e68b1a/32.png) [@zeeshan1](https://community.thinkgeo.com/u/zeeshan1)\
**Post date:** [March 13, 2015, 1:03am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/1 "2015-03-13T01:03:09Z")

</div>

I&nbsp;have&nbsp;geometry&nbsp;data&nbsp;in&nbsp;decimal/degree.&nbsp;I&nbsp;use&nbsp;the&nbsp;following&nbsp;code&nbsp;to&nbsp;create&nbsp;plygon&nbsp;features&nbsp;in&nbsp;meters&nbsp;and&nbsp;show&nbsp;on&nbsp;Bing:

> `01.Collection<Feature> GeometrySource = new Collection<Feature>();02. 03.Proj4Projection wgs84ToBingProjection = new Proj4Projection();        04.wgs84ToBingProjection.InternalProjectionParameters = Proj4Projection.GetWgs84ParametersString();05.wgs84ToBingProjection.ExternalProjectionParameters = Proj4Projection.GetBingMapParametersString();06. 07.mapView.MapUnit = GeographyUnit.Meter;08. 09.//add polygon geometry from decimal to meter10.var wkt = "MULTIPOLYGON (((153.524037 -28.498472, 153.523862 -28.498368, 153.523872 -28.498313, 153.522815 -28.49754, 153.522267 -28.497456, 153.522085 -28.497335, 153.52199 -28.496912, 153.521821 -28.496851, 153.521158 -28.496832, 153.520307 -28.496703, 153.519958 -28.495789, 153.519853 -28.495047, 153.520196 -28.49465, 153.51935 -28.49412, 153.518921 -28.494059, 153.518301 -28.493425, 153.518185 -28.493528, 153.518079 -28.493408, 153.517854 -28.493586, 153.516154 -28.495845, 153.515681 -28.496111, 153.515611 -28.496495, 153.515958 -28.497056, 153.515952 -28.497245, 153.515541 -28.497192, 153.515151 -28.499144, 153.515572 -28.498816, 153.516452 -28.499015, 153.516862 -28.498971, 153.516972 -28.498986, 153.51762 -28.499208, 153.517913 -28.499438, 153.516892 -28.499142, 153.516472 -28.499215, 153.515602 -28.499017, 153.51511 -28.499395, 153.514964 -28.500276, 153.515872 -28.500527, 153.516602 -28.500785, 153.518452 -28.501494, 153.519034 -28.501611, 153.518397 -28.505074, 153.522304 -28.505621, 153.523145 -28.500816, 153.523428 -28.500727, 153.523604 -28.499773, 153.523288 -28.499487, 153.523127 -28.499221, 153.522288 -28.499088, 153.522007 -28.498937, 153.521256 -28.499067, 153.520954 -28.498921, 153.520459 -28.498929, 153.519935 -28.499166, 153.518793 -28.499317, 153.518742 -28.499156, 153.519872 -28.498996, 153.52001 -28.498945, 153.520416 -28.498749, 153.520994 -28.498739, 153.521282 -28.498878, 153.522006 -28.498734, 153.522368 -28.498909, 153.523262 -28.499055, 153.523218 -28.498984, 153.523419 -28.49846, 153.523832 -28.498522, 153.524037 -28.498472)), ((153.528358 -28.505154, 153.528186 -28.504247, 153.528127 -28.5042, 153.527784 -28.504181, 153.52791 -28.505227, 153.528056 -28.505199, 153.528358 -28.505154)))";11.wgs84ToBingProjection.Open();12.BaseShape  poly = new MultiPolygonShape(wkt);13.Faeature     f = new Feature((PolygonShape)wgs84ToBingProjection.ConvertToExternalProjection(poly));   14.GeometrySource.Add(f);15.wgs84ToBingProjection.Close();16. 17.//set extent18.wgs84ToBingProjection.Open();19.RectangleShape mapExtent = (RectangleShape)ExtentHelper.GetBoundingBoxOfItems(GeometrySource).CloneDeep();20.mapExtent = wgs84ToBingProjection.ConvertToExternalProjection(mapExtent);21.wgs84ToBingProjection.Close();22.mapView.CurrentExtent = mapExtent;23.mapExtent.ScaleUp(100);24. 25.//Keep geometry feature in InMemoryFeatureLayer26.var SourceFeatureLayer = new InMemoryFeatureLayer();27.SourceFeatureLayer.Open();28.SourceFeatureLayer.Columns.Add(new FeatureSourceColumn("Name"));29. 30.SourceFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = new AreaStyle(new GeoSolidBrush(BrushColor));31.SourceFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle.OutlinePen.Color = GeoColor.SimpleColors.Black;32.SourceFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;33.SourceFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = new TextStyle("Name", new GeoFont("Arail", 9, DrawingFontStyles.Bold), new GeoSolidBrush(GeoColor.SimpleColors.Black));34.SourceFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.SecondaryRoad2;35. 36.foreach (Feature feature in GeometrySource)37.{38.SourceFeatureLayer.InternalFeatures.Add(feature);39.}40. 41.//create bing overlay as base42.var bingKey = "Bing Key here";43.BingMapsOverlay bingMapOverlay = new BingMapsOverlay("Agtrix", bingKey, BingMapsStyle.Hybrid);            44.bingMapOverlay.BingMapsStyle = BingMapsStyle.Hybrid;            45.mapView.Overlays.Add("bing",bingMapOverlay);46. 47.//add feature overlay which should display polygon on Bing map48.LayerOverlay layerOverlay = new LayerOverlay();49.layerOverlay.Layers.Add("SourceLayer", SourceFeatureLayer);50.mapView.Overlays.Add("LayerOverlay", layerOverlay);`

  
  
  
  
This&nbsp;code&nbsp;works&nbsp;well&nbsp;in&nbsp;android&nbsp;but&nbsp;in&nbsp;WP&nbsp;the&nbsp;geometry&nbsp;are&nbsp;displayed&nbsp;off&nbsp;target&nbsp;(as&nbsp;shown&nbsp;in&nbsp;the&nbsp;snapshot&nbsp;attached..May&nbsp;I&nbsp;know&nbsp;what’s&nbsp;wrong?&nbsp;or&nbsp;Can&nbsp;you&nbsp;produce&nbsp;a&nbsp;sample&nbsp;code&nbsp;to&nbsp;achieve&nbsp;this?  
  
Note&nbsp;the&nbsp;geometry&nbsp;is&nbsp;of&nbsp;the&nbsp;form:&nbsp;"MULTIPOLYGON&nbsp;(((153.524037&nbsp;-28.498472,&nbsp;153.523862&nbsp;-28.498368,…".  
  
  
  
And&nbsp;by&nbsp;the&nbsp;way,&nbsp;why&nbsp;is&nbsp;the&nbsp;map&nbsp;a&nbsp;white&nbsp;area&nbsp;on&nbsp;certain&nbsp;zoom&nbsp;level?&nbsp;See&nbsp;another&nbsp;file&nbsp;attached.  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
[off-target-geom-wp-white.png](https://community.thinkgeo.com/uploads/default/original/2X/c/c8610d7958731450366fb80deaa621c64f8edb68.png) (22.8 KB)  
[off-target-geom-wp.png](https://community.thinkgeo.com/uploads/default/original/2X/5/54e18c7a58b2e3bc63fde2b883e3055cf15cf1c1.png) (46.5 KB)

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [March 17, 2015, 5:07am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/2 "2015-03-17T05:07:50Z")

</div>

Hi&nbsp;zeeshan,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;post,&nbsp;the&nbsp;problem&nbsp;is&nbsp;a&nbsp;little&nbsp;complex,&nbsp;our&nbsp;developer&nbsp;is&nbsp;look&nbsp;into&nbsp;it.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;update&nbsp;I&nbsp;will&nbsp;let&nbsp;you&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![zeeshan1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e68b1a/32.png) [@zeeshan1](https://community.thinkgeo.com/u/zeeshan1)\
**Post date:** [March 17, 2015, 6:09am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/3 "2015-03-17T06:09:42Z")

</div>

Thanks.&nbsp;I&nbsp;have&nbsp;edited&nbsp;the&nbsp;query&nbsp;to&nbsp;look&nbsp;more&nbsp;logical.&nbsp;I&nbsp;can&nbsp;also&nbsp;provide&nbsp;you&nbsp;the&nbsp;sample&nbsp;project&nbsp;if&nbsp;it&nbsp;does&nbsp;not&nbsp;give&nbsp;you&nbsp;an&nbsp;idea&nbsp;of&nbsp;what&nbsp;I&nbsp;really&nbsp;&nbsp;want.

---

<div class="post-metadata">

**Author:** ![Kevin5](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bbce88/32.png) [@Kevin5](https://community.thinkgeo.com/u/Kevin5)\
**Post date:** [March 18, 2015, 10:46pm UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/4 "2015-03-18T22:46:57Z")

</div>

Hi&nbsp;zeeshan,  
  
  
  
That’s&nbsp;very&nbsp;kind&nbsp;of&nbsp;you.&nbsp;Our&nbsp;developer&nbsp;can&nbsp;reproduce&nbsp;this&nbsp;issue&nbsp;and&nbsp;they&nbsp;are&nbsp;still&nbsp;working&nbsp;on&nbsp;this.&nbsp;Any&nbsp;process&nbsp;we&nbsp;will&nbsp;update&nbsp;here.  
  
  
  
Regards,  
  
Kevin

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [March 25, 2015, 5:07am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/5 "2015-03-25T05:07:17Z")

</div>

Hi&nbsp;zeeshan,&nbsp;  
&nbsp;&nbsp;  
&nbsp;It&nbsp;has&nbsp;been&nbsp;fixed&nbsp;now,&nbsp;please&nbsp;get&nbsp;the&nbsp;modified&nbsp;version&nbsp;at&nbsp;[ap.thinkgeo.com:5001/fbsharing/Oee0dJRM](http://ap.thinkgeo.com:5001/fbsharing/Oee0dJRM)&nbsp;to&nbsp;have&nbsp;a&nbsp;try.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Johnny

---

<div class="post-metadata">

**Author:** ![zeeshan1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e68b1a/32.png) [@zeeshan1](https://community.thinkgeo.com/u/zeeshan1)\
**Post date:** [March 25, 2015, 6:55am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/6 "2015-03-25T06:55:13Z")

</div>

Yes,&nbsp;it&nbsp;is.&nbsp;Thanks.&nbsp;Now&nbsp;the&nbsp;issue&nbsp;is&nbsp;when&nbsp;I&nbsp;move&nbsp;along&nbsp;and&nbsp;want&nbsp;to&nbsp;show&nbsp;marker&nbsp;on&nbsp;every&nbsp;Location&nbsp;Change&nbsp;I&nbsp;get&nbsp;an&nbsp;ArgumentOutOfRange&nbsp;exception&nbsp;as&nbsp;shown&nbsp;in&nbsp;the&nbsp;attached&nbsp;snapshot.  
  
  
  
**Background:**  
  
I&nbsp;have&nbsp;created&nbsp;a&nbsp;Map&nbsp;View&nbsp;XF&nbsp;renderer&nbsp;which&nbsp;listens&nbsp;for&nbsp;GPS&nbsp;location&nbsp;change&nbsp;and&nbsp;repeatedly&nbsp;calls&nbsp;the&nbsp;following&nbsp;function:

> > `01.``   ``private`&nbsp;`bool`&nbsp;`navigateToCurrentPosition(Xamarin.Forms.Point currentLocation)`  
> > `02.``        ``{`  
> > `03.``//using WPCore=ThinkGeo.MapSuite.WindowsPhoneCore;`  
> > `04.``            ``try`  
> > `05.``            ``{                `  
> > `06.``                ``SimpleMarkerOverlay markerOverlay = nativeMap.Overlays.OfType<SimpleMarkerOverlay>().FirstOrDefault();`  
> > `07.``                ``WPCore.PointShape location = ``new`&nbsp;`WPCore.PointShape(currentLocation.X, currentLocation.Y);`  
> > `08.``                ``wgs84ToBingProjection.Open();`  
> > `09.``                ``location = (WPCore.PointShape)wgs84ToBingProjection.ConvertToExternalProjection(location);`  
> > `10.``                ``wgs84ToBingProjection.Close();`  
> > `11.`&nbsp;  
> > `12.`&nbsp;  
> > `13.``                ``if`&nbsp;`(markerOverlay != ``null``)`  
> > `14.``                ``{`  
> > `15.``                    ``markerOverlay.Markers.Clear();`  
> > `16.``                    ``locationMarker = ``new`&nbsp;`Marker(location)`  
> > `17.``                    ``{`  
> > `18.``                        ``ImageSource = markerImage,`  
> > `19.``                        ``ImageOffsetX = -28,`  
> > `20.``                        ``ImageOffsetY = -32`  
> > `21.``                    ``};`  
> > `22.``                    ``markerOverlay.Markers.Add(locationMarker);`  
> > `23.``                    ``markerOverlay.Refresh();`  
> > `24.``                ``}`  
> > `25.``                `&nbsp;  
> > `26.``                ``nativeMap.MoveTo(location);            `  
> > `27.``           `&nbsp;  
> > `28.``            ``}             `  
> > `29.``            ``catch`&nbsp;`(Exception)`  
> > `30.``            ``{`  
> > `31.``                ``return`&nbsp;`false``;`  
> > `32.``            ``}`  
> > `33.``            ``return`&nbsp;`true``;`  
> > `34.``        ``}`

  
Note&nbsp;that&nbsp;the&nbsp;same&nbsp;function&nbsp;runs&nbsp;well&nbsp;in&nbsp;Android&nbsp;Renderer&nbsp;(And&nbsp;when&nbsp;used&nbsp;in&nbsp;WP&nbsp;native&nbsp;Page;.i.e.&nbsp;without&nbsp;renderer).&nbsp;Does&nbsp;calling&nbsp;the&nbsp;above&nbsp;function&nbsp;repeatedly&nbsp;cause&nbsp;the&nbsp;exception&nbsp;to&nbsp;raise&nbsp;in&nbsp;WP?&nbsp;Can&nbsp;you&nbsp;reproduce&nbsp;the&nbsp;issue&nbsp;by&nbsp;implementing&nbsp;a&nbsp;XF&nbsp;MapView&nbsp;Renderer&nbsp;which&nbsp;does&nbsp;the&nbsp;same&nbsp;thing?  
  
[zoomto-error.png](https://community.thinkgeo.com/uploads/default/original/2X/a/ab83acf60caf1900fc025fb46992dfc90cf29fbe.png) (49.7 KB)

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [March 26, 2015, 2:23am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/7 "2015-03-26T02:23:53Z")

</div>

Hi&nbsp;zeeshan,  
  
  
  
I&nbsp;guess&nbsp;there&nbsp;isn’t&nbsp;any&nbsp;problem&nbsp;with&nbsp;the&nbsp;code&nbsp;shown&nbsp;here,&nbsp;but&nbsp;I&nbsp;was&nbsp;wondering&nbsp;if&nbsp;you&nbsp;can&nbsp;give&nbsp;the&nbsp;data&nbsp;of&nbsp;currentLocation&nbsp;to&nbsp;us,&nbsp;then&nbsp;we&nbsp;can&nbsp;do&nbsp;a&nbsp;test&nbsp;to&nbsp;see&nbsp;what&nbsp;the&nbsp;exception&nbsp;it&nbsp;is,&nbsp;then&nbsp;we&nbsp;can&nbsp;dig&nbsp;into&nbsp;it&nbsp;as&nbsp;well,&nbsp;if&nbsp;a&nbsp;demo&nbsp;should&nbsp;be&nbsp;appreciated.  
  
  
  
Thanks,  
  
Johnny

---

<div class="post-metadata">

**Author:** ![zeeshan1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e68b1a/32.png) [@zeeshan1](https://community.thinkgeo.com/u/zeeshan1)\
**Post date:** [March 30, 2015, 7:23am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/8 "2015-03-30T07:23:08Z")

</div>

currentLocation&nbsp;data&nbsp;is&nbsp;X=153.5281,&nbsp;Y=-28.5046.&nbsp;I&nbsp;have&nbsp;prepared&nbsp;a&nbsp;sample&nbsp;solution&nbsp;to&nbsp;reproduce&nbsp;the&nbsp;problem.&nbsp;Plz&nbsp;find&nbsp;attached.  
App&nbsp;navigates&nbsp;to&nbsp;this&nbsp;fixed&nbsp;position.&nbsp;And&nbsp;as&nbsp;you&nbsp;click&nbsp;on&nbsp;Navigate&nbsp;button&nbsp;2&nbsp;or&nbsp;3&nbsp;times,&nbsp;you&nbsp;can&nbsp;see&nbsp;the&nbsp;exception&nbsp;which&nbsp;raises&nbsp;after&nbsp;calling&nbsp;navigateToCurrentPosition(..).  
  
[ThinkGeo\_Tests.zip](https://community.thinkgeo.com/uploads/default/original/2X/f/f58da48faa0dbe916da193b797622f46fb68fc61.zip) (201 KB)

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [March 31, 2015, 7:51am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/9 "2015-03-31T07:51:36Z")

</div>

Hi&nbsp;zeeshan,&nbsp;  
&nbsp;&nbsp;  
&nbsp;It’s&nbsp;proved&nbsp;to&nbsp;be&nbsp;a&nbsp;bug&nbsp;which&nbsp;has&nbsp;been&nbsp;fixed&nbsp;now,&nbsp;please&nbsp;get&nbsp;the&nbsp;latest&nbsp;version&nbsp;at&nbsp;[ap.thinkgeo.com:5001/fbsharing/DSvbfeLr](http://ap.thinkgeo.com:5001/fbsharing/DSvbfeLr)&nbsp;to&nbsp;have&nbsp;a&nbsp;try.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Btw,&nbsp;we&nbsp;are&nbsp;also&nbsp;developing&nbsp;the&nbsp;Xamarin.Forms&nbsp;now,&nbsp;it&nbsp;should&nbsp;be&nbsp;available&nbsp;soon,&nbsp;if&nbsp;you&nbsp;are&nbsp;interested&nbsp;in&nbsp;it,&nbsp;please&nbsp;contact&nbsp;[support@thinkgeo.com](mailto:support@thinkgeo.com),&nbsp;maybe&nbsp;they&nbsp;can&nbsp;ask&nbsp;development&nbsp;team&nbsp;for&nbsp;a&nbsp;version.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Johnny

---

<div class="post-metadata">

**Author:** ![zeeshan1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e68b1a/32.png) [@zeeshan1](https://community.thinkgeo.com/u/zeeshan1)\
**Post date:** [April 1, 2015, 1:15am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/10 "2015-04-01T01:15:41Z")

</div>

I&nbsp;tried&nbsp;the&nbsp;sample&nbsp;project&nbsp;with&nbsp;new&nbsp;dll’s&nbsp;in&nbsp;[ap.thinkgeo.com:5001/fbsharing/DSvbfeLr](http://ap.thinkgeo.com:5001/fbsharing/DSvbfeLr)&nbsp;(Managed&nbsp;Assemblies\Client).&nbsp;But&nbsp;I&nbsp;am&nbsp;still&nbsp;getting&nbsp;the&nbsp;same&nbsp;error.Click&nbsp;on&nbsp;Map&nbsp;a&nbsp;few&nbsp;times&nbsp;and&nbsp;you&nbsp;should&nbsp;see&nbsp;the&nbsp;error.&nbsp;  
&nbsp;Good&nbsp;that&nbsp;you&nbsp;started&nbsp;working&nbsp;on&nbsp;XF.&nbsp;Will&nbsp;be&nbsp;waiting&nbsp;for&nbsp;any&nbsp;update.

---

<div class="post-metadata">

**Author:** ![zeeshan1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e68b1a/32.png) [@zeeshan1](https://community.thinkgeo.com/u/zeeshan1)\
**Post date:** [April 2, 2015, 12:29am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/11 "2015-04-02T00:29:36Z")

</div>

I&nbsp;am&nbsp;waiting&nbsp;for&nbsp;response&nbsp;on&nbsp;this&nbsp;WP&nbsp;dll&nbsp;possible&nbsp;bug&nbsp;fix…

---

<div class="post-metadata">

**Author:** ![zeeshan1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e68b1a/32.png) [@zeeshan1](https://community.thinkgeo.com/u/zeeshan1)\
**Post date:** [April 2, 2015, 1:38am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/12 "2015-04-02T01:38:03Z")

</div>

ArgumentOutOfRangeException&nbsp;occurs&nbsp;on&nbsp;WinPhone&nbsp;while&nbsp;calling&nbsp;map.moveTo(point);&nbsp;Same&nbsp;ArgumentOutOfRangeException&nbsp;occurs&nbsp;on&nbsp;android&nbsp;while&nbsp;calling&nbsp;map.CenterAt(point)

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [April 2, 2015, 4:59am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/13 "2015-04-02T04:59:12Z")

</div>

Hi&nbsp;zeeshan,  
  
  
  
Here&nbsp;is&nbsp;the&nbsp;attached&nbsp;sample&nbsp;we&nbsp;used&nbsp;for&nbsp;test,&nbsp;which&nbsp;is&nbsp;created&nbsp;based&nbsp;your&nbsp;attached,&nbsp;as&nbsp;your&nbsp;demo&nbsp;was&nbsp;unable&nbsp;to&nbsp;be&nbsp;complied.&nbsp;Could&nbsp;you&nbsp;please&nbsp;have&nbsp;a&nbsp;try&nbsp;with&nbsp;the&nbsp;version&nbsp;dll&nbsp;package&nbsp;I&nbsp;pasted?&nbsp;All&nbsp;works&nbsp;fine&nbsp;on&nbsp;our&nbsp;end.&nbsp;  
  
  
  
BTW.the&nbsp;Xamarin&nbsp;Forms&nbsp;edition&nbsp;has&nbsp;been&nbsp;completed&nbsp;by&nbsp;the&nbsp;development&nbsp;team.&nbsp;If&nbsp;you&nbsp;would&nbsp;like&nbsp;to&nbsp;get&nbsp;a&nbsp;version,&nbsp;please&nbsp;contact&nbsp;support@thinkgeo.com.  
  
  
  
Thanks,  
  
Johnny  
  
[001\_ThinkGeo\_Tests.zip](https://community.thinkgeo.com/uploads/default/original/2X/7/7c846137336358f99e547d530d01fa5cff862b78.zip) (130 KB)

---

<div class="post-metadata">

**Author:** ![zeeshan1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e68b1a/32.png) [@zeeshan1](https://community.thinkgeo.com/u/zeeshan1)\
**Post date:** [April 7, 2015, 1:52am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/14 "2015-04-07T01:52:58Z")

</div>

1-&nbsp;Which&nbsp;version&nbsp;of&nbsp;Dll’s&nbsp;should&nbsp;I&nbsp;use&nbsp;with&nbsp;this&nbsp;sample?&nbsp;I&nbsp;don’t&nbsp;understand&nbsp;what&nbsp;u&nbsp;mean&nbsp;by&nbsp;“the&nbsp;version&nbsp;dll&nbsp;package&nbsp;I&nbsp;pasted”.&nbsp;  
  
Can&nbsp;you&nbsp;come&nbsp;back&nbsp;again&nbsp;on&nbsp;this&nbsp;issue&nbsp;as&nbsp;it&nbsp;is&nbsp;still&nbsp;unresolved&nbsp;at&nbsp;my&nbsp;end.&nbsp;When&nbsp;I&nbsp;tap&nbsp;on&nbsp;Map&nbsp;a&nbsp;few&nbsp;times&nbsp;the&nbsp;same&nbsp;ArgumentOutOfRangeException&nbsp;occurs.  
  
2-&nbsp;I&nbsp;used&nbsp;Xamarin&nbsp;Forms&nbsp;Edition&nbsp;and&nbsp;I&nbsp;have&nbsp;one&nbsp;urgent&nbsp;issue/requirement&nbsp;for&nbsp;you&nbsp;to&nbsp;look&nbsp;at:&nbsp;&nbsp;how&nbsp;to&nbsp;MoveTo/ZoomTo/CenterAt(PointShape)?

---

<div class="post-metadata">

**Author:** ![Howard](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/h/90ced4/32.png) [@Howard](https://community.thinkgeo.com/u/Howard)\
**Post date:** [April 7, 2015, 10:19pm UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/15 "2015-04-07T22:19:01Z")

</div>

Hi&nbsp;Zeeshan,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Xamarin&nbsp;Forms&nbsp;Edition&nbsp;has&nbsp;synchronized&nbsp;the&nbsp;ZoomTo&nbsp;and&nbsp;CenterAt&nbsp;methods.&nbsp;The&nbsp;MoveTo&nbsp;method&nbsp;is&nbsp;not&nbsp;existing&nbsp;in&nbsp;our&nbsp;other&nbsp;products,&nbsp;so&nbsp;I&nbsp;didn’t&nbsp;add&nbsp;it.&nbsp;I&nbsp;hope&nbsp;current&nbsp;APIs&nbsp;are&nbsp;enough&nbsp;for&nbsp;your&nbsp;most&nbsp;cases.&nbsp;Please&nbsp;try&nbsp;the&nbsp;latest&nbsp;preview&nbsp;version&nbsp;we&nbsp;will&nbsp;send&nbsp;you&nbsp;later&nbsp;today&nbsp;and&nbsp;Feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know&nbsp;if&nbsp;you&nbsp;have&nbsp;more&nbsp;queries.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Howard

---

<div class="post-metadata">

**Author:** ![zeeshan1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e68b1a/32.png) [@zeeshan1](https://community.thinkgeo.com/u/zeeshan1)\
**Post date:** [April 7, 2015, 11:28pm UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/16 "2015-04-07T23:28:58Z")

</div>

K.&nbsp;Waiting.&nbsp;  
  
Also,&nbsp;we&nbsp;can’t&nbsp;use&nbsp;XF&nbsp;edition&nbsp;for&nbsp;production&nbsp;until&nbsp;it&nbsp;is&nbsp;released&nbsp;for&nbsp;all&nbsp;platforms;&nbsp;i.e.&nbsp;android,&nbsp;iOS&nbsp;and&nbsp;WinPhone.&nbsp;Happy&nbsp;to&nbsp;see&nbsp;its&nbsp;WP&nbsp;version&nbsp;is&nbsp;also&nbsp;released.

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [April 8, 2015, 2:09am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/17 "2015-04-08T02:09:34Z")

</div>

Hi&nbsp;Zeeshan,  
  
  
  
Are&nbsp;you&nbsp;using&nbsp;the&nbsp;version&nbsp;"8.0.294.0"&nbsp;which&nbsp;can&nbsp;be&nbsp;downloaded&nbsp;at&nbsp;[ap.thinkgeo.com:5001/fbsharing/A07zyrZE](http://ap.thinkgeo.com:5001/fbsharing/A07zyrZE)&nbsp;?&nbsp;Here&nbsp;is&nbsp;a&nbsp;video&nbsp;what&nbsp;we&nbsp;use&nbsp;this&nbsp;version&nbsp;with&nbsp;the&nbsp;sample&nbsp;I&nbsp;provided,&nbsp;you&nbsp;see&nbsp;everything&nbsp;works&nbsp;fine.&nbsp;Would&nbsp;you&nbsp;please&nbsp;do&nbsp;a&nbsp;double-check&nbsp;or&nbsp;create&nbsp;a&nbsp;video&nbsp;for&nbsp;us&nbsp;to&nbsp;show&nbsp;the&nbsp;problem&nbsp;you&nbsp;are&nbsp;having?&nbsp;  
  
  
  
Video:&nbsp;[screencast.com/t/96NCjMKbQzh](http://screencast.com/t/96NCjMKbQzh)  
  
  
  
Thanks,  
  
Johnny

---

<div class="post-metadata">

**Author:** ![zeeshan1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e68b1a/32.png) [@zeeshan1](https://community.thinkgeo.com/u/zeeshan1)\
**Post date:** [April 17, 2015, 1:07am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/18 "2015-04-17T01:07:18Z")

</div>

Yes,&nbsp;I’m&nbsp;using&nbsp;“8.0.294.0”…and&nbsp;still&nbsp;I&nbsp;am&nbsp;having&nbsp;this&nbsp;issue&nbsp;as&nbsp;shown&nbsp;in&nbsp;the&nbsp;attached&nbsp;screenshot.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [April 20, 2015, 3:46am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/19 "2015-04-20T03:46:09Z")

</div>

Hi&nbsp;Zeeshan,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Are&nbsp;you&nbsp;sure&nbsp;you&nbsp;test&nbsp;just&nbsp;like&nbsp;what&nbsp;Johnny&nbsp;did&nbsp;on&nbsp;the&nbsp;video&nbsp;and&nbsp;it&nbsp;still&nbsp;have&nbsp;same&nbsp;problem?&nbsp;Do&nbsp;you&nbsp;think&nbsp;that&nbsp;related&nbsp;with&nbsp;IDE&nbsp;or&nbsp;environment?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Because&nbsp;we&nbsp;change&nbsp;machine&nbsp;to&nbsp;test&nbsp;that&nbsp;still&nbsp;cannot&nbsp;reproduce&nbsp;it.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![zeeshan1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e68b1a/32.png) [@zeeshan1](https://community.thinkgeo.com/u/zeeshan1)\
**Post date:** [April 20, 2015, 5:04am UTC](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406/20 "2015-04-20T05:04:18Z")

</div>

Didn’t&nbsp;error&nbsp;description&nbsp;hint&nbsp;you&nbsp;about&nbsp;the&nbsp;possible&nbsp;root&nbsp;cause?&nbsp;  
&nbsp;I’m&nbsp;not&nbsp;sure&nbsp;how&nbsp;I&nbsp;can&nbsp;help&nbsp;you&nbsp;reproduce&nbsp;the&nbsp;error.&nbsp;&nbsp;  
&nbsp;What&nbsp;about&nbsp;having&nbsp;a&nbsp;team&nbsp;viewer/skype&nbsp;session&nbsp;to&nbsp;show&nbsp;you&nbsp;raising&nbsp;the&nbsp;error&nbsp;on&nbsp;my&nbsp;machine?&nbsp;  
&nbsp;Not&nbsp;sure&nbsp;it&nbsp;is&nbsp;related&nbsp;with&nbsp;my&nbsp;dev&nbsp;env.&nbsp;But&nbsp;the&nbsp;client&nbsp;has&nbsp;also&nbsp;complained&nbsp;of&nbsp;app&nbsp;crashing&nbsp;due&nbsp;to&nbsp;(most&nbsp;probably)&nbsp;the&nbsp;same&nbsp;reason.

[Next page](https://community.thinkgeo.com/t/bing-map-displaying-geometry-off-target-in-windows-phone/7406.md?page=2)
