|
POST
|
Hello All, I'd like to know the differences between these two and their usage. I searched and found some useful information but I am still confused. I'd appreciate some cod samples. Thanks
... View more
08-13-2014
06:09 AM
|
0
|
0
|
3222
|
|
POST
|
I COAViewer_dev to another basemap layer and it works. Now I can switch from street view to image view. Thanks klapine.
... View more
06-27-2014
12:33 PM
|
0
|
0
|
695
|
|
POST
|
sorry I forgot to mention the services I used here are internal versions. I will switch to external ones and post the code again. Thanks
... View more
06-27-2014
10:20 AM
|
0
|
0
|
695
|
|
POST
|
Hello, I modified one of the basemap sample and put my own services in. Then I found out that only first basemap service displayed. I have two services in. no matter what the 2nd one in the list never shows. there is not much in the code. both services have same coordinate system. only difference I can tell is that one is a jpeg picture another (image) in png. Please let me know any possible thing which may cause this. thanks. <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!--The viewport meta tag is used to improve the presentation and behavior of the samples on iOS devices--> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Display Multiple ArcGIS Online Services</title> <link rel="stylesheet" href="http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.9/js/esri/css/esri.css"> <style> html, body { height: 97%; width: 98%; margin: 1%; } #map { border: solid 1px #B5BCC7; padding: 0; } #paneHeader { background: url(images/header.png) repeat-x; color: white; border-bottom: solid 1px #B5BCC7; text-align: center; height: 30px; margin: 0; overflow: hidden; font-size: 16px; padding: 8px 5px; } #rightPane { width: 150px; margin: 0; padding: 0; } </style> <script>var dojoConfig = { parseOnLoad: true };</script> <script src="http://js.arcgis.com/3.9/"></script> <script> dojo.require("esri.map"); dojo.require("dijit.form.Button"); dojo.require("dijit.layout.BorderContainer"); dojo.require("dijit.layout.ContentPane"); dojo.require("esri.dijit.BasemapGallery"); dojo.require("esri.arcgis.utils"); var map; function init() { map = new esri.Map("map"); createBasemapGallery(); } function createBasemapGallery() { //manually create basemaps to add to basemap gallery var basemaps = []; var publicSafetyLayer = new esri.dijit.BasemapLayer({ url: "http://coaagssomtst.coacd.org/ArcGIS/rest/services/MapTiled/AerialImagery/MapServer" //png }); var publicSafetyBasemap = new esri.dijit.Basemap({ layers: [publicSafetyLayer], title: "Public Safety", thumbnailUrl: "images/safetyThumb.png" }); basemaps.push(publicSafetyBasemap); var waterTemplateLayer = new esri.dijit.BasemapLayer({ url: "http://coaagssomtst.coacd.org/ArcGIS/rest/services/MapTiled/COAViewer_dev/MapServer" //jpeg }); var waterBasemap = new esri.dijit.Basemap({ layers: [waterTemplateLayer], title: "Water Template", thumbnailUrl: "images/waterThumb.png" }); basemaps.push(waterBasemap); var basemapGallery = new esri.dijit.BasemapGallery({ showArcGISBasemaps: false, basemaps: basemaps, map: map }, "basemapGallery"); basemapGallery.startup(); dojo.connect(basemapGallery, "onError", function (error) { console.log(error) }); } dojo.ready(init); </script> </head> <body class="claro"> <!--[if IE 7]> <style> html, body { margin: 0; } </style> <![endif]--> <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design:'headline', gutters:true" style="width:100%;height:100%;"> <div id="map" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"> </div> <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'right'" id="rightPane"> <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design:'headline', gutters:false" style="width:100%;height:100%;"> <div id="paneHeader" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'"> <span>Select Basemap</span> </div> <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"> <div id="basemapGallery"></div> </div> </div> </div> </div> </body> </html>
... View more
06-25-2014
06:35 AM
|
0
|
3
|
1059
|
|
POST
|
thanks. I would give it a try. the error was caused by a miss spelled variable name in queryTask.execute(querytime, showTime); querytime should be timequery as it is defined in the code above.
... View more
06-17-2014
11:58 AM
|
0
|
0
|
678
|
|
POST
|
I checked setTimeout function. It does not set a start time. It just runs a function after the given time. What I need is something like window' scheduler. I can set a start time. from the start time every 15 minutes the map will refresh. More help is needed. Thanks
... View more
06-13-2014
07:53 AM
|
0
|
0
|
920
|
|
POST
|
My map needs to be updated every 15 minutes. I need to query to get new data time from the update. So i put a query function in "update-end" event. However the display function is never called. please help. Thanks system info: ArcGIS Server 10.2.1; Javascript API 3.9 var l; if (layer.type == 'dynamic') { l = new esri.layers.ArcGISDynamicMapServiceLayer(layer.url, layer.options); l.on("update-end", function (evt) { refreshcount++; var timequery = new query(); alert("fewsquerytask==" + config.fewsQueryTaskService); var queryTask = new QueryTask(config.fewsQueryTaskService); timequery.returnGeometry = false; timequery.outFields = ["PACKET_DATE_TIME"]; timequery.where = "PACKET_DATE_TIME is not null"; queryTask.execute(querytime, showTime); function showTime(listfeatures) { alter("inside showTime"); var feature = listfeatures.features[0]; var value = feature.attributes["PACKET_DATE_TIME"]; alert("packet value==" + value); dom.byId("packettime").innerHTML = "Refresh: "+refreshcount+" Packet Time: " + value; } });
... View more
06-13-2014
07:15 AM
|
0
|
3
|
1086
|
|
POST
|
Hello All, My app's data updates every 15 minutes starting at top of the hour. I want to set a start time for refreshInterval so whenever a map is loaded, a start time is set. For example, if map is loaded at 9:04 am I want to set the map refresh starting time at 9:20 am (data will start to refresh at 9:15 am and it may take up to 5 minutes to finish calculation). Then set the refreshInterval to 15 minutes. this way does not matter when user loads the map the map will be updated every 15 minutes with new data. it is very important that user can view the latest data. However I did not find any thing in map or layer object which allows me to set the start time. At moment I do not know what to do except to write my own update function. Please help.
... View more
06-10-2014
07:07 AM
|
0
|
4
|
1343
|
|
POST
|
One more question: Our ArcGIS Server is a dev server, running internally. I have not problem to access ArcGIS Server manager from another PC. It is different for Geoevent processor. At the server I can use localhost:6143 to open up the manager website but I kept getting "there is a problem with this website's security certificate" error when I used servername.domain:6143. I installed certificate but the error came back when I reopened webpage. Do I need two certificates for them? Thanks
... View more
01-13-2014
10:01 AM
|
0
|
0
|
1184
|
|
POST
|
Hello, I installed geoevent processor. Now I can use the manager by localhost or a fully qualified domain name on the server where geoevent processor installed. I can not access the manager webpage from another pc. ESRI support staff told me I have to do something with IIS. I have no idea where to start. Here is my server info: Operating System: window server 2012 ArcGIS Server: 10.2 with web adaptor installed Geoevent Processor: 10.2 Thanks for the help. Yinghong Li City of Austin
... View more
01-13-2014
05:49 AM
|
1
|
4
|
7591
|
|
POST
|
Hello, My user wants to have a customized tool to replace the default rotate tool. The default one requires to turn the symbology's rotation property on, which is causing mxd to crash. The crash happens several times a day now. We use ArcGIS 10.1 SP1. We seldom had crash when we used 10 SP3. Here is what in user's mind: 1. use the tool to turn the symbol to the desired direction and the number of the turning degree is catched. 2. the number is written to the rotation field. 2. since the rotation property is set to none so drawing will not rotate the features. This shall reduce the crash time. I do not know where to start. I found out the IRotationRenderer can be used. However how can I catch the event once the symbol finishes turning and get the degree number? Thanks.
... View more
08-14-2013
06:34 AM
|
0
|
0
|
1837
|
|
POST
|
Hello, WMX flex viewer asks for login. what should user name is? I tried my pc login and others. None of them went through. Also can I send a url from a desktop wmx step to excute a task (either rest or soap)? Thanks
... View more
02-11-2013
09:28 AM
|
0
|
1
|
2791
|
|
POST
|
I hope this piece of code will help you get started:
FeatureLayer featureLayer = (FeatureLayer)mobileCache1.Layers["Streets"];
DataTable dt = (DataTable)featureLayer.GetDomain(0,"street_name");
comboBox1.ValueMember = "Code"; //** Column name is case sensitive
comboBox1.DisplayMember = "Value";
comboBox1.DataSource = dt;
Hello, I'd like to know how to find if the domain is a coded value domain or ranged domain. here is my code: FeatureDataRow fdr = _feature.FeatureDataRow; int i = 0; int d = 0; foreach (DataColumn dc in fdr.FeatureSource.Columns) { //WriteToFile("column name=="+dc.ColumnName.ToUpper(), _errorLog, 2); // find the userid field, and populate current userID to this field //MessageBox.Show("columnname==" + dc.ColumnName.ToUpper()); IDomain domain = fdr.GetDomain(i); if (domain != null) { CodedValueDomain cvd = (CodedValueDomain)domain; if (cvd != null) { DataTable dtDomain = (DataTable)fdr.GetDomain(i); d++; if (d == 1) { string stemp = ""; for (int j = 0; j < dtDomain.Rows.Count; j++) { DataRow datarow = dtDomain.Rows ; stemp = stemp + " code==" + datarow["Code"] + " value==" + datarow["Value"]; } MessageBox.Show(stemp, "domain value"); } } } Thanks.
... View more
09-12-2012
07:29 AM
|
0
|
0
|
1514
|
|
POST
|
Hello, Can you post more on this? Which environment variavble was wrong? I am having same problem with one computer and do not know which part is wrong. Thanks. I figured it out. I had a bad environment variable.
... View more
08-13-2012
06:03 AM
|
0
|
0
|
386
|
|
POST
|
I figured this out based on Denise's reply. In 3.0 MPC extension has to be saved to a different location. Here is the part I got from sample Denise gave. I followed it and got my extension displayed in MPC. 3. Prepare a project in MPC a. Copy Extensions folder into C:\ProgramData\ESRI\MobileProjectCenter\Extensions (Win7) or C:\Documents and Settings\All Users\Application Data\ESRI\MobileProjectCenter\Extensions (WinXP) Note: ProgramData folder(Win7) and Application Data folder (WinXP) are hidden folders. They are accessible by entering %APPDATA% for WinXP machines or %ProgramData% for Win7 machines on Address Bar. Also You may want to use template to create a new MPC project. I do not think lot of code in 10 is still useful in 3.0. My is from new template and there is no readxml and other stuff. I could be wrong since I have no document to go by. Happy coding! I'm in the same boat here. I'm trying to upgrade a custom extension to v3.0 but my extension is not showing up in the capabilities section in mobile project center. The project is compiling fine and I'm deploying the .dll to <ArcGIS install-directory>\Mobile3.0\bin\extensions folder. All the samples/documentation online are written for v10.0 so I'm wondering if the deployment strategies have changed in v3.0 Matt
... View more
07-12-2012
10:05 AM
|
0
|
0
|
1246
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 08-15-2016 12:26 PM | |
| 1 | 03-02-2017 12:56 PM | |
| 1 | 03-02-2017 12:56 PM | |
| 1 | 01-13-2014 05:49 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-26-2024
03:33 PM
|