|
POST
|
Jeff's right. Souce code is not available but you can easily plug in your own or esri's routing service into the dijit. I would begin by looking at the routing paramaters, tasks and results task examples-
... View more
03-26-2014
11:45 AM
|
0
|
0
|
661
|
|
POST
|
Hi Robert- Just thought I'd let you know that I have been making the move over for to JS since about September of 2013. We've been able to work out many idosyncracies with AMD, classes, aliases, dgrid, where to place and call modules, CSS syntax, working with feature layers and cached services at the same time and more. Now, I am not trying to recreate the viewer in the JSAPI. But if ESRI comes out with a 'viewer' we will certainly take a look. I'm at 3.6 with the FlexViewer and don't really anticipate taking it to a greater release (unless you come up with some sort of must-have at 3.7 or 3.8:). As far as any of the current JS templates that esri has out (property and community lookupds), I have found it much eaiser to construct my own templates as most of the esri code is still in legacy format, and of course like everything else I'd rather build my own code than deconstruct theirs where possible. In the meantime, I spending much more time on the Javascript API forums. I have two colleuges, Jeff Pace and Ken Buja, that have provided invaluable tips and answers. Also, for those that must have a TOC dijit, please see: http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/latest/examples/toc.html See you in the forums--
... View more
03-24-2014
11:19 AM
|
0
|
0
|
868
|
|
POST
|
Hello Diego: I'm sure you are probably already aware, but there is a patch that address tiles and tile count anamalies: "ArcGIS 10.2.1 for (Desktop, Engine, Server) Hosted map service export tiles dialog Patch". I'm not certain that it will address your specific issue, but it well could. I too am at 10.2.1 and have experienced a similar issue, but have found that as long as I run my cache re-builds through "arcpy.ManageMapServerCacheTiles_server" tool, update mode "RECREATE_ALL_TILES, specify my scales in an array, I never have any issues. I rebuild both a local streets cache and a local basemap cache in both a state plane harn and web mercator projections each weekend. I do find at times that with my web mercator scales, my cache directory will at times leave behind empty scale level folders that I am not using, but I just delete these. See the help for for good examples to get you started if you haven't already. Hope this helps- David
... View more
03-14-2014
08:25 AM
|
0
|
0
|
1004
|
|
POST
|
Hello Esri et al: We have discovered that the 10.2.1 Create Mobile Cache tool failures are related to the map extent for certain map projections such as HARN. It would appear that there is something in the way the extent is read when using a HARN projection. For example, when publishing an mxd in a HARN projection enabled and bringing that MobileService as an operational layer into the MPC the service will not display. When zooming to the initial extent, all appears normal but still no display of data. And the Cache tool continues to extract only schema as well. However, when then setting the project extent in the MPC, the MPC will zoom down to a 5" square envelope. It's as if the op layer were behaving as page space. This got me thinking about the projection engine, which apparently has changed slightly at 10.2.1. So, as a workaround, I brought my HARN projected layers back into a new mxd, changed the data frame projection to standard state plane and reset the full extent. I then switched the data frame back to HARN, reset the full extent, published the service and wa-la. The op layer displays in the MPC, and the cache tool is able to dowload all data from the modified mxd. So, I think the real issue lies in the way MPC and the Cache tools handle HARN (and perhaps other projections as well) as all of this was never a problem at 10.2 Thanks-- hope this helps others. David
... View more
02-13-2014
01:10 PM
|
0
|
0
|
1318
|
|
POST
|
Hi Chris- Thanks for the reply. I apologize for the frustration. I've since discovered that we may have some data issues as the 'Create Mobile Cache' tool is downloading the features at cache creation for some of my feature classes but not all. The tool works with one specific cache that I have created for the MPC, and does dowload the data to that cache from my 10.2.1 SDE. For the two caches where the tool is failing, those are being consumed in a MobileSDK application, but that shouldn't make a difference. At this time we have to check this data, (as it's not an mxd full-extent setting issue). Thanks for the reply and I will post my findings later this week or so. If I am unsuccessful there, I'll open up a support incident- David
... View more
01-28-2014
07:11 AM
|
0
|
0
|
1318
|
|
POST
|
I think you have share or port issues. Are you using a local or domain account for arcgisserver? Have you re-run the post-installation for the arcgisserver account? Have you checked all of your share permissions for the arcgisserer account for all of the system directories? Does that account have write access? Does your IT have any proxy or reverse proxy settings that you are not aware of? Are you running WebAdaptor on the same server? Is it listening on the correct ports? Hope that helps- David
... View more
01-28-2014
06:58 AM
|
0
|
0
|
2579
|
|
POST
|
Hi again all- Sorry to answer my own reply, but after 9 days not a single user has encountered difficulties with the Create Mobile Cache tool at 10.2.1? Everything works just fine in 10.2, no problems whatsoever no matter what the source data, be it file gdb, sde, versioned vs non-versioned data. What I am discovering is that after checking all parameters from privliges and user accounts, gloabalIDs, editor tracking and more the tool will download data into the cache for some mxd's but not others-- Esri? Anyone? David
... View more
01-23-2014
12:47 PM
|
0
|
0
|
1318
|
|
POST
|
Hello- Server 10.1 through 10.2.1 doesn't work that way. You must overwrite the map service to see any data changes. This can be scripted using pyhton by setting up sddraft and sd files (service definition files) that reference your services where the sd is then posted toserver. See 10.2 help on services overwititng and publication David
... View more
01-16-2014
07:46 AM
|
0
|
0
|
378
|
|
POST
|
Hi- Does anyone know what might cause the Create Mobile Cache 10.2 tool to only create the mobile cache schema and NOT pull the datafrom a 10.2.1 map after publishing as a 10.2.1 map and mobile service? Esri, do you have a response? Thanks, David
... View more
01-14-2014
08:29 AM
|
0
|
18
|
11851
|
|
POST
|
I did run accross some helpful information in terms of the IDLE. As a scheduled task, we can set the 'program to run' (target) as either C:\Python27\ArcGIS10.2\python.exe or as C:\Python27\ArcGISx6410.2\python.exe. However, if one wishes to run a 32-bit script in a mixed environment directly from the IDLE, the target must be manually changed in your IDLE Properties. At completion howerver, the target must be reverted back. AND, existing scripts still launch in the 64-bit flavor. Still, it would be helpful for esri to post which modules or tools run in which environment. David
... View more
12-11-2013
05:26 AM
|
0
|
0
|
444
|
|
POST
|
I hate answering my own posts, but the problem here lies in the 64-bit background processing. If the 64-bit background processing is installed on your desktop, the mobile python tools will not run using the [MSC v.1500 64 bit (AMD64)] on win32 python target. They must run in 32-bit. So, either un-install 64-bit background processing and change the python registry in regedit to re-point the python IDLE to run in the [MSC v.1500 32 bit (Intel)] target, or run mobile on a machine that has a 10.2 desktop install WITHOUT the 64-bit background processing module installed. Hope this helps- David
... View more
12-04-2013
08:26 AM
|
0
|
0
|
412
|
|
POST
|
Hello- We have found (and keep finding) many tools related to server and mobile that will not run in the 64-bit IDLEs. Currently, neither the mobile cache creation or synchronization tools will run in the: [MSC v.1500 64 bit (AMD64)] on win32 IDLE and Shell but rather will only run in the: [MSC v.1500 32 bit (Intel)] on win32 IDLE and Shell. The same is true for some of the server module tools such as arcpy.server.StageService and arcpy.server.UploadServiceDefinition. The most frustrating thing of course is that as a developers/scripters, we have no way of knowing which tools will run in which targets! The only way I have found to work around this obvious oversight is to make a registry change to my desktop IF I have installed the 64-bit background processing module, OR run a seperate installation of AGS10.2 without the said module. I welcome any comments or suggestions- Thanks David
... View more
12-04-2013
08:11 AM
|
0
|
1
|
2588
|
|
POST
|
Hello- The Mobile Tools 10.2 modules are not being found by Python 2.7 IDLE when trying to run a CreateMobileCache from the Python 2.7 IDLE. Has anyone encountered this or is there a workaround? Thanks David
... View more
11-08-2013
08:42 AM
|
0
|
1
|
1444
|
|
POST
|
Hi Tracy- I am a bit new to the JavaScript world, having recently migrated over from the flex api world in the last three months. I began working quite a bit with Jeff Pace recently, whom I'm sure you recognize from this forum, he's in a neighboring county. On a recent project returning feature query results to an onDemand Grid, I used the following. It's all AMD, so hopefully this will help, please forgive the length of my post. BTW, nice app. : Requires (dgrid specific): "dojo/data/ItemFileReadStore", "dojo/store/DataStore", "dojo/store/Memory", "dojo/date/locale", "dgrid/OnDemandGrid", "dgrid/Selection", //only for dgrid with attribute fields from feature layer (obviously I requrie array, on, dom etc) Aliases: ItemFileReadStore DataStore Memory locale declare array In my ready function, initialize the the grid, store it in a div: Some column formatters are inlcuded (are project specific) /*var gridEvac = new (declare([Grid, Selection, TextSymbol]))({ bufferRows : Infinity, noDataMessage : "No Evacuation Zone!", columns : { EvacuationZone : "Evacuation Zone", /*datetime : { "label" : "Date/Time", "formatter" : function(dtStorm) { return locale.format(new Date(dtStorm)); } },*/ SurgeHeight : "Surge Height Range", Hyperlink : { "label" : "Emergency Services", "formatter" : function(link) { return "<a target='_blank' href=https://www.scgov.net/AllHazards/Pages/default.aspx>Click Here</a>"; } } } }, "divGrid"); setting an output fields array to pass to return array from our feature results query in a results function e.g: var outFieldsEvac = ["EvacuationZone", "SurgeHeight"]; function populateGrid(results) { var dataEvac = array.map(results.features, function(feature) { //Reference the attribute field values and set up the return to pass to the grid return { "EvacuationZone" : "Zone " + feature.attributes[outFieldsEvac[0]], "SurgeHeight" : feature.attributes[outFieldsEvac[1]] }; }); //Then // Pass the data to the grid var memStore = new Memory({ data : dataEvac }); gridEvac.set("store", memStore); gridEvac.renderArray(dataEvac); } //populateGrid function close Lastly, if you wish to clear items from the grid: function removeInfoGraphics() { //mapMain.infoWindow.hide(); //mapMain.graphics.clear(); var clearStore = new ItemFileReadStore({data: {identifier: "", items: []}}); gridEvac.setStore(clearStore); //clears the grid, kudos Michael! }; Then some simple styling in a separte css file: #divGrid { width: 100%; } .dgrid { border: none; } .field-EvacuationZone { width: 20%; } .field-SurgeHeight { width: 20%; } .field-Hyperlink { width: 20%; } Thanks- David
... View more
10-30-2013
08:43 AM
|
0
|
0
|
886
|
|
POST
|
Hi all- Turns out I had a bit of a 500 and a 400 error. In the code below, we are calling in a local network analysis layer that has a different wkid than WebMercator, 2882 vs 3857. So, because I was not explicity setting the outSpatialReference to a new outSpatialReference, the route graphic could not draw. I also had a oversite with my onSolveComplete event callback. Here is the functioning code: routeTask = new RouteTask("https://ags2.scgov.net/arcgis/rest/services/ScOperational/RoutingService/NAServer/Route"); //routeTask = new RouteTask("http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Route"); routeParams = new RouteParameters(); routeParams.attributeParameterValues = [{attributeName: "Oneway", parameterName: "Restriction Usage", value: "Prohibited"}, {attributeName: "RestrictedTurns", parameterName: "Restriction Usage", value: "Prohibited"}]; //routeParams.outSpatialReference = mapMain.SpatialReference; routeParams.outSpatialReference = new SpatialReference({"wkid": 3857}); //2882 routeParams.returnRoutes = true; routeParams.returnStops = true; routeParams.returnDirections = true; routeParams.directionsLengthUnits = Units.MILES; routeParams.impedanceAttribute="Length"; routeParams.stops = new FeatureSet(); connect.connect(routeTask, "onSolveComplete", showRoute); //routeTask.on connect.connect(routeTask, "onError", errorHandler); function addStop(evt) { stopSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CROSS, 15, new SimpleLineSymbol( SimpleLineSymbol.STYLE_SOLID, new Color([89, 95, 35]), 2 ), new Color([130, 159, 83, 0.40]) ); var stop = new Graphic(evt.mapPoint, stopSymbol); mapMain.graphics.add(stop); routeParams.stops.features.push(stop); if (routeParams.stops.features.length >= 2) { routeTask.solve(routeParams); lastStop = routeParams.stops.features.splice(0, 1)[0]; //what does? } console.log(routeParams.stops.features.length); } function showRoute(solveResult) { routeSymbol = new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASH, new Color([0, 0, 254]), 3); mapMain.graphics.add(solveResult.routeResults[0].route.setSymbol(routeSymbol)); console.log(solveResult.routeResults[0].route); } function errorHandler(err) { alert("An error occured\n" + err.message + "\n" + err.details.join("\n")); routeParams.stops.features.splice(0, 0, lastStop); //what does? mapMain.graphics.remove(routeParams.stops.features.splice(1, 1)[0]); } Thanks All
... View more
10-15-2013
08:24 AM
|
0
|
0
|
1009
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | yesterday | |
| 1 | yesterday | |
| 1 | Monday | |
| 1 | Thursday | |
| 1 | 11-03-2025 06:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|