POST
|
Sorry. Works fine. The url is http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer/reverseGeocode?jsoncallback= instead it should have been http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer/reverseGeocode?callback=
... View more
11-03-2011
10:06 AM
|
0
|
0
|
236
|
POST
|
Hi I am trying to invoke a reverseGeocode service hosted at tasks.arcgisonline.com use a simple ajax call. Initially i got the following error Origin http://localhost:8181 is not allowed by Access-Control-Allow-Origin. To avoid the cross domain scripting error i am passing a callback function to this service. Now I keep getting an Unexpected token : error. Has anybody encountered a similar error making an ajax call to http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer/reverseGeocode Or is there an api available in the ArcGIS API for JavaScript to do the same.
<!DOCTYPE html>
<html>
<head>
<style>img{ height: 100px; float: left; }</style>
<script src="http://code.jquery.com/jquery-1.6.3.min.js"></script>
</head>
<body>
<div id="images">
</div>
<script>
$.getJSON("http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer/reverseGeocode?jsoncallback=?",
{
location: "-75.749655520628295,39.68330984653565",
distance: "5000",
outSR: "4326",
f: "pjson"
},
function(data) {
alert(data);
});
</script>
</body>
</html>
... View more
11-03-2011
09:54 AM
|
0
|
2
|
760
|
POST
|
We are using BA Server 10 SP1. Like i mentioned the CreateItemTask along with UploadFeatureTask worked just fine for BA Flex API 2.0.1. I did not face any issues with empty folder issue you mentioned. For the new BA Flex API 2.1 i commented out the CreateItemTask from the workflow and the UploadFeatureTask handles the task of creating the Project Item.
... View more
08-31-2011
10:15 AM
|
0
|
0
|
257
|
POST
|
Hi, In our workflow, we have a three step similar to the BAO to generate a report. 1) Locate Address 2) Draw a tradearea (drivetime, ring or donut) 3) Generate the Report. It is possible that the user does not enter the SiteName initially but then would want to change it later. To accomplish this we are currently deleting the existing item and then creating a new Item when the user changes the sitename. Is it possible to change the sitename/itemname using a different approach or else can you provide RenameItem similar to the RenameProject and RenameWorkspace that is already available.
... View more
08-30-2011
07:28 AM
|
0
|
1
|
1286
|
POST
|
Hi, I did see earlier in the REST API that the CreateItem Endpoint is deprecated. Our app uses the 2.0.1 flex api. On upgrading to the new 2.1 flex api and see that CreateItemTask does not exist any more. Please update the "Whats New" section with the classes that have been deprecated. Earlier while using the 2.0.1 api, at the end of my workflow i would do the call 1) CreateItemTask 2) UploadFeatureTask Does the UploadFeatureTask handle the creation of the Item and hence CreateItem is not required? What other classes are deprecated?
... View more
08-30-2011
07:21 AM
|
0
|
2
|
1338
|
POST
|
Did this work? The above sample widget did not help much. I am doing the same, trying to implement the BAO drive time report to a widget in Flex Viewer 2.4. The drive time report works, but the polygons do not draw. I have trouble working with uniquevaluerenderer, I will post a new thread to ask. Hello Cristie, Sean wanted to convert an interactive sample of a drive time which is what i have attached. You can generate the report either for a ring, drive time, donut, polygons or any of the standard geographies. There are samples available that show you exactly how it can be done. You can modify the attached widget to enable what you want. It is pretty simple using the BA Flex API. The BAClientFactory.as has Sean urls private static var _BAServerURL:String = "http://nsesribap01vmsean:80/ArcGIS/baserver/REST/services/DefaultMap/BAServer"; Change the url to your own or to private static var _BAServerURL:String = "http://baserver.esri.com/ArcGIS/baserver/REST/services/RedlandsDemoMap/BAServer"; If it does not work let me know what error you are seeing.
... View more
08-29-2011
04:18 PM
|
0
|
0
|
694
|
POST
|
I used the bookmark widget as a starting template. I have attached a very basic widget similar to the sample you mentioned. This widget will work with ArcGIS Flex Viewer 2.4.
... View more
08-19-2011
03:01 PM
|
0
|
0
|
694
|
POST
|
Hi Sean, What error are you seeing exactly? The sample you found is using the BAServer Flex API. You need to have a valid Business Analyst Server License. It does explain what code to add if you have already secured(which is a good thing to do) your map services and the DefaultMap service. The widget framework is part of the ArcGIS Viewer for Flex. This url http://help.arcgis.com/en/webapps/flexviewer/ will tell you all you need to do with widgets and the sample viewer framework. Check out the quick links on this page. The sample flex viewer is based on ArcGIS API for Flex version 2.4 which is written in Flex 4 and has support for Flex 4.5. I see that you have added the esri:Map in the widget which means the map will be visible within the widget itself. I don't know if that is what you want. As far as the arcgis flex viewer goes, the widget has functionality that writes to the MAP that is available as part of the Viewer itself. Just try running on the the sample flex viewer apps and also download the source code for the Sample Flex Viewer. The basic idea of the Widget framework is that it is extendable. You don't have the touch any of the Sample Flex Viewer code, all you need to do is write a widget following the guidelines and configure it in the config.xml and it is visible. http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Create_your_own_widget/01m300000010000000/ The Business Analyst Server Flex API 2.0.1 is awesome. Check it out and also compare it with the BA Server REST API. If you don't have a Business Analyst Server license ie., ba server hosted in your corporate environment you can try the Business Analyst Online Flex API and samples are available for that as well. http://resources.arcgis.com/content/business-analyst-online/apis/flex Hope this helps
... View more
08-19-2011
12:54 PM
|
0
|
0
|
694
|
POST
|
Thank you. I can harcode the mapping for now. I hope this will be available via the api in the future release. Best Regards Prashanth Sukumaran
... View more
08-19-2011
11:05 AM
|
0
|
0
|
655
|
POST
|
Hi Mehak, Found It. Debugging thematicMappingLayer.geographyLayer (com.esri.baserver.tasks.stdgeographies::GeographyLayerInfo)#0 generalizationLevel = 6 geoLevelID = "US.Counties" idField = "ID" name = "Counties" nameField = "Name" scale = 9244648) Business Analyst Server API for Flex 2.0.1 Reference does not have any reference to this class. The "See also" points to GeographyLevelInfo, which is different. Can someone please update the API reference so it is helpful for others? Edit: GeographyLayerInfo is not available to me while compiling. Is this an internal class???
... View more
08-15-2011
11:33 AM
|
0
|
0
|
655
|
POST
|
Hi Mehak, Thanks for your reply. I completely agree with the reply. Since thematicmappinglayer is in complete control over the graphics being rendered, i was hoping it to make the correct decisions rather than me having the write the code. I will write custom code to jump to a lower level if the number of graphics is less then some optimum value keeping in mind not to degrade the performance. Can you please tell me how i can get hold of the geoLevelID of the layer that is being shown? I need that to send as input to the CreateStandardGeographies endpoint?
... View more
08-12-2011
12:55 PM
|
0
|
0
|
655
|
POST
|
Hi, I am using the thematic mapping sample to enable selection of Standard Geographies instead of the drill down using the Standard Geographies from Tree Endpoint. This approach is much easier for the user to select adjacent geographies visually when you see them next to each other. The geographyLevelName is set to auto mode. I have two questions 1) How do i determine the geoLevelID/FeatureID whenever the map is refreshed? i.e, I need US.States , US.CBSA as the map is refreshed. I see that this value is passed as geoLevelID for every refresh. 2) Can we change or provide custom mapping of the geoLevel <-----> map scale ? My desktop screen resolution is 1680 x 1050. I see pretty decent map on the screen. As i move further away from the city, the Census Tracks are so big that i can see only 6(few) of them. In such a case i'd rather see block groups. Shouldn't the TMLayer.getBestLayer return the blockgroups instead of the Census Tracks.
... View more
08-12-2011
11:20 AM
|
0
|
6
|
2913
|
POST
|
Hi Prashanth, At BA Server 10 sp 2 we are only supporting SQL Server ArcSDE Geodatabases. Oracle is not fully supported at this time. The plan is to fully support Oracle as a BA Server Repository at 10 sp 3. Chris Thank you Chris. I guess we will wait for 10SP3. Thank you for the time you spent with us at the User Conference. We were able to successfully upload the custom report. Best Regards Prashanth Sukumaran
... View more
08-12-2011
10:48 AM
|
0
|
0
|
233
|
POST
|
Hi, Our BaseMap wkid is 102100. The default spatialreference of the BA Server is 4236. As of 2.0.1 BA Server Flex api there is no way of specifying the OutSpatialReference. In the BAServerConfig.xml i see a property <property name="DefaultWKID" value="4326" /> Can i change this to 102100 so i don't have to use the WebMercatorUtil to convert from 4326 to 102100? This will avoid unnecessary conversion on the client side when the geometry returned is a state and there are a lot of points to convert.
... View more
05-05-2011
08:51 PM
|
0
|
3
|
1724
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|