Nextrek
Diff Revisions
798
vs
799
for /Android/SmartCharging/SmartCharging_WP/SmartCharging/MapPage.xaml.cs
|
@@ -27,6 +27,7 @@ |
27 |
27 |
|
using Windows.UI.Xaml.Data; |
28 |
28 |
|
using Windows.UI.Xaml.Input; |
29 |
29 |
|
using Windows.UI.Xaml.Media; |
|
30 |
+ |
using Windows.UI.Xaml.Media.Imaging; |
30 |
31 |
|
using Windows.UI.Xaml.Navigation; |
31 |
32 |
|
|
32 |
33 |
|
// The Basic Page item template is documented at http://go.microsoft.com/fwlink/?LinkID=390556 |
|
@@ -140,7 +141,7 @@ |
140 |
141 |
|
int zoom = 15; |
141 |
142 |
|
MapIcon MapIcon1 = new MapIcon(); |
142 |
143 |
|
MapIcon1.Location = userLocation; |
143 |
|
- |
MapIcon1.NormalizedAnchorPoint = new Point(1.0, 0.5); |
|
144 |
+ |
MapIcon1.NormalizedAnchorPoint = new Point(0.5, 1); |
144 |
145 |
|
MapIcon1.Title = resourceLoader.GetString("YourPositionMessage"); |
145 |
146 |
|
MapIcon1.Visible = true; |
146 |
147 |
|
MapIcon1.ZIndex = int.MaxValue; |
|
@@ -184,7 +185,7 @@ |
184 |
185 |
|
|
185 |
186 |
|
|
186 |
187 |
|
|
187 |
|
- |
return await this.SMA.GetSites(position.Position, 500000, type); |
|
188 |
+ |
return await this.SMA.GetSites(position.Position, 50000, type); |
188 |
189 |
|
|
189 |
190 |
|
|
190 |
191 |
|
} |
|
@@ -233,7 +234,7 @@ |
233 |
234 |
|
/*load data for the selected site and apply it as datacontext for ui binding*/ |
234 |
235 |
|
private async Task setSelectedSite(Site site){ |
235 |
236 |
|
/*load details only once*/ |
236 |
|
- |
if (site.Description == null ) |
|
237 |
+ |
if (site.OwnerId == null ) |
237 |
238 |
|
{ |
238 |
239 |
|
this.showLoading(); |
239 |
240 |
|
await this.SMA.GetSiteDetailsAndReviews(site, 10); |