|
POST
|
OK - slowly making progress, but I am hitting (what I think) are scope issues. I am creating an overview map. I have the require and attribute all done - require(["esri/map", "esri/layers/ArcGISTiledMapServiceLayer",
"esri/layers/ArcGISDynamicMapServiceLayer",
"esri/geometry/Extent",
"esri/layers/FeatureLayer",
"agsjs/dijit/TOC",
"esri/symbols/SimpleFillSymbol",
"esri/symbols/SimpleLineSymbol",
"dojo/_base/Color",
"esri/dijit/OverviewMap",
"dojo/parser",
"dojo/domReady!"
], function (
Map,
ArcGISTiledMapServiceLayer,
ArcGISDynamicMapServiceLayer,
Extent,
FeatureLayer,
TOC,
SimpleFillSymbol,
SimpleLineSymbol,
Color,
OverviewMap,
parser
) { then I create the ovmap var overviewMapDijit = new OverviewMap({ map: map,
expandFactor: 2,
visible: true,
height: 230,
width: 230
}); but get Uncaught TypeError: Cannot read property 'wkid' of undefined As if the map doesn't exist - I have a "var map;" earlier of course - what I have, is, more or less the same as https://developers.arcgis.com/en/javascript/jssamples/widget_overviewmap.html cheers ACM
... View more
09-03-2013
04:06 AM
|
0
|
0
|
2024
|
|
POST
|
<lightbulb> (well, low energy, dimmer light bulb, that has occasional brown-outs) I'm sort of seeing it now. Gives me an excuse to totally re-structure my code as I move each bit over from my main init function
... View more
09-02-2013
05:33 AM
|
0
|
0
|
2024
|
|
POST
|
😉 Er, sorry for sounding silly, but aren't those two code blocks identical? I think I know what you mean. Ah I see it now, the Upper case M in the first one and no 'esri'. Doh! Anyway, it's Friday afternoon where I am, it is sunny and will remain so for the weekend, so I'm off home!
... View more
08-30-2013
07:25 AM
|
0
|
0
|
2024
|
|
POST
|
Thanks - that helps a bit- amazingly just having just the modules required and a minimal second arg it still allworks - I guess the rest still being old style just picks up. Any idea where the link should go to to show "preferred argument aliases for Esri modules" which I guess is the list I add to the second arg for all the modules I am referencing? ACM
... View more
08-30-2013
07:01 AM
|
0
|
0
|
2704
|
|
POST
|
Ok - with my major JSAPI project about to be fully live I thought I'd try to get my head around AMD, but failed, almost at the start. For example the link https://developers.arcgis.com/en/javascript/jsapi/argument_aliases-amd.html on this page https://developers.arcgis.com/en/javascript/jstutorials/ 404s , so I am strugling to work out what exactly the function inside the require is for <script>
require(["esri/map"], function(Map) { ... });
</script> For a simple map it seems only to define the map, but WTF is this all about? function(dom, domAttr, array, Color, parser, esriConfig, Map, Graphic, GeometryService, BufferParameters, Draw, SimpleMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol)
So, I'm giving up for now, and my code will be a horrid mix for a while. I may return later when there are better guides ACM
... View more
08-30-2013
06:46 AM
|
0
|
0
|
2704
|
|
POST
|
OK - update #2 - whilst the CSS .esriOverviewMap .ovwHighlight { border: solid 2px #004F00 !important;
background-color: transparent !important;
} LOOKS like it works in print preview - when it is actually printed out in IE8 the box is still solid. IE10 works fine, but alas, I am stuck to IE8 for the next 6 months ACM
... View more
08-27-2013
05:42 AM
|
0
|
0
|
731
|
|
POST
|
Hi I have a site that used dynamicMapServiceLayer.layerInfos[visibleLayers].copyrightText; To return the © text of a sublayer - I am sure it worked before. It is a minor part of my site but now it is broken. I was trying to find the old API reference pages to see if copyrightText was ever returned - it isn't listed as being returned, but I have a feeling it never was LISTED as being returned, but at some earlier version it was actually returned. I have had a quick try with a 1.6 sample I could find, and changing the API all the way to 2.8 and I can not find this ever working, yet I am convinced I got it working. Am I losing the plot here? ACM EDIT - I *think* I have removed a chunk of code on the init function of my site that used a loop to query the REST of each service to return details (I do this for descrioption) adding the returned value to layerInfos as a new attribute then gets it returned later on. I seem to recall cleaning up some code - I must have been over zealous.
... View more
08-27-2013
03:05 AM
|
0
|
0
|
731
|
|
POST
|
Hi Using the standard Print Widget you have three potential "things" to add your own text - I use them all, CopyrightText, authortext and titletext - the copyright and title I use for what they are supposed to be for. the author I use for user added comments/text. But there is no reason, say if you have a fixed title and copyright, to add these directly to the MXD in ArcMap and use those two things to hold extra user generated content. ACM
... View more
08-27-2013
01:43 AM
|
0
|
0
|
2693
|
|
POST
|
Some of the fairly complex but less known functionality was dropped to simplify the code upgrade, such as creation of check box on legend items based on UniqueValueRenderer, I just noticed this, shame, I was selling that as a neat new feature to my users - any chance of adding this back in as an option? I agree it wasn't for everyone, as if you had a poorly index/large layer it did have a server hit. Cheers ACM
... View more
08-19-2013
02:36 AM
|
0
|
0
|
2614
|
|
POST
|
Well, I did get the error to go away, but no idea how. I have three versions, a internet "frozen" version from April - worked. A Live version - failed and a Dev version - worked ! So I finished what I was doing on Dev and made it live. So no idea what it was. ACM
... View more
08-14-2013
12:13 AM
|
0
|
0
|
721
|
|
POST
|
Thanks for that - our users are used to this behaviour - turning on greyed out layers, even through nothing will appear until the zoom is changed, as that is what I gave them 7 years back in my ArcIMS site, using David Bollinger's TOC. So, they seem to be able to cope. I'll take a look at your suggestion next time I'm doing work on my site - many thanks. ACM
... View more
08-13-2013
03:19 AM
|
0
|
0
|
3143
|
|
POST
|
Hi I've found I had made one other hack to the old code. Basically I want my users to be able to switch greyed out layers on, even when they are greyed out, so they will draw when the users zooms in enough to see them. On the latest version I change this line if (this.checkNode) if (this.checkNode.set) this.checkNode.set("disabled", a); To if (this.checkNode) if (this.checkNode.set) ; Is there a better way of doing this without having to hack the code? Cheers ACM
... View more
08-12-2013
03:45 AM
|
0
|
0
|
3143
|
|
POST
|
🙂 I was just wondering myself if you could CAST a geometry column. FYI - 10.2 behaves in exactly the same way with the approach I was using in 10.1 trying the CAST now. ACM
... View more
08-07-2013
03:45 AM
|
0
|
0
|
907
|
|
POST
|
Hi - tried that with an Esri view, and failed. I tried to do it setting the view up on SQL, but couldn't get the syntax right for "GEOMETRY=POINT" or whatever. Anyway, esri(uk) have told me they think 10.2 will work better, so I'm about to install that on a VPC to take a look. Cheers ACM
... View more
08-07-2013
12:24 AM
|
0
|
0
|
907
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-19-2026 12:29 AM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|