|
POST
|
Hi Apart from the two in the 10.1 help (http://resources.arcgis.com/en/help/main/10.1/index.html#/Tutorial_Basic_high_quality_web_map_printing_exporting_using_arcpy_mapping/0057000000mr000000/) has anyone got any good examples of using the ConvertWebMapToMapDocument function from with the JavaScript API? I'm guessing that any such example would also have to provide the .py script as well Cheers ACM
... View more
09-25-2012
07:38 AM
|
0
|
0
|
834
|
|
POST
|
Hi - I'm working on the same problem, selectively collapse/expand at start up. Ive added an extra parameter to the definition - {
layer: altmaps,
slider: true,
title: "OS Basemaps",
isopen: false
} Now just need to know how to collapse a node from within the (excellent) code! Cheers ACM
... View more
09-19-2012
05:08 AM
|
0
|
0
|
3488
|
|
POST
|
Indeed - check out http://chawke.co.uk/infitnity_and_beyond.html for what I mean. The data for the initial extent through to the grey scale property based maps are all from a tiled service read into the MXD that generates the dynamic service. These data are all generated from Vector data, so there is a processor overhead generating it for each request. Rasterizing it and tiling it is very effective. For my internal use, these layers are just for reference, alternative, finer detailed maps are available on request. Most of our work is done on the 1:100 to 1:1250 scale range, where I need to provide infinite zoom levels that read the fine detailed vector maps (the excellent OS MasterMap) Having a cached service with a dynamic service and infinite zoom on the API will enable client based caching of the initial basemaps, nice slippy maps at those scales, and a nicer user experience. Chers ACM
... View more
09-15-2012
12:26 AM
|
0
|
0
|
3037
|
|
POST
|
Anyone know if any progress has been made on this - I too am having issues with defining what layer out of several layers for the overview map to use. Cheers ACM
... View more
09-14-2012
07:00 AM
|
0
|
0
|
1267
|
|
POST
|
Did the lack of respect for width/height in accordianpanels get sorted? As I recently raised the same/Similar issue http://forums.arcgis.com/threads/65694-Overview-map-in-AccordianContainers?highlight=OverviewMap Cheers ACM
... View more
09-14-2012
06:36 AM
|
0
|
0
|
2413
|
|
POST
|
Steve - do you know if there are any plans to change this? I'd love to have a map with infinite zoom, but still use a tiled service at the higher zoom levels, I've got round this by adding the map cache into th MXD I define the service with, but this isn't ideal. Cheer ACM
... View more
09-14-2012
04:10 AM
|
0
|
0
|
3037
|
|
POST
|
Dorothea - just a thought I had this morning. Have you the ability to test in both Chrome and IE7 or IE8? If so, then is there any difference in speed? If there is a speed difference (and I'd hope Chrome would be faster) then it will be down to some JavaScript issue, as Chrome is so much faster than IE7/8. If there isn't much time difference, then the issue, as you suspect, is the time the server is spent processing the request. Cheers ACM
... View more
09-10-2012
12:14 AM
|
0
|
0
|
1790
|
|
POST
|
updated file and CSS - revised screen shot showing alternating styles [ATTACH=CONFIG]17547[/ATTACH]
... View more
09-07-2012
05:55 AM
|
0
|
0
|
1790
|
|
POST
|
Dorothea Here's my code. Hopefully I've not missed anything from it. Like you I will be having many layers. Our current ArcIMS internal system has about 50 feature layers and about 12 raster layers. Obviously not all on at once, but adding a layer in ArcIMS is a task, so I wanted to simplify it for my replacement. If you require the feature I've added to use the MXD layer description to power a hyperlink, then you need to add this to your init function dojo.connect(dynamicMapServiceLayer, "onLoad", function () { var content = ""
//return the layer descriptions into an array - we use this later for the info dialog to generate hyperlinks
dojo.forEach(dynamicMapServiceLayer.layerInfos, function (layer) {
var restAPIServicePage = {
url: mapservice2 + "/" + layer.id + "?f=json",
callbackParamName: "callback",
load: function (data) {
LayerDescriptions[layer.id] = data.description;
}
};
dojo.io.script.get(restAPIServicePage);
})
}); I can't claim credit for that - see this post on the old forums. You'll also need a few "var"s at the start of your code var LayerDescriptions = []
(maybe more, but you'll need to work them out) Then reference the attached file (renamed with .js extension) If you want to use the hyperlink feature then add, to your description a valid, full URL, including parameter, but surround where you want the value of a field with the field alias (see earlier post for example) Hopefully that'll all work - it is still a bit rough - as it stands it will fail if one layer name is a substring of another "So if you have a layer called "Wards" and another "County Wards" it will get confused,but the bit where it checks if the result is in a new layer or not can easily be re-written to use layer ID. The one other suggestion to improving return speed is to look at your data. Is it all in an SDE? If any shapefiles then have they got good spatial indexes? Do you have any very large polygons that get returned a lot? I had this issue on one of my maps, one polygon covering most of our district. Returning the geometry of this took about the time you have got. So for just that one feature I created a duplicate polygon with simplified features (if you haven't got ArcINFO license, you haven't got this feature , but QGIS can do it for free) - this layer was added to a different service, which was used purely for the ID task. A bit of a bodge but worked. Have fun ACM PS Just looked at the file - the test and create popup function are not needed, and looking at my screen shot I realize I haven't got the code working that alternates the row format - but I'm sure that that is a quick fix, moving my row counter increment. - I'll add any new version, plus my CSS sometime later, when I've got it working
... View more
09-07-2012
12:32 AM
|
0
|
0
|
3295
|
|
POST
|
Hi You may be interested in the code I just finished - basically doing away with tabs and re-creating the old ArcIMS html viewer look - see screen shot [ATTACH=CONFIG]17513[/ATTACH] My code does away with any hard coding in the script. It takes ALL exposed fields and displays them (although not system fields like shape, ID etc), using their aliases, as defined in the MXD. Also, it looks at the sublayer description to see if you want a specific field to act as contents in a hyperlink - so adding "http://www.eastdevon.gov.uk/my_neighbourhood?uprn=£UPRN£" in to the description will substitute the value of the UPRN filed for the string £UPRN£ (£ chosen as a delimiter as it is never used in javascript) Reply here if you want the code - still a bit rough around the edges. Also, unless you really NEED the geometry, you can speed things up with returnGeometry = false or by simplifying what is returned by increasing the maxAllowableOffset (see http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/identifyparameters.htm). Cheers ACM
... View more
09-06-2012
01:00 AM
|
0
|
0
|
3295
|
|
POST
|
Resolved adding "autofocus:false" to the creation code works.
... View more
09-04-2012
01:23 AM
|
0
|
0
|
730
|
|
POST
|
Hi I have some code that uses an identify task. In the idenfify task execute function, I loop through the layers found and the fields found to build up a set of tables (one per layer) containing all the field aliases and values - basically recreating the ArcIMS html viewer Identify All results. I pop these up in a dojo dialog box. The box is defined by CSS as a specific percentage - .dijitDialog{ max-height: 50%; max-width:50%; overflow: auto; } this works fine for a few results, but when I have a fair few results, the vertical scroll bar appears - but the initial position is half way down the document. I'm not sure if this is something I've missed or an issue with dojo itself. Cheers ACM
... View more
09-03-2012
01:21 PM
|
0
|
1
|
2139
|
|
POST
|
As you say, awesome! Many thanks for pointing that out PS for others to working check this, I've added the code to my personal website http://chawke.co.uk/graphic_symbology.html PPS Some tweaking is needed for the latest versions, any version of the API over 2.0 breaks the layout, plus as discussed elsewhere the references to 'esri' needs moving to the end of the init function pps Not much needed for 3.1 API - just the moving the few references to the init function and making sure the CSS was pointed to 3.1 as well 😮 which I forgot the first time http://chawke.co.uk/g3.html for tweaked version for latest API
... View more
08-10-2012
10:54 PM
|
0
|
0
|
1553
|
|
POST
|
Yay! that's the sort of thing, many thanks. Any worked example of adding text? Although I'm sure I can work that one out, an additional menu item, and maybe an additional drop down (or two for font size and font) PS - I'll explore the local storage route for all sorts of options as soon as I get a date for our XP >> Windows 7 roll out - at the moment I am limited to a user base with IE8
... View more
08-09-2012
10:23 PM
|
0
|
0
|
1553
|
|
POST
|
Not really - it was adapting these examples http://help.arcgis.com/en/webapi/javascript/arcgis/demos/toolbar/toolbar_draw.html and http://help.arcgis.com/en/webapi/javascript/arcgis/demos/toolbar/toolbar_edit.html to allow users to change the style of the things they are drawing - the current redlining tool in ArcIMS allows them to define the style as they are drawing, but not to change it afterwards - so that is my baseline to achieve - my goal is to allow them to edit a set of layers (point, line, polygon, annotation) which then gets stamped with their AD name and filtered when it is displayed so only they can see it. I probably will have attributes that define the style - so a field called "Colour" and a pick list of a dozen or so. For the my users that'll be enough, it isn't a massively used feature, but one they will moan about if I replace the old ArcIMS tool with a new one. Cheers ACM
... View more
08-09-2012
01:02 PM
|
0
|
0
|
1553
|
| 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 |
Wednesday
|