POST
|
Hi Joshua, mmmm it sounds like a programming error. Do you have the application publicly available? That would be quite helpful to me in order to do some quick checkins
... View more
06-22-2018
05:23 AM
|
0
|
1
|
1397
|
POST
|
It does, you just need to change the URL (https://drive.google.com/file/d/0BwEfWw6tPiprRjN1Y0RhUC1RU1U/edit?usp=sharing) by this schema: https://drive.google.com/uc?export=view&id=<image_id> So in this case your URL would be: https://drive.google.com/uc?export=view&id=0BwEfWw6tPiprRjN1Y0RhUC1RU1U
... View more
06-20-2018
07:24 AM
|
1
|
1
|
2785
|
POST
|
I have seen something like that in Maplabs for Esri UK But it requires development skills. Cheers!
... View more
06-20-2018
07:19 AM
|
1
|
0
|
1091
|
POST
|
Hi Cam Barnard, I'll do my best to help you but I'm not an expert on this topic so... maybe Ramunas Kraujutis or any other fellow can help us here . Q1: These APIs currently work against ArcGIS Online, not yet against Portal for ArcGIS Enterprise. Correct? Yes, I think so, that's why the URL schemas are pointing directly to arcgis.com, otherwise it should point to something like: http://server:port/arcgis/admin Q2: I'm struggling to understand the differences between Setup Map Area and Create Map Area. Can you explain? I think the ArcGIS Online: Taking Data Offline talk from Paul Barker and Chris Whitmore might help you better understand some differences between creating Map Area items like this (this is what Create Map Area does) and creating the tile packages (.tpk or .vtpk) and SQLite Geodatabase (this is what Setup Map Area does). Q3: Is there an intended flow where all three of these APIs are to be used together? e.g. Setup > Create > Refresh? mmmm, I think it doesn't but not 100% sure. Bests, Raul
... View more
05-30-2018
06:12 AM
|
0
|
0
|
2037
|
BLOG
|
Awesome guys!!, I have just played with it a little bit and it is super easy to use. I will do some more testing but it looks great. Congrats for this great job Patrick Arlt, John Foster & Allan Laframboise !!
... View more
05-18-2018
01:20 AM
|
1
|
0
|
916
|
POST
|
Michael Lodes I would recommend you to try to reach the people involved in the development through the Github issues of the project -> Issues · Esri/resource-proxy · GitHub , they might not have the GeoNet notifications enabled. Cheers
... View more
04-25-2018
11:20 PM
|
2
|
1
|
2468
|
POST
|
mmm I have not idea but I think bsvensson-esristaff can help us here . Good luck!
... View more
04-18-2018
03:43 AM
|
1
|
0
|
2468
|
POST
|
Is it possible to embed the Web Map Viewer in a custom web app and enable users to create Web Maps? I would like to do something similar on what you can do in several story maps (like Journal, Cascade, ...), something like this: As you can notice the viewer is embedded and there is a "Save button" outside (for some reason the default save button isn't there when you embed the viewer). So then, I downloaded the storymap-journal source code and try to do the same in localhost and I got this message: That was disturbing, why is that? is it to avoid problem with the cookies? Trying to understand how the "Save" button is implemented I opened the console and saw a debug message when I clicked it, then I checked the source code and I found the function which is called in the MapViewerWrapper.js file: this.send = function(json)
{
console.log("MV sending", json);
try {
params.frameWindow.postMessage(JSON.stringify(json), MapViewerWrapperUtils.getPortalURL());
} catch ( error ) {
// This doesn't seems to be called as the error would happen in the frame
params.onError(error );
}
}; Debugging I check the "json" object and it contains something like: {type: "hasUnsavedChanges"} And the "MapViewerWrapperUtils.getPortalURL()" is returning: "http://hhkaos.maps.arcgis.com" I don't think it is a cross-domain issue with the postMessage, right? So I just wanted to ask if any of you have tried to do what I want to do, or just know if it is possible. Thanks in advance, Raul P.S: I tried two years ago when the "Save button" was still inside the iframe, but I think it was removed in one ArcGIS Online update.
... View more
04-05-2018
08:18 AM
|
0
|
0
|
631
|
POST
|
This is exactly the behaviour I was expecting, great! Robert Scheitlin, GISP, thank you very very much. This is the code working -> https://jsbin.com/fuworis/edit?html,output
... View more
04-04-2018
08:59 AM
|
0
|
0
|
2278
|
POST
|
hehe... ^_^'', you are right, (sorry, for the dummy question) -> https://jsbin.com/fuworis/13/edit?html,output What about the ViewLayer, it should be updated when a new feature shows up on the screen, right?
... View more
04-04-2018
06:01 AM
|
0
|
2
|
2278
|
POST
|
I have found an strange behaviour, as you can see here: The layerView is not updating when new features are showing up and the query doesn't seem to be displaying the number of features in the screen, right? This is the source code: https://jsbin.com/fuworis/11/edit?html,output Any ideas?:Rene Rubalcava / Robert Scheitlin, GISP
... View more
04-04-2018
03:24 AM
|
0
|
4
|
2278
|
POST
|
Thanks Robert Scheitlin, GISP & Rene Rubalcava!! Now it works , I'll share the app as soon as I have something to show ;-***
... View more
04-03-2018
10:42 AM
|
1
|
0
|
2278
|
POST
|
Ok Kathy Smikrud, I'll try to get back to you, but I case I don't please write me a message in a couple of weeks. Best
... View more
04-02-2018
03:25 AM
|
0
|
0
|
445
|
POST
|
I'm using JS API 4.6 and I'm trying to show in a table all graphics been displayed in the current extent directly querying the client/view. You can find a live sample of the skeleton I'm using here or directly in here: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>Query graphics on webmap</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.6/esri/css/main.css">
<script>
var dojoConfig = {
has: {
"esri-featurelayer-webgl": 1
}
};
</script>
<script src="https://js.arcgis.com/4.6/"></script>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 400px;
width: 100%;
}
</style>
<script>
require([
"esri/WebMap",
"esri/views/MapView",
"esri/widgets/LayerList",
"esri/widgets/Legend",
"esri/geometry/geometryEngine",
"esri/core/watchUtils",
"esri/tasks/support/Query",
"dojo/domReady!"
],
function(
WebMap,
MapView,
LayerList,
Legend,
geometryEngine,
watchUtils,
Query
) {
webmap = new WebMap({
portalItem: {
id: "19d21df5e87f4f5a9aa5b8d678b174d6"
}
});
view = new MapView({
container: "viewDiv",
map: webmap,
popup: {
dockEnabled: true,
dockOptions: {
buttonEnabled: false,
breakpoint: {
width: 1000
},
position: "bottom-left"
}
},
});
view.when(function() {
var featureLayer = webmap.layers.getItemAt(0);
featureLayer.labelingInfo = [{
labelExpression: "[title]",
labelExpressionInfo: {
"expression": "$feature[\"title\"]"
},
labelPlacement: "always-horizontal",
symbol: {
type: "text",
color: [ 255,255,255,0.85 ],
font: {
size: 16,
weight: "bold",
family: "Arial Unicode MS"
},
haloColor: [255, 255, 255, 255],
haloSize: 0.75,
}
}];
var legend = new Legend({
view: view,
layerInfos: [{
layer: featureLayer,
title: "Actor type"
}]
});
view.ui.add(legend, "bottom-right");
});
view.when(function() {
var layerList = new LayerList({
view: view
});
view.ui.add(layerList, "top-right");
});
watchUtils.whenTrue(view, "stationary", function() {
if (view.extent) {
var info = `the view extent changed: \n
xmin = ${view.extent.xmin.toFixed(2)} xmax = ${view.extent.xmax.toFixed(2)} \n
ymin = ${view.extent.ymin.toFixed(2)} ymax = ${view.extent.ymax.toFixed(2)}`;
console.log(info);
}
});
});
</script>
</head>
<body>
<div id="viewDiv"></div>
<div>
<p>Visible graphics:</p>
<!-- TODO: Display visible graphics-->
</div>
</body>
</html>
I have been trying different things: 1) Using queryGraphics as I found at the GraphicsLayerView | API Reference | ArcGIS API for JavaScript 4.6 l = view.allLayerViews.getItemAt(1);
l.queryGraphics().then(function(results){
console.log("results=",results);
}); But the "then" promise was not resolved, maybe because I didn't added in the right place. 2) So I tried using queryFeatures, similar al Robert Scheitlin, GISP suggested in Capture attribute values from a WebMap without click event directly on the console: view.allLayerViews.getItemAt(1).queryFeatures(query).always(function(results){
console.info(results);
}); But this time I used "always" and I got an: {
name: "FeatureLayerView2D",
message: "Not ready to execute query",
details: undefined
} 3) I didn't know what "Not ready to execute query" means so I keep trying this time using the view event layerview-create as Ken Buja mentioned atCannot access items array property of MapView.allLayerViews (ArcJS API 4.4) : view.on("layerview-create", function(event) {
var query = new Query();
query.where = '1=1';
query.outSpatialReference = view.spatialReference;
query.outFields = ["*"];
console.log("event.layer.title=",event.layer.title)
event.layerView.queryFeatures(query).always(function(results){
console.info(results);
});
});
But I got the same error. 4) Next time I tried a different way, using layerView.featuresView.graphics as Thomas Solow mentioned at Design Question - Feature Layer Queries on Client-Side? l = view.allLayerViews.getItemAt(1);
l.layer.title // return "Startups"
l.featuresView.numFeatures // return 374
l.featuresView.graphics // return undefined And I don't understand why graphics are undefined this time... ^_^. I also tried using queryFeatures on l.featuresView but the method didn't exist. 5) Desperately I also tried using the Accessor: l = view.allLayerViews.getItemAt(1)
l.watch("updating", function (newValue, oldValue, propertyName, target) {
target.queryFeatures().then(function (results) {
console.log("results", results);
})
console.log("graphics=", target.featuresView.graphics")
}); But nothing ;( I have spent several hours reading, trying different things and searching in the answered questions, but I'm running out of ideas. Please, could you help me solve this problem? I guess it should be quite easy to do but I'm not able to make it work. Thanks in advance.
... View more
04-01-2018
04:57 PM
|
1
|
8
|
3001
|
Title | Kudos | Posted |
---|---|---|
1 | 08-02-2022 01:27 AM | |
1 | 03-19-2024 04:20 AM | |
1 | 08-25-2023 03:54 AM | |
1 | 04-10-2023 02:20 AM | |
5 | 01-27-2023 02:00 AM |
Online Status |
Offline
|
Date Last Visited |
07-08-2024
03:37 PM
|