POST
|
To avoid having to reset all the widget references manually what you could do instead is post an update to portal with your webmap json with additional layers using var portal = portalUtils.getPortal(this.appConfig.portalUrl); portal.getUser().then(lang.hitch(this, function (user) { user.updateItem(this.map.itemId, argsUpdate).then(lang.hitch(this, function (updateItem) { //if want to reload with what just pushed to portal topic.publish('appConfigChanged', this.appConfig, 'mapChange'); //this will trigger map update which will refresh page and hence all the widgets })); })); I have done something similar and sniffed out the structure of the json for webmap in fiddler. I then just update the json object with my changes. If you want to make a brand new web map, I would suggest add an item and then update appConfig and call the change event user.addItem(args, '').then(lang.hitch(this, function (newItem) { if (newItem.success) { var itemId = newItem.id; this.appConfig.map.itemId = itemId; topic.publish('appConfigChanged', this.appConfig, 'mapChange'); //this will trigger map update which will refresh page and hence all the widgets } })); it is a page refresh but you no long have to deal with destroying, recreating dom as well as updating all the widget references to webmap
... View more
02-25-2015
10:17 AM
|
0
|
1
|
448
|
POST
|
Awesome job. I was suspicious it was using topic underneath. My initial workaround was to sadly extent widgetManager to "listen" for my topic.publish and then check on widget load if that widget wanted that info. not what i want to do but getting a demo going to client- fine for now. Another thought i had was looking into the dojo datastore.
... View more
02-06-2015
10:47 AM
|
0
|
1
|
1137
|
POST
|
I ran into same issue with FetchDataByName with this.widgetManager is out of scope for the BaseWidget. I am disappointed to hear both widgets have to be open and I cannot use your workaround for out-of-panel. I was really hoping to use this for following workflow: widget opens and attempts to fetchDataByName from another app that may or may not be open. if not, do nothing. If second widget does get opened later on and new data is published my first widget receives it from the onReceiveData method.
... View more
02-06-2015
08:16 AM
|
1
|
3
|
1137
|
POST
|
hi, i have a flex viewer app that is used to capture things like incidents and road construction and i have a NAService set up for routing. I am trying to find the most efficient way of updating my NAService with the latest incidents/construction as point and/or polyline barriers. I created a web service that would first query the incident/construction layer exposed in a map service- take the results and send into the REST solve as barrier parameters. But my client would like to see if there is a way to do this without a this middleware piece. I started looking into the Add Location geoprocessing tool but can't seem to figure out how to automate it. I know the Route Network Analyst Layer seems to only 'live' in the mxd so I create a model in the mxd to update the barriers. And it runs fine in the mxd. But when I publish the the tool in the mxd as a geoprocessing service and run the the tool- the barriers don't seem to get updated in the NAService. Is this not possible to do through a geoprocessing service because of how the Route Layer lives' in memory? Or do I need to restart the NAservice after I run the gp service? Thanks
... View more
05-08-2013
08:05 AM
|
0
|
0
|
400
|
POST
|
Hi, I have successful set up using the Custom Traffic Provider sample on my local machine.[HTML]http://www.arcgis.com/home/item.html?id=e11126ea20e941bd9644046e62e2bdbe[/HTML] But when I move it to my cloud server I get the following error: 030103 : Failed to update traffic data. The only difference between the two is on my local machine I built the solution in MS Visual Studio 2008 to register the tool and on the cloud I used ESRIregsam.exe. And the cloud doesn't have anything like windows office or MS Visual Studio installed but I didn't get the impression either was needed. The error seems to suggest a permission issue but i have set the folder that has everything- code, dll, csv file, location for DTF output- to allow everyone to have read/write access to try and resolve this. I am logged in as admin user and I even tried running arccatalog as admin but still I get the error. Any ideas what I am missing? Thanks Melinda
... View more
05-06-2013
05:14 AM
|
0
|
10
|
3816
|
POST
|
Instead of trying to override the entire attribute dictionary object, try to update each of the fields like so: CurrentFeatureGraphic.attributes = graphicAttributes; [graphicAttributes setObject:MarkupDescription.text forKey:@"Description"];
... View more
02-29-2012
10:12 AM
|
0
|
0
|
582
|
POST
|
There are two other options. You can turn your table into a feature layer with null geometry. Or you can create you own sync process. This involves creating a custom web service that would process the data being uploaded and well as have some mechanism (time stamp fields) to then push down any changes to the devices local copy of the tables.
... View more
01-31-2012
10:22 AM
|
0
|
0
|
331
|
POST
|
You can create a new envelope using the Envelope Constructor(Coordinate,Double,Double) where coordinate is your point first double is the width second double is the height Basically create a extent for your point. What width and height will be depends on how zoomed in you want. I have used like 25 feet for width and height in one of my apps. Then just pass into Map.ZoomTo()
... View more
11-18-2011
10:37 AM
|
0
|
0
|
235
|
POST
|
one more thing- pmf files are typically created through a check out process in ArcMap. I am wiling to bet you there are existing mxds for those maps. I would contact the person who manages creating those pmf files. And if so- can just use those to publish to argis online.
... View more
10-13-2011
03:50 PM
|
0
|
0
|
779
|
POST
|
Hi, I looked out your public website and I looks like it is using ArcGIS Server .NET ADF. I know this is probably too technically jargen but essential it looks like you already have ArcGIS Server and have a map service- basically what this does is send to website images of map based on scale and extent requested. And it uses a ArcMap mxd or msd file to create the service. Do you know who manages this site? They can probably be of help because .pmf files cannot be read by any iOS app. That format can only be read by ArcReader (which I believe only runs on PCs). You will have to publish your maps (map services) on ArcGIS online so you can access them through the ArcGIS app. I believe you can restrict who can access them. Or you could build your own custom app either through ESRI iOS API or through the new Flex AIR stuff or using htlm, javascript and PhoneGap. What I would do is found out who manages your public website. Tell them what you want and they can give you more detail about how to do it (hopefully). Or RFP out (I do this work all the time as do many others). I hope I am not making your head spin more but unforunately you need someone who has some more GIS and application development knowledge to help you layout the path to getting these maps accessable via iphone/ipad/mac. I am sure there is at least one person in your organization who does. It can absolutely be done- no question about that.
... View more
10-13-2011
03:38 PM
|
0
|
0
|
779
|
POST
|
Hi, I have been experience some weird issues about when I add graphic layers to the map. I have a page where you can turn layers (including graphic layers) on and off. What I do is when view is loaded, I do some queries and populate them with data. I then only add them to mapview after someone checked them to be visible. And if unchecked, I removed from mapview. But does not seem to behave like expected. Nothing every changes on the map. I never see the graphics. Right now I have switched to instead loading them all when view has been loaded. Then if check to see I run query to populate graphic layer. If uncheck- remove graphics. I think this is Ok workflow but was wondering if I missed something with other approach. THe only difference I can see is that in option that doesn't work- the datachanged is called on graphicslayer before being added to mapview. But I don't see why that would be the issue.
... View more
10-13-2011
12:10 PM
|
0
|
1
|
415
|
POST
|
I have looked at the delegates available on AGSMapView but not seeing anything pop out at me that would help. I see on touch the single tap but that is never called when you do the normal double tap to zoom let alone pinches. Am I missing something? Thanks
... View more
10-06-2011
11:06 AM
|
0
|
1
|
600
|
POST
|
Is there a way some in the code to dismiss a graphic callout? I see on AGSMapView how to tell app to show a callout. But I want the ability to dismiss callout without having to click another point on map- which for me fires off another identifytask.
... View more
09-27-2011
03:03 PM
|
0
|
1
|
1988
|
POST
|
According to the license agreement for tiled caches hosted through ArcGIS Online, you can't use them as a layer in an mxd that you plan to publish as your own tiled cache. You can add them in WPF as a TiledServiceLayer and you would need internet connection. If you plan to work disconnected you can use the SDC data stored locally.
... View more
09-14-2011
08:23 AM
|
0
|
0
|
106
|
POST
|
In your code snippet I don't see you setting the geometry- not sure if that is it. You can also check if getting any errors on save: //create datareader
FeatureDataTable featDataTable = featureLayer.GetDataTable(new QueryFilter());
// creates a new row
DataRow newFeatDataRow = featDataTable.NewRow();
newFeatDataRow[featDataTable.GeometryColumnIndex] = newpolyline;
//sets the new geometry to the feature layer data table
featDataTable.Rows.Add(newFeatDataRow);
//now save edits
int result = featDataTable.SaveInFeatureLayer();
DataRow[] errors = featDataTable.GetErrors();
for (int i = 0; i < errors.Length; i++)
{
if ( errors.HasErrors ) {
// get the array of columns in error.
DataColumn [ ] colArr = errors.GetColumnsInError( );
for ( int j = 0; j < colArr.Length; j++ ) {
// insert code to fix errors on each column.
MessageBox.Show("Error with creating new flight column " + (colArr .ColumnName) );
}
}
}
... View more
07-26-2011
06:29 AM
|
0
|
0
|
471
|
Title | Kudos | Posted |
---|---|---|
1 | 02-06-2015 08:16 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|