POST
|
Hi, possilel bug issues about WMSLayer (api:4.4) I am getting error while trying to use WMSLayer. ERROR: Cannot read property 'on' of null at Object.set (ExportWMSImageParameters.js:5) sample code from Sandbox: layers-wms esriConfig.request.corsEnabledServers.push( "mesonet.agron.iastate.edu"); layer = new WMSLayer({ // See http://mesonet.agron.iastate.edu/ogc/ for more WMS services from Iowa Environmental Mesonet (Iowa State University) url: "https://mesonet.agron.iastate.edu/cgi-bin/wms/goes/conus_ir.cgi" }); map = new Map({ //basemap: "dark-gray", layers: [layer] }); view = new MapView({ container: "viewDiv", //center: [-123, 49], //zoom: 5, map: map }); My code is smilar but it is typescript: 1- I am using for CORS: esriConfig.request.corsEnabledServers.push( "mesonet.agron.iastate.edu"); or: urlUtils.addProxyRule({ urlPrefix: "https://mesonet.agron.iastate.edu", proxyUrl: "/proxy" }); and rest of the code: var wmsLayer: any = new WMSLayer(); wmsLayer.url = "https://mesonet.agron.iastate.edu/cgi-bin/wms/goes/conus_ir.cgi" this.mapManagerService.map.add(wmsLayer); by the way I cant reach WMSLayer "url" property so I define it "any" type (Arcgis js Api: 4.4) Thanks.
... View more
08-04-2017
06:26 AM
|
0
|
3
|
3120
|
POST
|
hi Adrew, May be it is because of GPS's coordinate system and you should prepare your mxd's transformation same as GPS system. It is mostly WGS84. You can try your map documents coordinate system>transformation as WGS84.
... View more
10-07-2014
11:46 AM
|
0
|
0
|
271
|
POST
|
version is 10.2.1 or 10.2.2 I need help about my arcgis server manager problem? Why arcgis server manager log me out while I am working on it?
... View more
10-06-2014
01:33 PM
|
0
|
3
|
4118
|
POST
|
Did you all try to set your Coordinate System "transformation" to WGS84?
... View more
02-13-2014
08:47 PM
|
0
|
0
|
433
|
POST
|
By the way, you should upload your data with "FeatureSyncAgent" after download and finished the editing. also you should set direction of synchronization with this method as upload. I mean download with "MobileCacheSyncAgent" for custom extend and then use "FeatureSyncAgent" to upload data back. Regards...
... View more
02-12-2014
04:53 AM
|
0
|
0
|
636
|
POST
|
Theoretically yes. But I did not try. Actually you would be able to do everything for extension development what you do in normal mobile application development. we can not be sure without try 🙂
... View more
02-11-2014
11:02 PM
|
0
|
0
|
636
|
POST
|
So, you can do all you want... For instance, first download a specific area then synchronize it. After synchronization delete cache and download another extend. So you can synchronize just where you download... this is not enough for you?
...
MobileCacheSyncAgent agent = new MobileCacheSyncAgent(currentMobileCache, conn);
agent.DownloadExtent(envelope);
//agent.Synchronize();
...
Which extend you download so you can synchronize just this extend data...
... View more
02-10-2014
09:26 PM
|
0
|
1
|
636
|
POST
|
You can set your mobile service extend for editable area while publishing your service and then you can syncronize just this area. also you can download custom extend with "downloadExtend" Method. But I suppose that there is no "new extend" limitation while syncronization.
... View more
02-10-2014
01:42 AM
|
0
|
0
|
636
|
POST
|
hint: if the rest of the items are unit(standalone) and relation so you can not use in mobile cache
... View more
02-05-2014
01:52 AM
|
0
|
0
|
154
|
POST
|
for your 2. question: try tile cache but you should prepare tpk file and also exract it ////set the sourceLocation as the folder of your tiled dataset e.g. C:\tiledDataset
////(i.e. the folder that contains the conf.xml file)
////, or the fullPath of your tile package file e.g. C:\tilePackage.tpk
//string sourceLocation = @"<Location of your tiled dataset/tile package>";
//TileCacheMapLayer tileCacheMapLayer = new TileCacheMapLayer(sourceLocation);
//tileCacheMapLayer.Open();
//map1.MapLayers.Add(tileCacheMapLayer); four your 4.question: as I know, mobile cache is "must" for mobile app to use data on "disconnected environments" and other questions are also big problem for most of us:) thanks
... View more
02-04-2014
03:29 AM
|
0
|
0
|
415
|
POST
|
hi, Still no cabability? In some case esri resources say there is no support but the others are say "yes you can" let me show some code samples to describe myself properly. //FeatureService Connection using replicamanager
string featServiceUrl = @"http://<myserver>/arcgis/rest/services/test3/FeatureServer";
FeatureServiceReplicaManager fsreplica = new FeatureServiceReplicaManager();
//MobileCache
string cacheStoragePath = @"C:\GIS\Project\Mobil\db(Cache)\cache";
MobileCache mobileCache = new MobileCache(cacheStoragePath);
//delete old cache
if (mobileCache.CacheExists == true)
mobileCache.DeleteCache();
////////////////////////////
//Create a token to access the service with valid username\password
TokenCredential token = new TokenCredential("user", "pass");
//Set feature service properties
fsreplica.TokenCredential = token;
fsreplica.Url = featServiceUrl;
fsreplica.Initialize();
fsreplica.MobileCache = mobileCache;
//Get the data from the service to the local cache
fsreplica.CreateReplica();
//Open the cache and add it to the maplayers
mobileCache.Open();
if (!fsreplica.IsRegistered)
fsreplica.RegisterReplica();
map1.MapLayers.Add(mobileCache);
I saw an example for Arcgis 9.3 version named "working standalone tables in arcgis mobile" or something like this. Anyway Now also somebody can do with this code but is there any trick or bug because while I was trying this code after creating replica and then cache is created it throws error something like "any other task using the same file..." error line is "fsreplica.CreateReplica();". Especially "tempXXXX.json" file is problem at this point. Is there any sample or answer for this problem. And One more question; Why we can just use nonverioned and archived data for sync capability to create editable cache? Thanks
... View more
02-04-2014
03:13 AM
|
0
|
0
|
2808
|
POST
|
Hi, There must be several reason anyway, for codebehind you should download data from service after you took schema file. try
{
// Create an instance of MobileCache, and set StoragePath
MobileCache mobileCache = new MobileCache();
mobileCache.StoragePath = @"C:\GIS\Project\Mobil\db(Cache)\cache";
if (mobileCache.CacheExists)
mobileCache.DeleteCache();
MobileServiceConnection conn = new MobileServiceConnection();
conn.Url = @"http://<server>/arcgis/rest/services/test3/MapServer/MobileServer";
// Create Mobile Cache Schema
conn.CreateCache(mobileCache);
// Open MobileCache
mobileCache.Open();
// Use MobileCacheSyncAgent to download data from server
MobileCacheSyncAgent agent = new MobileCacheSyncAgent(mobileCache);
agent.MapDocumentConnection = conn;
agent.DownloadExtent(mobileCache.FullExtent);
//agent.Synchronize();
// Load layers from MobileCache to Map control
map1.MapLayers.Add(mobileCache);
//map1.Extent = mobileCache.FeatureSources[0].FullExtent;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
} For Desktop version; I dont know the desktop reason why data is not inlcuded but may be a bug but you should re-install your arcmap to use create mobile cache tool properly... in once I also be faced with this problem... One more thing is that care about spatial referansce with tile cache and mobile cache must be same, you probably know that issue... Thanks.
... View more
02-04-2014
02:52 AM
|
0
|
0
|
630
|
POST
|
javascript api also can do what I need: http://developers.arcgis.com/en/javascript/samples/ed_default_editingwidget/ need for silverlight...
... View more
05-14-2013
12:39 AM
|
0
|
0
|
161
|
POST
|
Actualy, I would like to do this; http://resources.arcgis.com/en/help/flex-api/samples/#/Edit_without_Editor/01nq00000043000000 What I need actualy is that I want to snap on any closed point of polygon or polyline not just to the middle of edge and when I catch the closed then add a new point or something other. See above link for flex api. is there any solution for Silverlight api? One More question: Why Api3.1 is not include snapEdge prop.? [ATTACH=CONFIG]24281[/ATTACH]
... View more
05-13-2013
10:52 PM
|
0
|
1
|
501
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|