|
POST
|
Nigel, Are you holding down the control key as you are hovering over features? The features must also be a feature layer and not a map layer. Otherwise the features are just in a raster image representation instead of an actual vector that can be snapped to. Regards, Tom
... View more
04-22-2015
04:33 PM
|
1
|
2
|
827
|
|
POST
|
Michael, I would also add that the basemap on our organizational account is accessible to everyone. Regards, Tom
... View more
04-22-2015
12:11 PM
|
0
|
3
|
3805
|
|
POST
|
Michael, Interesting problem. For my measure widget demo site, the only resource that is used from our organization was the basemap. I switched it from using our organization topo base map to just using the ArcGIS Online topo basemap. I would be curious to see if you are still seeing that problem on your older IE browser. I am not able to duplicate your problem here. ArcGIS Web Application Regards, Tom
... View more
04-22-2015
12:07 PM
|
0
|
0
|
3805
|
|
POST
|
Janice, There are also some new methods in the geometry engine for doing planar calculations. I have not tested the results, but it may save you a geometry service request and produce a better calculation result. Here is the link: esri/geometry/geometryEngine | API Reference | ArcGIS API for JavaScript Regards, Tom
... View more
04-22-2015
10:43 AM
|
0
|
0
|
1907
|
|
POST
|
Janice, Here is a link that might help explain things. Measure dijit - Geodesic Vs Planar It also looks to me that you are using a simplify on the geometry too. That would generalize the geometry and would change the perimeter and area. Regards, Tom
... View more
04-22-2015
09:30 AM
|
1
|
2
|
1907
|
|
POST
|
Keith, Excellent! Glad that solved your problem. I do miss Flex. It was a really great way to do development for me. It definitely made coding and debugging projects very easy. I am getting much better with JavaScript though. Best Regards, Tom
... View more
04-22-2015
09:22 AM
|
2
|
0
|
4624
|
|
POST
|
Keith, Are you certain that you have added the feature service to your web map and not the map service? Only the feature service will have the ability to do editing. The map service will not. Regards, Tom
... View more
04-21-2015
08:36 PM
|
2
|
2
|
4624
|
|
POST
|
Greetings, We have a couple of apps that allow users to post images that are saved as an attachment to a feature class. This all works very well until you want to display the image embedded on on another web page. Depending on how the user took the image, it can be rotated or flipped so that it won't have the proper orientation on your web page by default. On some browsers, if you view the image directly, it does display in the proper orientation. This problem is created when devices want to take images very quickly and don't want to take the time to save the image in the proper orientation. Instead they are stored with EXIF information which contains a wide gamut of information pertaining specifically to that image. GPS information, date and time, device, and many others including orientation. Using Sebastian Tchaun's JavaScript to interpret this information and makes it possible to orient the image properly. His repo is on github at: blueimp/JavaScript-Load-Image · GitHub With some assistance from Randy Bonds Jr. some basic code to make this happen: load the code: <script src="js/load-image.js"></script>
<script src="js/load-image-orientation.js"></script>
<script src="js/load-image-meta.js"></script>
<script src="js/load-image-exif.js"></script> Get the attached image: featureLayer.queryAttachmentInfos(featureAttributes.OBJECTID, loadAnImage, errorImage); Load and orient the image: function loadAnImage(response) {
var imgSource = response[0].url + "/" + response[0].name;
var xhr = new XMLHttpRequest();
xhr.open('GET', imgSource, true);
xhr.responseType = 'blob';
xhr.onload = function(e) {
var ori = 0;
if (this.status == 200) {
var blob = this.response;
loadImage.parseMetaData(blob, function(data) {
if (data.exif) {
ori = data.exif.get('Orientation');
}
var loadingImage = loadImage(
blob,
function(img) {
document.body.appendChild(img);
}, {
maxWidth: 600,
canvas: true,
orientation: ori
}
);
});
}
};
xhr.send();
} I hope this helps someone else going through a similar struggle or if someone has an even better method for accomplishing proper image orientation, I would love to hear from you. Regards, Tom
... View more
04-17-2015
05:09 PM
|
9
|
8
|
27337
|
|
POST
|
Julie, Excellent! Glad you got it working! Regards, Tom
... View more
04-16-2015
01:51 PM
|
0
|
0
|
1362
|
|
POST
|
Julie, Yes! ArcMap is a 32bit application and uses the python 32 bit library. The module that works successfully in ArcMap must also be installed onto the server. ArcGIS Server uses a 64bit python library, so you will have to install it again using the 64bit version of the module. I have had to do the same thing with cx_Oracle for interacting with our utility accounts. Regards, Tom
... View more
04-16-2015
01:17 PM
|
1
|
2
|
1362
|
|
POST
|
Karen, I have looked into using leaflet too. I really like the point clustering. If you have really complex queries, it might be best to stick with the JavaScript API. With the new Web Optimizer you can build your own custom version that uses just the resources that you will need for your app. Here are a couple of links that might be useful. ArcGIS API for JavaScript Web Optimizer | Guide | ArcGIS API for JavaScript FAQ · Esri/esri-leaflet Wiki · GitHub Best Regards, Tom
... View more
04-15-2015
08:30 AM
|
1
|
0
|
1356
|
|
POST
|
Robert, They have reinstated the ArcScripts web site. You can find it here: ArcScripts Home - ESRI Support Building footprints documentation can be found at: ArcGIS Help 10.1 Regards, Tom
... View more
04-14-2015
08:14 AM
|
1
|
10
|
2880
|
|
POST
|
Julie, Yes! Be aware that the service for the geoprocessing task by default is asynchronous, so you would use a submitJob to request that geoprocessing task. If it is a synchronous task, then you would use execute. Regards, Tom
... View more
04-13-2015
02:11 PM
|
0
|
0
|
1363
|
|
POST
|
Stan, It looks like they still don't have the perimeter measurement correct for triangles, extents and for polygons at WAB 1.1. The rest of the measurements appear to work properly. Regards, Tom
... View more
04-13-2015
01:39 PM
|
1
|
0
|
1419
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-24-2023 10:45 AM | |
| 1 | 05-19-2023 08:13 AM | |
| 1 | 02-22-2023 09:12 AM | |
| 1 | 05-15-2015 03:11 PM | |
| 1 | 02-10-2015 11:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-26-2024
04:50 PM
|