POST
|
Hello GIS community. I am developing a Web App Builder widget that can take a screenshot of the entire WAB application (this is why the Print widget is not used). I am using HTML2Canvas.js so far and it works great with Raster basemaps, and Feature layers. Vector Tiles do not seem to be rendered. As a matter of fact, even if I can canvas.toDataURL() on the cavas generated by WAB to represent the vector tile, I only get a transparent image. I know the 4.x API has a takeScreenshot method on a MapView, so I was expecting doing a screenshot of the Vectory Tiles to be an easy win. Does anybody know why the canvas generated by Vectory tiles can not be exported? Is there some CORS resources there that are tainting the cavas? In that case, how would the MapView.takeScreenshot work in the 4.x API. Kind regards, Fabien
... View more
03-30-2020
04:50 AM
|
0
|
0
|
250
|
POST
|
Hi Noah, I know screenshots can be tricky when the elements from the web page come from multiple site, so I am not frustrated by the API so far. I just want to make sure I am not missing anything. I am a skilled developer, but by no mean a web development expert. So I am wondering if I am missing something obvious. The main reason I cannot use the take screenshot is that I am working in 2D with Web App Builder. Since the takeScreenshot is a method on the MapView or SceneView in the 4.x APIs only, I won't be able to use this method, since Web App Builder 2D widgets are using our 3.x API. The blog article you mentioned is fantastic, but those examples do work with the 4.x API. Which means they are out of reach for me since the client requirement is that the widget has to work within WAB and 2D application. Am I correct or am I missing something here? Thanks for your feedback.
... View more
03-23-2020
12:42 PM
|
0
|
1
|
1046
|
POST
|
Hello GIS community. I am developing a Web App Builder widget that can take a screenshot of the entire WAB application (this is why the Print widget is not used). I am using HTML2Canvas.js so far and it works great with Raster basemaps, and Feature layers. Vector Tiles do not seem to be rendered. As a matter of fact, even if I can canvas.toDataURL() on the cavas generated by WAB to represent the vector tile, I only get a transparent image. I know the 4.x API has a takeScreenshot method on a MapView, so I was expecting doing a screenshot of the Vectory Tiles to be an easy win. Does anybody know why the canvas generated by Vectory tiles can not be exported? Is there some CORS resources there that are tainting the cavas? In that case, how would the MapView.takeScreenshot work in the 4.x API. Kind regards, Fabien
... View more
03-18-2020
07:59 AM
|
0
|
3
|
1190
|
POST
|
I have observed that issue as well with my ArcTutor data using the 10.5.1 setup. As an alternative, the data is on ArcGIS online with the locator. https://www.arcgis.com/home/item.html?id=ca11a1f63e9a40c781b4071fdb7b017a. It can also be searched using the title ArcGIS Geocoding Tutorial Data Best regards, Fabien
... View more
05-30-2018
10:58 AM
|
1
|
0
|
280
|
POST
|
Confirmed. Same issue on my side. It is simply not included in the tutorial data. At least for my version, which is 10.5.1.
... View more
05-30-2018
10:31 AM
|
0
|
0
|
280
|
POST
|
In Visual Studio, Go in your project properties and go to the tab Debug. Make sure that in the section "Start Action", the radio button "Start External Program" is checked and that you put the map to your ArcMap execution file. In my case: "C:\Program Files (x86)\ArcGIS\Desktop10.3\bin\ArcMap.exe" Hope this helps. Fabien PS: the link to the official doc: ArcObjects Help for .NET developers
... View more
07-07-2015
11:44 AM
|
0
|
5
|
4329
|
POST
|
Thanks to @Morten Nielson, I got the answers I needed came up with a custom solution inspired by the "Move Points" sample. To confirm, the editor does not support the behavior I was trying to get, hence some custom code. The workflow is the following: 1. On touch down, I set the IsDragEnabled option of my MapView.InteractionOptions to false. (Only after a successful hit test on my layer) 2. On touch move, I move the point selected by the hit test. 3. On touch up, I set the IsDragEnabled option of my MapView.InteractionOptions to true. Hope this helps others. Fabien
... View more
04-27-2015
02:26 PM
|
0
|
0
|
374
|
POST
|
Hi all, I am upgrading a WPF application to a Runtime .NET application. In the WPF application, I had the requirement to be able to move the point by following a moving the mouse, or finger on tablet. That was working very well, I even had a magnifier displayed when doing that. This function is broken in the new runtime and I am trying to get a similar behavior back. Since the method Editor.EditGeometryAsync doesn't support Point geometry, I can't reproduce this behavior. Is that any way to have the point move with the user finger on tablet? The users love the old way the editor was working, and don't understand very well why the latest version give them a behavior they see as less user friendly, so any help on that is much appreciated. Best regards, Fabien
... View more
04-21-2015
01:28 PM
|
0
|
1
|
3630
|
POST
|
Hello folks, I have been working on a project recently that involved the integration of a map component in a WPF application. This application is designed to run on tablet with a GPS device. I used ArcGIS runtime for WPF 10.2.3. The application allows users to have a map with a cache and graphic layer. The graphic layer contains a point that represents the location of a mail box contractors will have to install. The user fills in a form that contains information about the future mail box, and then they open a map control to get the coordinates. The mailbox location is first set using the GPS location. Then the user can move the point on the tablet, the app fetches the snapped location of the mail box on the road network, and then clicks the button Save. Then, the map component is closed and returns the location of the mail box to the main WPF application. In order to move the point, I am using the class ESRI.ArcGIS.Client.Editor. I have noticed that the editor is buggy on tablet when working with touch event. If the user moves a point on the map, then the rest of my button outside of the map control become inaccessible. It looks like my application freezes. If I want to click on my Save button, I need to first touch the map and pan or move on it. That will allow me to use again any component that is not on the map. This is a very weird behavior. Even weirder, if I touch the tablet outside of the map and move my finger after moving a point, the map still moves around. It looks like moving a point using a touch event with the Editor add some kind of additional layer in the WPF application. This is not a blocking issue for my application but I am still curious to know if someone encountered similar issues with the Editor, and how they overcame it. The user’s life will be much simpler if there is a way to solve that issue. Note that this issue is specific to using the tablet with touch events (i.e. simply using your fingers, no mouse). As soon as I use a mouse, the Editor and the application work like a charm. I have attached a screenshot for people to see where the buttons are located and what I mean by moving your finger outside of the map component. Any help is appreciated Fabien
... View more
08-26-2014
01:40 PM
|
0
|
1
|
2165
|
Title | Kudos | Posted |
---|---|---|
1 | 05-30-2018 10:58 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|