Select to view content in your preferred language

v2.3.2 and Local Tile Packages. Something is different.

1623
10
10-03-2012 09:21 AM
RussellShirley
Emerging Contributor
Hi All,

I have been using the??? LocalTilePackage??? and ???GPS Sample??? sample codes merged together to do testing for a new app. Using version 2.2.1 the tile packages worked with the GPS perfect. When the Navigation and Compass Navigation modes were selected the GPS icons were centered on the screen. When I upgraded to version 2.3.2 they no longer are centered, they are to the left and bottom. This is true whether the app is on IOS 5.1 or 6.0, iPad or iPhone. I have even downloaded the latest sample code with the same results. So I must conclude that there is something different between the versions in relation to tile packages and GPS. FYI my WKID is 2239. My tile packages were created with Server 10.1 and Desktop 10.1

So has anyone come across this yet?

Thanks, Russell
0 Kudos
10 Replies
NimeshJarecha
Esri Regular Contributor
In navigation auto pan mode, GPS icon should be in bottom-center by default. The navigationPointHeightFactor property of AGSGPS's (self.mapView.gps) controls location of symbol. You can set it at desired location.

Regards,
Nimesh
0 Kudos
RussellShirley
Emerging Contributor
Nimesh,

I knew of that property. In the sample code its is set to 0.5 which should put it in the center, which it has been. By changing that value I can get it to move up or down (Y) but 0.5 will not put it in the center. I cannot get it to move to the center left to right (X). I did try the app on an iPad 2 and 3, both have the same problem. I will look to see if the WKID has an effect the behavior.

Russell
0 Kudos
RussellShirley
Emerging Contributor
Well, using a different WKID did not have any affect. I used the BING/Google scheme and the same thing happened. I attached a screen shot from the iPhone.
0 Kudos
NimeshJarecha
Esri Regular Contributor
Are you seeing this issue with only local tiled packages?

Regards,
Nimesh
0 Kudos
NimeshJarecha
Esri Regular Contributor
Russell,

Any update on this?

Regards,
Nimesh
0 Kudos
RussellShirley
Emerging Contributor
I am still trying to find it. When I got a pristine copy of the GPS sample and change it to use tiles it worked like it should. I will do the same for the TilePackage sample. I will upadate when I know more
0 Kudos
NimeshJarecha
Esri Regular Contributor
No problem. Let me know when you have more info.

Regards,
Nimesh
0 Kudos
RussellShirley
Emerging Contributor
I found the problem. It was the location of the Mapview. Somehow the location values had negative numbers. 2.2.1 must have ignored them while 2.3.2 did not. Thanks for you help Nimesh.
0 Kudos
NimeshJarecha
Esri Regular Contributor
Good to know that you got it working now. However, could you please provide more info? Location values coming from GPS had wrong values? or you were doing something on top of that?

Regards,
Nimesh
0 Kudos