POST
|
Hi Dasa, Its still not working. I am surprised what the problem is, it is showing similar behavior using the Javascript API. The map is also error-free. Thanks, Vinay
... View more
01-28-2011
09:03 AM
|
0
|
0
|
471
|
POST
|
Hi, I have a local ArcGIS server using which I published a service. The service works using the "Create a Web Application" Wizard. I downloaded a sample code and it ran smoothly, the difference is the URL is online and not local to my server. I want to run this code using my local ArcGIS server URL and all I see is a blank screen. The map is error free. Can anybody help resolve this? My code <html> <head> <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1" type="text/javascript"></script> <link href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.1/js/dojo/dijit/themes/claro/claro.css" rel="stylesheet" type="text/css" > </head> <script type="text/javascript"> dojo.require("esri.map"); var map;' function init() { map=new esri.Map("mapDiv") var basemapURL = "http://8hXXXX:8399/arcgis/rest/services/Map_City/MapServer"; var basemap = new esri.layers.ArcGISDynamicMapServiceLayer(basemapURL); map.addLayer(basemap); } dojo.addOnLoad(init); </script> <body class="caro"> <div id="mapDiv" style="width:900px;height:600px;border:1px solid #000;"></div> </body> </body> </html> Thanks! PS: URL no is censored for security
... View more
01-28-2011
09:00 AM
|
0
|
3
|
813
|
POST
|
Hi Robert, I am surprised, if I browse the URL formed by the addition of rest, then it does navigate to a page containing information. I am not sure why it is not working in Flex. It works with the sample code online. here is my code again, do you find anything else wrong with it? ?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:esri="http://www.esri.com/2008/ags"> <esri:Map> <esri:ArcGISImageServiceLayer url="http://8HGXXXX:8399/arcgis/rest/services/map/MapServer" /> </esri:Map> </mx:Application> Thanks, Vinay
... View more
01-26-2011
07:14 AM
|
0
|
0
|
471
|
POST
|
Hi Robert, Thanks for the suggestion but it did not work. The URL displayed is different in my arcgis manager, there is no "rest" in it. This is a local map(mxd), created a service with the existing URL and I believe the maps online have the 'rest' directory. Is there anything else that might be wrong? Thanks, Vinay
... View more
01-26-2011
07:10 AM
|
0
|
0
|
471
|
POST
|
Hi Friends, I am new to ArcGIS and ArcGIS server. I created a service and used the arcgis manager to deploy a web application. So far so good. My goal is to use my .mxd file and use flex to view it on a web page and design my custom interface to interact with it. I used the code samples given online and ran it using my flash builder. These also work. The issue is when I try to use the map URL of my local ArcGIS server in my flash builder, it does not work. I see a blank screen. My Flex code <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:esri="http://www.esri.com/2008/ags"> <esri:Map> <esri:ArcGISImageServiceLayer url="http://8HGXXXX:8399/arcgis/services/My_Map/MapServer" /> </esri:Map> </mx:Application> I shall be thankful if you can suggest me how to resolve this. PS: The numbers have been censored for security.
... View more
01-26-2011
05:46 AM
|
0
|
10
|
3513
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|