|
POST
|
You'll also need to specify the image position as you have some conflicts with other css classes that have the same name. background-position: 0;
... View more
11-12-2014
03:39 PM
|
0
|
2
|
825
|
|
POST
|
For one of my apps which is based on the application boilerplate template, I had to make these two adjustments: .claro .dijitSplitContainer-child, .claro .dijitBorderContainer-child { border : none; } .claro .dijitSplitContainer-dijitContentPane, .claro .dijitBorderContainer-dijitContentPane { background-color : transparent; }
... View more
10-07-2014
02:50 PM
|
0
|
0
|
1537
|
|
POST
|
I ran into some general css issues when moving up to 3.11 and they were all related to differences in the 'claro' theme in dojo 1.10.0
... View more
10-07-2014
12:48 PM
|
0
|
2
|
1537
|
|
POST
|
Damien, to get the attributes you'll first have to get to the Graphic itself. Once you have the Graphic, you can use the 'attributes' property to get the necessary values. graphic-amd | API Reference | ArcGIS API for JavaScript However, I would first ask, what is triggering the event? There are several ways to get to the graphic you just clicked on. Map: the map 'click' event will have a property called 'graphic' if you happen to click over a graphic. This can get slightly more complex if there are several GraphicsLayer or FeatureLayers in the map, as you'll have to make sure the graphic you just clicked on belongs to the layer your are interested in. If you only have one GraphicsLayer or FeatureLayers in the map, this event could be all you need. GraphicsLayer/FeatureLayer: there are several events you can listen to, like 'click', that will be triggered only for the graphics in the layer. These events will provide access to get the clicked graphic. QueryTask: If you have, for example, an ArcGISDynamicMapServiceLayer, then you can use the QueryTask to go directly to the service endpoint to retrieve the features at the current location. Also, depending on functionality and needs, there are additional ways to get to the graphic and attributes; these are just the simplest ones.
... View more
09-12-2014
08:27 AM
|
0
|
1
|
2623
|
|
POST
|
You are correct, it seems to me that the simplest solution would be to provide the other team with the function that creates the map, and they can call it when the parent container is ready in the show event. Basically don't create the map until it can be created correctly, especially since the other team won't give you an event to listen to.
... View more
09-03-2014
01:05 PM
|
0
|
5
|
2071
|
|
POST
|
If the map node is being created in a dijit/layout/* node then you can listen once to the 'resize' event so you can call map.reposition() and map.resize(). This might not help depending on the css rules so you might have to reset the node size back to 100% and then call reposition and resize. Alternatively you could use dom-geometry.position(...) to get the current node size. However, listening to the 'resize' event won't help if you're creating the map in just a div node as it won't have a resize event. To find the parent dijit you can use registry.getEnclosingWidget(...) and pass in the map.root node. This will traverse up the parent dom nodes until it finds a dijit. Then hopefully it will be a dijit with a 'resize' event you can listen to once.
... View more
09-03-2014
11:18 AM
|
0
|
0
|
2072
|
|
POST
|
Isaiah, glad to hear you got it working. I believe some of these classes are newer functionality that might not be available on older browsers, so please make sure your target browser(s) will support them. good luck, John
... View more
09-03-2014
10:03 AM
|
2
|
0
|
534
|
|
POST
|
Load the "put-selector/put" module. You can also use dom-construct or any other way of creating a dom node. John
... View more
09-02-2014
06:31 PM
|
1
|
0
|
3392
|
|
POST
|
Actually, a jsfiddle might not be appropriate for this use case. Below is some code that may work:
var imageName = "someImageFilename";
var imageFormat = "png";
var arrayBufferView = new Uint8Array(imageAsArrayBuffer);
var blobImg = new Blob([ arrayBufferView ], { type: "image/" + imageFormat });
var formNode = put("form", {
"method": "post",
"enctype": "multipart/form-data"
});
var formData = new FormData(formNode);
formData.append("attachment", blobImg, imageName+"."+imageFormat));
esriRequest({
url: "http://[server]/[instance]/rest/services/[folder]/[name]/FeatureServer/[layerid]/[oid]/addAttachment",
form: formData,
content: { f: "json" },
handleAs: "json"
}).then(lang.hitch(this, function(response){
alert("Attachment Success: " +response.addAttachmentResponse.success)
}), lang.hitch(this, function(error){
console.warn(error);
}));
... View more
09-02-2014
04:55 PM
|
4
|
2
|
3392
|
|
POST
|
Isaiah, depending on how you get the 'image' we might be able to do this. create Blob form image type = "image/png" - use correct type here based on image... Can you get an array buffer from image? I have not tried base64 but maybe it will work... create 'form' html dom node method = post enctype = multipart/form-data create FormData using 'form' from previous step append Blob to FormData use 'attachment' as the name call 'addAttachment' REST endpoint of feature If you setup a small jsfiddle with a test service we might be able to try some of this out...
... View more
09-02-2014
04:37 PM
|
0
|
3
|
3392
|
|
POST
|
Tracy, your code seems to only use the OBJECTID of the first selected item in the grid. Try building a list of OBJECTIDs from all the selected items in the grid instead and then send those to 'selectFeatures', and also modify your charting code to use all of the selected features as well. Actually, if you are just charting values based on the feature attributes, then you should already have those values directly from the grid selection, so you'd only need to call 'selectFeatures' if you want to visually see the features selected in the map.
... View more
09-02-2014
11:47 AM
|
0
|
0
|
1828
|
|
POST
|
Matt, add the Feature Class and the Tables that participate in the relationship to a Map Document and publish as a Map Service. The Map Service will allow you to view the Feature Class, the Table, and relationships via the REST endpoint. Then you can use the JS API to query for related features based on a feature and relationship.
... View more
08-27-2014
01:41 PM
|
0
|
1
|
751
|
|
POST
|
Matt, there are two issues you want to address: 1) using your own elevation data, and 2) using the charting component of the dijit in other js web apps. For the first item you should check out this blog, it explains how to set up a service with your own data that the template can use: Setting up your own Profile Service | ArcGIS Blog The second issue can be complicated depending on what you need. Do you just want to reuse the entire dijit (Measure, Popup selection, calling GP service, unit conversions, charting, map interactions, etc...) or just the charting? If you want to reuse the entire dijit, then it should be simple and I can help you with this. If you want just the charting alone then it will be much more complicated and eventually it might not help you much since there are many other considerations to take into account before the data can be charted.
... View more
08-27-2014
01:37 PM
|
2
|
6
|
1591
|
|
POST
|
You are missing a require for "esri/domUtils": Edit fiddle - JSFiddle
... View more
08-20-2014
09:07 AM
|
1
|
1
|
936
|
|
POST
|
Mark, I could be wrong, but I believe the issue you'll find with this use case is that the dom nodes used for the tiled service are below all graphics layers, so normal events will not be raised for them. One possible solution is to compare the 'map click location' with the coordinates of all the dom nodes of the tiled layer. Probably not the most elegant of solutions, but it seems to work: Edit fiddle - JSFiddle
... View more
08-19-2014
11:46 AM
|
0
|
1
|
2544
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-07-2024 04:14 PM | |
| 1 | 02-23-2024 12:40 PM | |
| 1 | 03-01-2024 10:48 AM | |
| 2 | 08-03-2023 02:34 PM | |
| 2 | 07-19-2023 12:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-24-2024
06:01 PM
|