|
POST
|
Not sure I know where to put that. However, I replaced the * in the http://server/arcgis/admin/system/handlers/rest/servicesdirectory With some random text and that sorted it. I think too many things were trying to do the same thing - I have really no idea what I am talking about.
... View more
11-17-2014
06:40 AM
|
0
|
3
|
2569
|
|
POST
|
bump - still getting this - anyone any ideas how to make it stop?
... View more
11-17-2014
05:29 AM
|
0
|
5
|
2569
|
|
POST
|
OK, I am having issues getting my head round all these items whilst using my own basemaps. In my code, I create the map object. I do not set the basemap property. I want to add two basemaps, a topo and photographic I can see how to add to them to a gallery, but by that time the map object is defined, so how do I set the basemap? I keep going round in circles - this is as far as I have got. - mainly from example code
map = new Map("mapDiv", {
logo: false
});
var basemapGallery = new BasemapGallery({
showArcGISBasemaps: false,
map: map
}, "basemapGallery");
basemapGallery.startup();
var layer = new BasemapLayer({
url: "http:/xxx/arcgis/rest/services/bmap1/MapServer"
});
var basemap = new Basemap({
id:"StreetMap",
layers: [layer],
title: "Street Map",
thumbnailUrl: "pin.gif"
});
basemapGallery.add(basemap);
var layer2 = new BasemapLayer({
url: "http://xxx2/arcgis/rest/services/LIVEinternal/aerials/MapServer"
});
var aerial = new Basemap({
layers: [layer2],
title: "Aerials",
thumbnailUrl: "pin.gif"
});
basemapGallery.add(aerial);
console.debug(basemapGallery)
var toggle = new BasemapToggle({
map: map,
basemap: "StreetMap"
}, "BasemapToggle");
toggle.startup();
But hit issues - what do I use in the Basemap property of the toggle - the help says "The secondary basemap to toggle to." but the ID, the title? I've tried both and they both fail with various errors Also, how do you get the initial basemap of the map object. Is it just me, or does the official help really suck when it comes to daring to use your own data?
... View more
11-17-2014
04:42 AM
|
1
|
5
|
4985
|
|
POST
|
Slly me - the code wanted different parameters for tiled (which I used before) and dynamic. Dynamic only wanted url - leaving original post there as a pointer for others
... View more
11-14-2014
09:27 AM
|
0
|
0
|
684
|
|
POST
|
Hi I have used code derived from http://warblingdiode.blogspot.co.uk/2010/02/watermarking-your-maps-with-esri-arcgis.html#comment-form Before quite well. I have now created a new site, and am being good, using AMD and stuff. Yet it fails This is the code I use, all in the function thingy of the initial require.
dojo.declare("myScripts.WatermarkLayer", DynamicMapServiceLayer, {
startExtent: new Extent({ xmin: 0, ymin: 0, xmax: 700000, ymax: 1300000, spatialReference: { wkid: 27700 } }),
//construct the layer
constructor: function (args) {
this.initialExtent = this.fullExtent = this.startExtent;
this.spatialReference = this.initialExtent.spatialReference;
dojo.mixin(this, args);
//set layer loaded property and fire onLoad event
this.loaded = true;
this.onLoad(this);
},
getImageUrl: function (extent, width, height, callback) {
try {
callback(this.url);
}
catch (ex) {
console.debug("Error getting Watermark image. " + ex.message);
}
},
_errorCallback: function (err) {
console.error(err.message);
}
});
wm = new myScripts.WatermarkLayer({ watermarkUrl: "Logo.png" })
wm.setOpacity(1);
map.addLayer(wm);
console.debug(wm)
console.debug(map)
It doesn't error - the console of the wm object shows what I would expect. The console of the map object shows the lyaer added. yet I get GET http://dev/test/null 404 (Not Found) Error - and I get this every time I zoom in or out, which indicates it isn't finding the watermark image It's late on a Friday - if anyone thinks they can help I can put all code live somewhere next week ACM
... View more
11-14-2014
09:09 AM
|
0
|
1
|
1111
|
|
POST
|
Many thanks for that fiddle - I've just hit a similar issue (user collects in google maps, want to display in our 27700 maps) and a slightly modified version of your code works a treat.
... View more
11-14-2014
06:27 AM
|
0
|
0
|
3243
|
|
POST
|
Looking at a Fiddler trace for the requests that get fired off when my web app is starting, it has quite a few results that give a http 401 return, then get asked for again and works - see below. I am using the latest (beta 1.1) proxy Is this normal?
... View more
11-11-2014
02:25 AM
|
0
|
0
|
707
|
|
POST
|
Hi The "Legacy Module Require" notes of projectparameters | API Reference | ArcGIS API for JavaScript Doesn't mention that from 3.11 you need a legacy require as well dojo.require("esri.tasks.ProjectParameters"); ACM
... View more
10-24-2014
04:34 AM
|
0
|
1
|
1001
|
|
POST
|
OK - I updated to the latest version of the proxy page (1.1 beta - previous version didn't have numbers on) and so far it is looking better. ( a quick Notepad++ compare shows lots of extra stuff in the newer version) For info, in the logs there seemed to be w3wp.exe Information: 0 : 2014-10-15 09:22:21 Sending request! w3wp.exe Information: 0 : 2014-10-15 09:22:21 Sending request! w3wp.exe Information: 0 : 2014-10-15 09:22:21 Sending request! w3wp.exe Information: 0 : 2014-10-15 09:22:21 Sending request! When it failed, but nothing else. I'll keep watching
... View more
10-15-2014
01:32 AM
|
0
|
0
|
1211
|
|
POST
|
I don't think so, as the issue seems tied up with the proxy and the proxy settings. I'll see if I can make a cut down version available
... View more
10-14-2014
02:14 PM
|
0
|
0
|
1211
|
|
POST
|
branched to IE fails to use proxy on first load - site stops
... View more
10-14-2014
09:11 AM
|
0
|
0
|
1913
|
|
POST
|
This was "branched" from Odd timing issue on IE10 (maybe others) but now I have more data. If I go into a site via a shortcut, link from another site or direct from the IE address bar, the site fails. looking at the Fiddler results, nothing seems to go via the proxy, (REmoving the proxy requirement works, but not a solution as it is requiired for user control) REFRESHING after the first load, in other words using the browser refresh button works. As does clearing the cache before going in from external link WTF is going on? ACM
... View more
10-14-2014
07:26 AM
|
0
|
4
|
1620
|
|
POST
|
I'll give that a shot, but from testing yesterday it seemed that; With any parameters I always get this error and then the app failed to load my TOC (Nliu's) fails to load only when URL is entered directly or from shortcut A refresh works Sometimes I get these errors without any URL parameters and TOC fails to load. I've modenized my cade with the init code wrapped in a
require(["dojo/ready"], function (ready) {
ready(1000, function () {
Rather than doing it the old way - this didn't work, but at least I have a bit mre control. Cheers ACM
... View more
10-10-2014
01:21 AM
|
0
|
1
|
1913
|
|
POST
|
A bit more digging (I'm not too good with the IE debug tools) the function that is throwing the first error is
_onZoomHandler: function(b, e, c) {
b = this._startRect;
var d = b.width * e,
f = b.height * e,
g = this._img,
h = a("ie");
g && (h && 8 > h ? k.set(g, {
left: b.left - (d - b.width) * (c.x - b.left) / b.width + "px",
top: b.top - (f - b.height) * (c.y - b.top) / b.height + "px",
zoom: e * b.zoom
}) : k.set(g, {
left: b.left - (d - b.width) * (c.x - b.left) / b.width + "px",
top: b.top - (f - b.height) * (c.y - b.top) / b.height + "px",
width: d + "px",
height: f + "px"
}))
},
the actual line is 03 above.
... View more
10-09-2014
02:40 AM
|
0
|
3
|
1913
|
|
POST
|
Not really, the code I have is quite complex. I've just tested it on a public example of my site and it was fine. Very strange.
... View more
10-09-2014
01:07 AM
|
0
|
4
|
1913
|
| 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 |
Tuesday
|