|
POST
|
Yep - it was the only easy way I could see, without messing around with Python scripts. Plus I can sell it as a "feature" as users did initially want a pull down list of scales on my ArcIMS app, which I told them was too hard and not relevant. Plus it gives them a better idea of what they get.. Here's my code; Zoom list - somewhere on a button bar <select name="zoomselect" autocomplete="false" id="zoomselect" dojotype="dijit.form.ComboBox" style="width: 100px;" onchange="zoomscale(this.value)"> <option>250000</option> <option>100000</option> <option>50000</option> <option>25000</option> <option>10000</option> <option>5000</option> <option>2500</option> <option>1250</option> </select> The function it calls function zoomscale(scale) { map.setExtent(esri.geometry.getExtentForScale(map, scale)); } Then print how you currently are doing.
... View more
11-25-2012
11:19 PM
|
0
|
0
|
1275
|
|
POST
|
This is what I've been doing this week on my Alpha ArcIMS replacement app. On the map I have a dojo combo with pre-defined scales, but also allows typed in values This sets the screen map to the required scale A print button that opens a dojo dialog to allow title and comments (I'm using author for comments) and a filteringSelect to select template. A print option that leaves the default enforce map scale This generates PDF at the scale selected One thing to be careful of, which I have in my current ArcIMS project, which generates PDFs is that users don't have any of the Acrobat scaling settings switched on. I was also having difficulties setting the DPI, but I think I have sorted that on a esri sample last night - I just need to integrate it with my main code. ACM
... View more
11-23-2012
11:22 PM
|
0
|
0
|
1275
|
|
POST
|
Same here - before I try another route has anyone got any news about this bug? Is it likely to be sorted in 3.3? Cheers ACM
... View more
11-21-2012
05:03 AM
|
0
|
0
|
2344
|
|
POST
|
bump. Before I start to write my Print routine for my ArcIMS replacement internal thingie, is there any change in this? I need to be able to Add title Add Comments Be to specific Scale - and to print at that scale Add Legend Add Scale Bar Add North Arrow Have multiple page templates The Print Widget is close to doing this, but it seems not all the way there. The more advanced print tools (like tutorials here) seem overly complex and take nearly a minute to produce. My ArcIMS users will see that as a step backwards however much I tell them that the PDFs are much better quality. So do I embark on the Print Widget, and modifying it as described above, or wait to see if improvements are on the way with 3.3? Cheers ACM
... View more
11-19-2012
04:59 AM
|
0
|
0
|
2979
|
|
POST
|
Another example on one of our pages http://maps2.eastdevon.gov.uk/mapping/localplan2013/?x1=311599&y1=87159&x2=312953&y2=88429 Two crucial bits function gup(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regexS = "[\\?&]" + name + "=([^&#]*)"; var regex = new RegExp(regexS); var results = regex.exec(window.location.href); if (results == null) return ""; else return results[1]; } Is the function to handle URL parameters And
//check to see if an envelope has been sent (ie four values in x1,x2,y1 & y20 var newExtent = new esri.geometry.Extent(); var xMin = Math.abs(gup('x1')); var yMin = Math.abs(gup('y1')); var xMax = Math.abs(gup('x2')); var yMax = Math.abs(gup('y2')); var mk, pt, gra; //check to see if just a point has been sent in x1 & y1 if (Math.abs(gup('y2')) == 0 && (Math.abs(gup('x2')) == 0) && (Math.abs(gup('x1')) > 0) && (Math.abs(gup('y1')) > 0)) { x1 = xMin y1 = yMin xMin = xMin - 50 yMin = yMin - 50 xMax = xMin + 100 yMax = yMin + 100 dojo.connect(map, "onLoad", function () { ShowLocation(x1, y1); }); } if ((xMin > 0) && (yMin > 0) && (xMax > 0) && (yMax > 0)) { newExtent.xmin = xMin; newExtent.ymin = yMin; newExtent.xmax = xMax; newExtent.ymax = yMax; newExtent.spatialReference = new esri.SpatialReference({ wkid: 27700 }); map.setExtent(newExtent); } In the init function does stuff with it - can either take an envelope or single point - probably not the best way to do it, but it worls for us ACM
... View more
11-19-2012
04:15 AM
|
0
|
0
|
4824
|
|
POST
|
I was getting stuck here to. We can' upgrade the SDE due to legacy MapObject code. BUT reading http://forums.arcgis.com/threads/57375-Why-would-I-install-ArcSDE-with-10.1 I seems we no longer need the SDE software to create a "SDE" database, just the client software. So in ArcCat 10.1 I created a new enterprise database for the few things I want to be able to be edited via the browser. It all works well - now I just need to update my code (it currently rights the XY to a SQL table that is read as an event theme) Cheers ACM
... View more
11-16-2012
11:52 PM
|
0
|
0
|
2399
|
|
POST
|
IE8 & 9 but reading the Wiki entry (you learn something every day, thanks) even 9 seems not to fully support this. Anyway, not to hijack the thread, the real question is why do these requests not go very the proxy page and get a token added? Cheers ACM
... View more
11-08-2012
12:03 AM
|
0
|
0
|
1317
|
|
POST
|
Sorry, can't help, but I've noticed something similar today. I'm using this TOC http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109 and in IE and Firefox the graphics for the legend do not go via proxy page, so miss the token, and do not appear (I've tweaked the code now to add the token) in chrome, however, the source of the image looks like this src="data:image/png;base64,iVBORw0KG..<loads more like this>" and it works without the token, where as in IE it is a proper path to the image (like your example src="https://[server name]/ArcGIS/rest/services/Org/Basemap/MapServer/4/images/714F5E24"). What's going on here then?
... View more
11-07-2012
10:28 AM
|
0
|
0
|
1317
|
|
POST
|
I did read somewhere here that you don't actually need an identifier, if you leave it out one is generated. I was having similar issues with using fields I was sure had unique values. I then left the identifier out of the definition bit and everything worked. ACM
... View more
11-06-2012
11:29 AM
|
0
|
0
|
1185
|
|
POST
|
Please, if this is added, make it optional. When google Maps started doing it I spent ages trying to switch it off, I HATE it. I want the map to stop when I stop moving the mouse, not to continue on moving based on how fast I moved the mouse. Hate it. Did I mention, I don't like it?
... View more
10-25-2012
06:23 AM
|
0
|
0
|
3257
|
|
POST
|
Are your data in an SDE 10.x? AS I have been informed by esri(uk) support that that is what is required to get editing via web pages to work. ACM
... View more
10-23-2012
12:46 AM
|
0
|
0
|
1832
|
|
POST
|
Hi - I was (and still am) getting the "Unable to complete operation." error. It turns out that I simply cannot do any edits as long as I am on SDE 9.3.1 http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//00930000000m000000 ArcGIS Server 10 introduces feature services, which expose access to vector feature geometries and attributes. A great benefit of feature services is the ability to expose feature editing through JavaScript, Flex, and Silverlight applications. Feature services are published from map documents, and the source datasets are required to reside in a single ArcSDE geodatabase. So it is worth checking yours - we cannot upgrade as we still have a 3rd party MapObjects application ACM
... View more
10-17-2012
12:40 AM
|
0
|
0
|
3659
|
|
POST
|
Many thanks, although tried that with my version headed "/*built on 2012-08-21 14:32:39.70*/" without any luck ACM
... View more
10-15-2012
07:23 AM
|
0
|
0
|
3497
|
|
POST
|
ok - cracked the code to get all groups collapsed - as in screenshot [ATTACH=CONFIG]18426[/ATTACH] In the postcreate function find and alter as below
if (this.data._subLayerInfos) {
//acm added to collapse groups at the start
this.toggler.hide()
//end acm addition
and a bit later
//ACM also changed this line to get groups initial expand set
//dojo.addClass(this.iconNode, a ? "dijitTreeExpandoOpened" : "dijitTreeExpandoClosed")
dojo.addClass(this.iconNode, a ? "dijitTreeExpandoClosed" : "dijitTreeExpandoClosed")
So far it appears to work. The second part could be neater, but doing it this way you can see it has been changed to always return "dijitTreeExpandoClosed" ACM
... View more
10-15-2012
06:37 AM
|
0
|
0
|
3497
|
|
POST
|
It's been open for three years, so I wouldn't hold your breath.
... View more
10-15-2012
06:06 AM
|
0
|
0
|
3315
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-28-2025 01:14 AM | |
| 1 | 12-01-2023 06:07 AM | |
| 2 | 11-29-2024 04:32 AM | |
| 1 | 05-28-2024 12:50 AM | |
| 1 | 03-16-2023 06:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|