Select to view content in your preferred language

arcgis 10 blank map

2669
7
01-11-2011 12:38 PM
ThaoNguyen
Emerging Contributor
I just installed arcgis view 10 to my machine.  Created a map in MS Visual Studio 10, when I viewed it, it was blank, I could see 1 tooltip but the map was not there :(.  I connected to a map service in arcgis server 10.  I was able to connect to a map service in server 9 and the map was displayed fine.  The map service in server 10 was available since I could view the details from browser (http://<server name>/arcgis/rest/services/......)
Please help!
Thanks!
0 Kudos
7 Replies
ThaoNguyen
Emerging Contributor
I just installed arcgis view 10 to my machine.  Created a map in MS Visual Studio 10, when I viewed it, it was blank, I could see 1 tooltip but the map was not there :(.  I connected to a map service in arcgis server 10.  I was able to connect to a map service in server 9 and the map was displayed fine.  The map service in server 10 was available since I could view the details from browser (http://<server name>/arcgis/rest/services/......)
Please help!
Thanks!


OOps, sorry, I haven't updated esri dll files to my development environment.  Please disregard my post.
0 Kudos
ThaoNguyen
Emerging Contributor
OOps, sorry, I haven't updated esri dll files to my development environment.  Please disregard my post.


Related question.  For arcgis 9, I just copy all dll files from Arcgis/dotnet directory to my build env to get my stuff compiled.  Arcgis 10 does not have dotnet dir and the dll files that exist in arcgis 9 do not exist in arcgis 10 (e.g. ESRI.Arcgis,AxMapControl.dll).  What is your advice to do for a development env?

Thanks!
0 Kudos
ThaoNguyen
Emerging Contributor
Related question.  For arcgis 9, I just copy all dll files from Arcgis/dotnet directory to my build env to get my stuff compiled.  Arcgis 10 does not have dotnet dir and the dll files that exist in arcgis 9 do not exist in arcgis 10 (e.g. ESRI.Arcgis,AxMapControl.dll).  What is your advice to do for a development env?

Thanks!


I installed development kit and got the dll files I want.  My code compiled successfully, but the map is still blank.  Please help!  There is no errors at all :(.
0 Kudos
dotMorten_esri
Esri Notable Contributor
0 Kudos
ThaoNguyen
Emerging Contributor
Please see this blogpost: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx


Thanks for your response!
I followed the instructions you wrote on your post and installed Fiddler.  When I launched my app from visual Studio 10, Fiddler didn't show me any errors for the map service url that I connected to.
In addition, the queryTask.ExecuteCompleted event handler returned me the right number of features.
I also added InitializationFaield event handler, the method was not hit either.
Looked like everything was fine.  Don't know why the map is still blank.
What else do you think may cause the problem?
0 Kudos
ThaoNguyen
Emerging Contributor
Please see this blogpost: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx


BTW, we are using .net framework 4. My machine is Windows 7 Enterprise.  I think it would be OK.
This is a desktop app using acrgis wpf APIs for map.
0 Kudos
ThaoNguyen
Emerging Contributor
BTW, we are using .net framework 4. My machine is Windows 7 Enterprise.  I think it would be OK.
This is a desktop app using acrgis wpf APIs for map.


Found the problem!
I added a map navigation, I had a problem with the map navigation that the zoom bar was not displayed as I expected.  I was told to specify maximum and minimum resolution values.  I specified max as 2 and min as 0.000001 and the zoom bar was displayed as expected.  For esri 9, my map was displayed as expected as well.
When I move to esri 10, if I leave the same resolutions values, the map zoom in too close that I only see the graphic color that I set, no streets etc.  When I remove resolution attributes, my map is zoomed out as expected, but my zoombar is too short.

Now, my problem is I don't know what resolution I should set so that it works on both arcgis 9 and 10 😞 and I can see my zoom bar as expected (same height as the round navigator).
0 Kudos