POST
|
Thanks for the replies. Jian - I am more of a GIS person than a web person, but here's how I understand it... If I don't use a proxy to read the basemap tiles onto the new canvas, the canvas is considered to be tainted and I will be unable to use the toDataURL() method to create an image data URL which I then intend to use as the source of an img element. I need the img element because a canvas will never appear on my pdf, tainted or not. In other words - 'If the canvas has been tainted, you can no longer pull data back out of the canvas'. Using html2canvas with the proxy very nearly gives me what I need, other than this issue of the map tiles being physically copied to my web server. I guess I assumed the proxy would work in the same way as it does for wms capabilities requests, as a 'middleman' to make the responses appear to be from the same domain. Jeff -Totally agree. Thanks
... View more
01-31-2014
10:32 AM
|
0
|
0
|
2502
|
POST
|
Hi, Hope I am OK to resurrect this topic. I thought it would be better than starting a new thread on the same topic. Just wondering if anyone has made progress with this? I am currently trying to do pretty much the same thing, grab an image of the map (including graphics) to use elsewhere in my application. I too don't have access to a server side print service/export web map task and have been trying to do this client side. Or as client side as possible. If I did have access to an ArcGIS server instance it would be at version 10.0 for the time being. I have made some progress using the html2canvas library to create a html5 canvas element from the map div. This gives me a 'picture' of the basemap but does not handle any user defined graphics (SVG). I can however separately create an image of the graphics and add this image onto the canvas, being careful to make sure they line up properly. I then create a smaller copy of the canvas and finally generate a new image from this canvas to add to a new div elsewhere on the page. The user then has the option to save/print this smaller picture of the map to pdf (using a server side pdf generator). This all seems to work OK, unless the canvas has been 'tainted' by cross domain content. Which in my case, it will always have been because the basemap service is hosted on a different domain to the application itself. html2canvas on GitHub offers a php proxy to handle this situation but this appears to store a copy of all the map tiles in the application web server, effectively building up a second cache of map tiles copied from the basemap service. Not really what I want. Can anyone suggest a better method or is the canvas element the only option if the print task/service route is not available? Thanks Richard
... View more
01-30-2014
10:25 AM
|
0
|
1
|
2502
|
POST
|
Hi. OK, so I've worked out I can use the 'always' method rather than the 'then' method to trigger the callback even if one of the individual deferreds returns an error, but I still cannot access the other (successful) results in the callback? Do I need separate callbacks? Again, DeferredList would return an array of results the same length and in the same order as the array that was supplied. You could then filter out any errors and process the successful results, knowing for example that item 4 in the array of results corresponded to item 4 in the array of individual deferreds supplied to DeferredList. Can anyone help? Thanks, Richard
... View more
12-03-2013
06:17 AM
|
0
|
0
|
297
|
POST
|
Hi The 'Manage results from multiple queries' sample demonstrates how to use dojo/promise/all rather than dojo/DeferredList to query multiple layers simultaneously and process the results when all the queries have finished. The results available in the DeferredList callback would be a 2 dimensional array, the first element in each array would be a true/false flag to indicate whether the individual deferred in question (individual querytask) resolved successfully or not. I am finding that the callback for promise/all never fires if any of the individual deferreds is not resolved (perhaps the querytask was attempting to use an incorrect layer ID, timeout etc) I am also trying to use promise/all to handle a series of esri.request requests to a number of layer endpoints to check layer availability and again the callback never fires if any of the individual requests returns an error or times out. Can anyone give me any pointers as to how to handle this? Many Thanks Richard
... View more
11-15-2013
01:32 AM
|
0
|
1
|
1758
|
POST
|
Hi everyone, How can I get the draw toolbar to display what will become the final line section (between the first/last vertex and the cursor location) as the user is sketching a new polygon feature? I'm basically looking for the same effect we get with the measurement widget. Many Thanks.
... View more
04-24-2013
02:01 AM
|
0
|
1
|
425
|
POST
|
Hi Would it be possible to use the Geocoder widget without actually having a map object/map div on the page? I've had to add a hidden map to the page for the time being but ideally I would like to avoid this. I can see the map parameter is always required in the constructor but just wondering if there is a way to get around this or pass a reference to some kind of dummy map? Thanks Richard
... View more
01-25-2013
06:05 AM
|
0
|
0
|
601
|
POST
|
Hi, If I don't intend to Edit, is there any advantage to using the FeatureServer over the MapServer resource for a FeatureLayer? Thanks Richard
... View more
03-21-2012
08:24 AM
|
0
|
3
|
4198
|
POST
|
Thanks for the reply. I had managed to find a way to avoid using PictureFillSymbol but I have just checked your solution and I can confirm it does indeed solve the problem. Thank You.
... View more
03-08-2012
04:31 AM
|
0
|
0
|
248
|
POST
|
Hi Hoping someone can help here... I have a particular 'target' geometry and I'm looking for the best way to query a number of other layers for features with any kind of spatial relationship with my target, plus I want to know what that relationship is (Intersect, Touch etc). I'm happy enough specifying a specific spatialRelationship parameter and my input geometry for a QueryTask but obviously I don't want to issue several separate queries to cover all possible relationship types and I'm not sure how the SPATIAL_REL_RELATION option works. I've also had a look at using the geometry service relation method but again I'm not clear on how to use Shape Comparison Language. I imagine creating a custom geoprocessing task may also be an option, but I'm wondering if I've missed something obvious and hopefully more straightforward? Thanks Richard
... View more
01-23-2012
06:38 AM
|
0
|
0
|
590
|
POST
|
Thanks for your reply. I may be failing to understand the API docs, but the docs do suggest that PictureFillSymbol has a default and if I remove the source property from my code a blue push pin does infact display (in earlier versions of flash player). I've checked and the polygon is displaying correctly if I remove the PictureFillSymbol altogether. The image I am trying to use is embedded, so I dont think it can be a security sandbox problem accessing the image? I should have been more clear. The PictureFillSymbols appear perfectly in Firefox with Flash Player 10, but the same map does not display the symbols in IE with Flash Player 11. Instead I get a bunch of vertical coloured lines as I pan and zoom the map.
... View more
10-17-2011
12:39 AM
|
0
|
0
|
248
|
POST
|
Hi, I have a graphics layer which uses a PictureFillSymbol as the graphic symbol. I've noticed this layer does not display properly after upgrading to Flash Player 11. I initially thought this may be due to the way I was embedding the image but I realise the PictureFillSymbol still does not work if I don't specify a sourceat all (and therefore use the default blue pin). Has anyone else noticed this? Am I doing anything wrong? Heres my Graphics Layer.... Thanks <esri:GraphicsLayer alpha="0.2"> <esri:Graphic> <esri:geometry> <esri:Polygon> <fx:Array> <fx:Array> <esri:MapPoint x="0" y="400000"/> <esri:MapPoint x="0" y="1400000"/> <esri:MapPoint x="550000" y="1400000"/> <esri:MapPoint x="550000" y="400000"/> </fx:Array> </fx:Array> </esri:Polygon> </esri:geometry> <esri:symbol> <esri:PictureFillSymbol/> </esri:symbol> </esri:Graphic> </esri:GraphicsLayer>
... View more
10-11-2011
02:28 AM
|
0
|
6
|
618
|
POST
|
Another update in case anyone can help? I am now more clear about what the problem is. Identify against any of the layers this map service stops working after any edits are made to one of the (feature) layers in the service. The only way I can find to get identify returning results again is to restart the map service. The data is in sde and non versioned. The edits are being successfully saved to the database. I am using the Java version of server 10. Thanks
... View more
08-15-2011
06:37 AM
|
0
|
0
|
119
|
POST
|
Oh hang on....I've partly answered my own question. Shouldn't have been so quick to post! I am editing the data in this service from within the same application. As soon as an edit is made, the IdentifyTask stops working until the map service is re-started. Anyone know how best to deal with this? (There is a reason I am using IdentifyTask to go back to the server for an answer rather than just accessing the data from the graphics in the featurelayer itself) Cheers
... View more
08-12-2011
03:03 AM
|
0
|
0
|
119
|
POST
|
Hi everyone, I have an Identify task running against a map service (server version 10) which happily returns results for a few hours and then stops doing so and returns an empty result each time. Re-start the map service and everything is fine again for a couple of hours. No changes have been to the IdentifyParameters in the meantime. I've checked the results with Firebug etc and the results are definately empty for a request that would have previously returned some features. Any ideas? Have I missed something? Thanks very much
... View more
08-12-2011
02:16 AM
|
0
|
2
|
553
|
POST
|
Thanks for your suggestion Ravi. I tried this and still could not get the edit to work. However, I created an entirely new table on the database, registered with sde, published a new map service with feature access enabled and I am now able to edit this new layer fully (adds,updates and deletes). Not sure what made the difference yet but I'm still looking into it. Thanks again.
... View more
02-04-2011
06:18 AM
|
0
|
0
|
204
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|