|
POST
|
Robert, Your suggestion does work if I use the default marker symbol that the measurement widget uses. the issue I am having is trying to resize a custom marker symbol. I tried your code in the sandbox for the sample and it did not work there either. The sample is located at: ArcGIS API for JavaScript Sandbox Let me know if I am way off on this.... it is entirely possible that I am doing something funky! Sorry my original post did not really state that I was using a custom symbol. Thanks, Janice.
... View more
05-11-2015
01:19 PM
|
0
|
3
|
2529
|
|
POST
|
Hi Robert, I did try this but it made no change for me. If I go into the development tools in ie I can change this manually and it helps a little but still it does not persist. getting the unique selector from Firefox I get: tr.esriMeasurementTableRow:nth-child(3) > td:nth-child(1) > div:nth-child(1) > svg:nth-child(1) > image:nth-child(2) I have tried this in Firefox, Chrome, and IE11 with no luck. Thanks, Janice.
... View more
05-11-2015
12:17 PM
|
0
|
6
|
2529
|
|
POST
|
Does anyone know how to change the fill symbol that is used in the measurement widget in 3.13? Please see the attached png. Thanks, Janice.
... View more
05-11-2015
11:22 AM
|
0
|
3
|
3751
|
|
POST
|
I can successfully change the point symbol used in the measurement widget in 3.13. However, the point symbol in the results is too small to see. Is there a way to resize the symbol in the results? Please see the attached png. thanks, Janice.
... View more
05-11-2015
11:18 AM
|
0
|
16
|
7156
|
|
POST
|
I am using a map click to get the reverse geocoded address. I am using a locator like you show in your example only I am using locationToAddress. I should be able to feed this into the options for addressToLocations like in your example. I will try this unless you come up with a better method. Thanks for your help!
... View more
04-28-2015
01:26 PM
|
0
|
1
|
692
|
|
POST
|
Kelly, I am doing reverse geocoding and using locationToAddress... Is there a way to get the field info from this? I suppose I could take the returned address and run it through addressToLocations. Would that be the best way to access the info or do you know of another way? thanks, Janice. Who do I pick as "correct answer"? Chris was on the right trail with suggesting that I needed to add the outfields!
... View more
04-28-2015
01:12 PM
|
0
|
3
|
692
|
|
POST
|
Chris and Tim, Using the service and an address I get: Geocoded Addresses: address: 1019 MCLEAN RD, MVW, 98273 location: {"x":1272551.3920042217,"y":521938.5593484193} score: 89.04 attributes: {"ResultID":-1,"Status":"M","Score":89.04,"Match_addr":"1019 MCLEAN RD, MVW, 98273","Side":"R","Ref_ID":6525,"Street_ID":"0","User_fld":"44000","Addr_type":"StreetAddress"} and the "User_fld" is what I am after. The value for this address in the User_fld is "44000". This is great! How do I get to it using the locator in javascript? Janice.
... View more
04-28-2015
12:22 PM
|
0
|
1
|
2142
|
|
POST
|
Tim and Chris thanks for the input... Chris - I have already added the information into my custom address locator and see it in the xml file that is created for the locator. I am on 10.2.2 and apparently the xml now includes the User Fields. Tim - I have a service published for testing, here: GeoCode/AddressLocator_Test2 (GeocodeServer) Thanks, Janice.
... View more
04-28-2015
12:07 PM
|
0
|
3
|
2142
|
|
POST
|
Does anyone at ESRI know how to access these additional fields? I assume they are there for a reason. Thanks, Janice.
... View more
04-28-2015
11:19 AM
|
0
|
1
|
2142
|
|
POST
|
I was able to accomplish what I wanted by creating another address locator.... it works well but seems unfortunate that I have to have another locator to give me what the original one already knows! Thanks for your input.
... View more
04-28-2015
11:18 AM
|
0
|
0
|
1086
|
|
POST
|
I have an address locator that has a side offset set to 20 feet. This works well for displaying the geocoded address at a location that is 20 feet from the centerline. Is there a way to modify the Locator Properties in javascript so that I can get the exact point on the centerline rather than (or as well as) one that is 20 feet away? Do I need to create a second address locator with a side offset of 0 to accomplish this? When I look at the properties of the address locator, the geocoding options are grayed out. (see the attached png). What I am trying to do is place a graphic on the centerline that the user can move up and down the centerline. I have also having an issue with snapping... I will put that in a separate discussion! Thanks, Janice.
... View more
04-28-2015
09:51 AM
|
0
|
3
|
4693
|
|
POST
|
From what I have been reading, it sounds like projecting the polygon to a local coordinate system will give me the best measurement results for area calculations. I suppose I am incorrect in believing that the measurement widget should return valid results... Well, I guess they are valid results, just in a messy spatial reference? Anyways, if anyone out there is using both the measurement widget and the geometry service and has input please jump in! For now, I will be hiding the results of the measurement widget and using the geometry service results.
... View more
04-22-2015
10:26 AM
|
0
|
0
|
1381
|
|
POST
|
Thanks Tom... I removed the simplify and changed geodesic to planar and also tried preserveShape. In both of these tests I still receive results different than the measurement widget. Is the measurement widget correct or the geometry service?
... View more
04-22-2015
10:02 AM
|
0
|
1
|
1381
|
|
POST
|
I am using a combination of the measurement widget and Geometry Service for measuring distances and areas. I am getting different results from each method when trying to get the area of a polygon. I have read in earlier posts that I should project my polygon before doing the calculation. I added the project command and I am still getting different results from each method, measurement widget vs. geometry service. My map is in Web Mercator Auxiliary Sphere and my area of interest is in Washington State Plane North. I am using two functions to do the actual work and can see that the polygon is being projected. My issue is possibly the values that I am using in the project parameters... I have tried many different combinations for outSR and transformation. It appears that the measurement widget and geometry service area measures are off by the same amount no matter which combinations I have tried. The code for my two functions is below. GetAreaAndDistances is called when the final vertex in the polygon is drawn and getProjectedArea is called on geometry service project-complete. What am I doing wrong? Should I be able to get the same area measurement from the measurement widget and the geometry service for the same polygon? by the way, I am using 3.13. Thanks, Janice. function GetAreaAndDistances(evtObj) {
///********************************************************************************************
///********************************************************************************************
///FROM:: https://developers.arcgis.com/en/javascript/jssamples/util_measurepoly.html
///********************************************************************************************
///********************************************************************************************
console.debug(measureTool + ", In GetAreaAndDistances...");
require(["esri/geometry/geometryEngine", "esri/tasks/ProjectParameters", "esri/SpatialReference"],
function (GeometryEngine, ProjectParameters, SpatialReference) {
if (evtObj.geometry === undefined) { return; }
try {
var geometry = GeometryEngine.simplify(evtObj.geometry);
var params = new ProjectParameters();
params.geometries = [geometry];
params.outSR = new SpatialReference(2855);//(102100);//(102748);
params.transformForward = false;//true;//false;
params.transformation = { wkid: 1515 };
esriConfig.defaults.geometryService.project(params);
} catch (exp) {
// alert("Invalid Geometry... ");
console.debug("Invalid Geometry in GetAreaAndDistances..." + exp.Description);
}
});
}
function getProjectedArea(evtObj) {
console.debug(measureTool + ", In getProjectedArea...");
require(["esri/geometry/geometryEngine", "esri/tasks/AreasAndLengthsParameters"],
function (GeometryEngine, AreasAndLengthsParameters) {
if (evtObj.geometries[0] === undefined) { return; }
try {
var areasAndLengthParams = new AreasAndLengthsParameters();
var areaUnit = getUnits(area_units);
var distUnit = getUnits(dist_units);
//setup the parameters for the areas and lengths operation
areasAndLengthParams.lengthUnit = distUnit;
areasAndLengthParams.areaUnit = areaUnit;
areasAndLengthParams.calculationType = "geodesic";
areasAndLengthParams.polygons = [evtObj.geometries[0]];
esriConfig.defaults.geometryService.areasAndLengths(areasAndLengthParams);
} catch (exp) {
// alert("Invalid Geometry... ");
console.debug("Invalid Geometry in GetAreaAndDistances..." + exp.Description);
}
});
}
... View more
04-22-2015
07:41 AM
|
0
|
4
|
5146
|
|
POST
|
When creating an Address Locator it is possible to map "Additional Field" to a field in your reference feature class. I have no issue doing this but am unable to figure out how to access this information when using the Address Locator. The help shows: ArcGIS Help (10.2, 10.2.1, and 10.2.2) ... Once I have published my Address Locator to arcgis server, how can I get to the PropertyOwner information when I use this address locator in arcgis javascript? I am able to geocode address and reverse geocode locations in my map but want to access the additional information. I hope this makes sense... Thanks, Janice. I am marking Chris with the correct answer since he pointed us in the direction of looking at the outfields. However, the information provided by Kelly and Tim is worth looking at! Thanks to all for helping me with this issue.
... View more
04-21-2015
04:55 PM
|
0
|
14
|
6769
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-15-2021 01:59 PM | |
| 2 | 01-04-2022 03:43 PM | |
| 1 | 02-02-2021 01:33 PM | |
| 1 | 01-05-2021 01:59 PM | |
| 1 | 06-13-2014 07:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
01-04-2022
05:15 PM
|