|
POST
|
😮 Doh! Note to self - when re-using code from Esri examples and other places, make sure you don't call stuff twice. I'd re-used some older code wit a scale bar, but had stripped out the initial definition, so it didn't work, then added the whole lot back in - result 2 bars, one metric the other "american" - Note to Esri, here in England we are trying very hard to use metric 😄
... View more
11-16-2011
11:31 PM
|
0
|
0
|
736
|
|
POST
|
Just a done a quick check and I can't see any major differences - so my next suspect is our ISA firewall - when our ISA chap returns next week I'll get him to trace my PC -often the cause of issues with calling remote stuff - there may be some sort of wacky "only download so many streams of data" setting.
... View more
11-16-2011
05:56 AM
|
0
|
0
|
678
|
|
POST
|
Watch this space - the app is internal, but I work on it at home as well - last nights home version works fine! I'll send the current version home to publish on my personal site later today. In the mean time I'll have a look at what dojo.requires I added today! Cheers ACM
... View more
11-16-2011
05:53 AM
|
0
|
0
|
678
|
|
POST
|
Hi When a user first uses a page of mine, which uses API 2.5, it hangs when initially loading, before it gets as far as the CSS, so all the items are showing unstyled. Event logs show Hanging application iexplore.exe, version 7.0.6000.17103, hang module hungapp, version 0.0.0.0, hang address 0x00000000. Killing iexplorer and starting again and it all works fine. Deleting temp internet files causes this to happen a second time. I'm guessing it is some conflict with the downloading of all the API code at once. Any ideas? ACM
... View more
11-16-2011
05:44 AM
|
0
|
5
|
1071
|
|
POST
|
I tried this myself, however it fails It has both Yards and meters on it - zooming out, just "english" and zooming in further the two units overwrtite each other. Snippet where I call it below. dojo.connect(map, 'onLoad', function(theMap) { var scalebar = new esri.dijit.Scalebar({ map: map, scalebarUnit:'metric' }); //resize the map when the browser resizes dojo.connect(dijit.byId('map'), 'resize', map,map.resize); //add the overview map overviewMapDijit = new esri.dijit.OverviewMap({ map: map, expandFactor:4 }, dojo.byId('overviewMapDiv')); overviewMapDijit.startup(); });
... View more
11-15-2011
01:02 AM
|
0
|
0
|
736
|
|
POST
|
did you ever sort this? I have the same issue - a small internal service that I want as a dynamic layer, but I want jpg or png32. ACM
... View more
11-07-2011
04:09 AM
|
0
|
0
|
305
|
|
POST
|
Hi I'm using the sample code to creat my legend //add the legend dojo.connect(map,'onLayersAddResult',function(results){ var layerInfo = dojo.map(results, function(layer,index){ return {layer:layer.layer,title:layer.layer.name}; }); if(layerInfo.length > 0){ var legendDijit = new esri.dijit.Legend({ map:map, layerInfos:layerInfo },"legendDiv"); legendDijit.startup(); } So I would have thought that in my function that sets visibly of sublayers I would add legendDijit.refresh() But this just erors with Uncaught ReferenceError: legendDijit is not defined Friday night - I'm off home - which means I'll realize what I've done wrong at about 03:00 😄 ACM
... View more
11-04-2011
08:40 AM
|
0
|
0
|
633
|
|
POST
|
You're quite right, of course, my definition was a bit short of a true definition of "layer" as used by the desktop. But I'm glad to see in general I am not alone in thinking better terms should have been chosen at te start of the API - I can't see any way it will change now.
... View more
11-04-2011
05:18 AM
|
0
|
0
|
843
|
|
POST
|
Cheers - but this isn't consistent, for example .visibleLayers returns the visible discrete datalayers within a ArcGISDynamicMapServiceLayer So I'm still confused!
... View more
11-04-2011
04:50 AM
|
0
|
0
|
843
|
|
POST
|
OK on the desktop this is simple, a layer is a discrete data set, a shapefile, a layer in a geodatabase or something. However it seems to me to have two usages for the Javascript API. Take this from http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm "This sample shows how to use the Legend widget to build a legend that displays swatches and labels for the layers in the map.................The legend is displayed in one pane of the accordion container and a link that allows you to toggle the visibility of layers in the map is displayed in the other" In the instance of "layers" this refers to the discrete datasets on the map, in this example, Campgrounds, Shelters, Earthquakes etc, and refers to the legend items for each of these "layers" The second instance refers to map services added by "map.addLayers" and will give a tick box per map service - which could contain shed loads of, what I would call, "layers" Have I missed something here? ACM
... View more
11-04-2011
01:59 AM
|
0
|
6
|
1093
|
|
POST
|
Karl I came here with the same query and am just looking at the original page you linked to. I've then quickly looked at you code - is it complete? It seems to be missing some -- there seem to be several FOR loops started but not finished - or am I missing something? Cheers ACM
... View more
11-01-2011
08:35 AM
|
0
|
0
|
759
|
|
POST
|
Hi I'm trying to adapt the "Show Find Task results in DataGrid" to zoom to the result in the grid. I can see how the code loops through the results and populates the grid, but have hit a time barrier to try and get the click bit working - I've tried adapting http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/find_map_datagrid.html without much luck and now I've run out of "free" time and have to get back to other stuff. Any help would be great Cheers ACM
... View more
07-13-2011
04:46 AM
|
0
|
1
|
527
|
|
POST
|
We found the cause, but not the reason. The cause was we have, via Group Policy, defined our "my Documents" to live on the network - a mapped drive u:\ Users with the default (c:\documents and settings\username\) worked fine, as soon as we made the change to the network this broke (BTW our Local Admin accounts had it set to the local drive, which is why it appeared to work when logged in as an admin) Esri(UK) failed to recreate the problem, so we assumed that something isn't quite right with our GPOs. However, by setting the registry to look for shared AddIns (which was my ultimate goal anyway - just let the users use add-ins from a central location) it all worked.
... View more
07-06-2011
06:16 AM
|
0
|
0
|
1528
|
|
POST
|
Hi Was the cause of this ever resolved? It sounds similar to my current issue with 10 SP1 - The only way I can see the categories associated with add-ins is running ArcMap as a local admin. Cheers ACM
... View more
04-12-2011
07:48 AM
|
0
|
0
|
1528
|
|
POST
|
PS Adding the built addin using the "Add from file" button, from the built location of "My Documents\ArcGIS\Addins\<guid> I fet "no gui components found in this add-in" and nothing is added. Adding the same file from a different location I don't get this, but neither do I get the category added to the list, it refreshes the list but doesn't add anything Cheers ACM
... View more
04-12-2011
05:24 AM
|
0
|
0
|
559
|
| 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 |
09-25-2025
03:26 AM
|