|
POST
|
🙂 marked as helpful as you've got further than I did late last year - I had the same idea, but failed totally to get as far as you did. What's your idea for options? Mine is things like labels on/of This would make a very good TOC, great.
... View more
01-15-2014
12:31 AM
|
0
|
0
|
1358
|
|
POST
|
😞 Hello, Our development team is currently working on the issue. Most likely, it will be fixed in the upcoming release. Thanks! Still an issue with 3.8.
... View more
01-04-2014
06:12 AM
|
0
|
0
|
1627
|
|
POST
|
Hi I currently use the OOB measure widget, but it is limited. I really like what this site does http://206.107.103.203/ (under map tools) [ATTACH=CONFIG]30096[/ATTACH] Not only is it nice, but the code dropped into my code and worked straight away! Partly as I had a geometryService variable already defined. However, it does use Jquery with lots of lines like " $(".caption").addClass("ui-priority-primary");" I don't use jquery, never have, and really don't want to add it just for this. Has anyone a similar tool to this ? What I like is that it recreates my ArcIMS experiance for users. One simple tool, measures line length and closure area at the same time and returns segment length. Many thanks to Edgecombe County for this in case they are present. ACM
... View more
12-24-2013
03:42 AM
|
0
|
0
|
834
|
|
POST
|
looks nice - one thing that I am trying to do with my current TOC is to re-create the ArcIMS TOC from David Bollinger. In this one there was an option of a "toggle group" (I think it was called) where only one item was allowed on. For me I would use it for the TOC for my aerial map service, so only one year's photos can be requested. Getting more than one year is silly as they just appear on top of each other (until I work out layer based transparency sliders) and have a resource hit on the server. ACM
... View more
12-22-2013
11:14 PM
|
0
|
0
|
761
|
|
POST
|
Yes - I had to move various bits to my init function. As I use the constrained floating pane, I don't know which bits are relevant, so here is all the bits I had to move into my init function
var ParentConstrainedFloatingPane = dojo.declare(dojox.layout.FloatingPane, {
postCreate: function ()
{
this.inherited(arguments);
this.moveable = new dojo.dnd.move.parentConstrainedMoveable(
this.domNode, {
handle: this.focusNode,
area: "content",
within: true
}
);
}
});
var BoxConstrainedFloatingPane = dojo.declare(dojox.layout.FloatingPane, {
postCreate: function ()
{
this.inherited(arguments);
this.moveable = new dojo.dnd.move.boxConstrainedMoveable(
this.domNode, {
handle: this.focusNode,
box: { l: 10, t: 10, w: 400, h: 400 },
within: true
}
);
}
});
var ConstrainedFloatingPane = dojo.declare(dojox.layout.FloatingPane, {
postCreate: function ()
{
this.inherited(arguments);
this.moveable = new dojo.dnd.move.constrainedMoveable(
this.domNode, {
handle: this.focusNode,
constraints: function ()
{
var coordsBody = dojo.coords(dojo.body());
// or
var coordsWindow = {
l: 0,
t: 0,
w: window.innerWidth,
h: window.innerHeight
};
return coordsWindow;
},
within: true
}
);
}
});
var pFloatingPane;
dojo.ready(function ()
{
//add popup floating pane for in
var dock = new dojox.layout.Dock({
id: 'dock',
style: 'position:absolute; bottom:0; right:0; height:500px; width:0px; display:none; z-index:0;'
//tuck the dock into the the bottom-right corner of the app
}, dojo.create('div', null, dojo.body()));
//find size of the map so to get the best possible initial size for the user
popX = map.width * 0.66;
popY = map.height * 0.66;
pFloatingPane = new ConstrainedFloatingPane({
title: "Layer Info",
resizable: true, //allow resizing
closable: false, //we never want to close a floating pane - this method destroys the dijit
dockable: true, // yes we want to dock it
dockTo: dock,
style: 'position:absolute;top:90px;left:340px;width:' + popX + 'px;height:' + popY + 'px;visibility:hidden;overflow:hidden;',
id: "pFloatingPane"
}, dojo.create('div', null, dojo.body()));
dojo.connect(pFloatingPane, 'onFocus', function ()
{
dijit.byId('pFloatingPane').bringToTop();
// alert(1)
});
//do the same for onShow
dojo.connect(pFloatingPane, 'onShow', function ()
{
dijit.byId('pFloatingPane').bringToTop();
});
dojo.connect(pFloatingPane, "onDock", function ()
{
// alert(1)
});
//add popup for draw tools
var drawtools = new ConstrainedFloatingPane({
id: 'drawtools',
title: 'Drawing Tools',
href: 'common/draw.html',
resizable: false,
closable: false,
dockable: true,
dockTo: dock,
style: 'position:absolute;top:100px;left:50px;width:450px;height:480px;visibility:hidden;overflow:hidden;'
},
dojo.create('div', null, dojo.body()));
dojo.connect(drawtools, 'onFocus', function ()
{
dijit.byId('drawtools').bringToTop()
});
dojo.connect(drawtools, 'onShow', function ()
{
dijit.byId('drawtools').bringToTop()
r1 = dijit.byId('radio2')
//it's late, I want to go home, so classic bodge here
if (r1) {
dijit.byId('radio1').set('checked', false);
dijit.byId('radio2').set('checked', false);
dijit.byId('radio3').set('checked', false);
dijit.byId('radio4').set('checked', false);
dijit.byId('radio5').set('checked', false);
}
});
dojo.connect(drawtools.dockNode, 'click', function ()
{
drawToolbar.deactivate(); enableID();
});
pFloatingPane.startup();
dojo.forEach(dojo.query('.dojoxFloatingMinimizeIcon'), function (i)
{
dojo.attr(i, 'onmouseover', 'dojo.style(this, "backgroundPosition", "-21px 50%")');
dojo.attr(i, 'onmouseout', 'dojo.style(this, "backgroundPosition", "0 0")');
dojo.attr(i, 'onmousedown', 'dojo.style(this, "backgroundPosition", "-42px 50%")')
});
});
Hope that helps.
... View more
12-17-2013
11:17 PM
|
0
|
0
|
1452
|
|
POST
|
bump - this is now a breaking issue. IE10 (running in IE9 mode to get around the zoom box issue) is breaking and simply locking up with this message within minutes. Linked to line 8840 in my case. Seems to be tied in with a request for an identify task. On my expanded version of the init.js file this seems to be the dad part var q = b(a.document, "mousedown, touchstart", function (a) { f._justMouseDowned = !0;
setTimeout(function () {
f._justMouseDowned = !1
}, 0); I wonder if it is the touchstart event that is the issue? I can't see a similar chunk in 3.5 .Edit - so I removed the touchstart event from that bit of code and so far no errors - hard to say for sure as it didn't always happen. But the ammount of testing I have done would have triggered it .
... View more
12-09-2013
01:51 AM
|
0
|
0
|
2262
|
|
POST
|
Cheers - not sure if the server restart helped or your extra lines. But I'll leave them all in. I added a IISRESET for good measure! I am doing this as I have some tasks that need exclusive locks on layers and it is easier to shut the whole thing down.
... View more
12-08-2013
01:19 AM
|
0
|
0
|
5240
|
|
POST
|
I got this same issue when I stopped and started the service using a .bat file and net stop and net start - should this be an issue? If so, is there a safe way to stop and start the service on a schedule? ACM
... View more
12-07-2013
12:08 AM
|
0
|
0
|
5240
|
|
POST
|
OK - the error is now a bit more limited - certainly to Chrome based browsers. I now get only I get
XMLHttpRequest cannot load http://my server name/arcgis/rest/info?f=json. The 'Access-Control-Allow-Origin' whitelists only 'http://myURL, *'. Origin 'http://myURL' is not in the list, and is therefore not allowed access.
The request to http://my server name/arcgis/rest/info?f=json seems to be how the API determines if the server supports CORS (see http://forums.arcgis.com/threads/71824-quot-NetworkError-404-Not-Found-http-tasks.arcgis.com-ArcGIS-rest-info-f-json-quot) It may be a genuine Chrome bug - see https://code.google.com/p/chromium/issues/detail?id=321517 But it is causing issues here. Cheers ACM
... View more
12-01-2013
11:51 PM
|
0
|
6
|
2596
|
|
POST
|
Bearing in mind that in IE10+ Conditional Comments are no longer supported any ideas how I would detect if IE8 or IE10 and use a different metatag - basically, this is what I would use is conditional comments were supported <!--[if lte IE 8]><meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'><![endif]-->
<!--[if IE 10]><meta http-equiv="X-UA-Compatible" content="IE=9" /> <![endif]--> As our IE8 users use Google Chrome frame to improve performance, whereas our IE10 users need to run it as IE9. ACM
... View more
11-29-2013
01:48 AM
|
0
|
0
|
1627
|
|
POST
|
Oddly my code I had a different approach, which broke when I moved to API 3.7 I had hooked the onclick of the tool to a routine, disableID(), that set a global variable - which I then checked against on my id function dojo.connect(measurement, "onClick", function() {
navToolbar.deactivate();
ClearAllButtonsIcon();
disableID();
}); Since 3.7 none of this event gets triggered - using your method of checking works fine - so many thanks. Anyone any ideas why my old code broke at 3.7? I haven't tried using the newer style "on" way of linking to events yet. Cheers ACM
... View more
11-24-2013
11:54 PM
|
0
|
0
|
2613
|
|
POST
|
adding <system.webServer> <httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
</system.webServer> to my web.config (using IIS7 ) Helped a lot - still get the odd issue, but that cleared my main one.
... View more
11-24-2013
11:35 PM
|
0
|
0
|
2596
|
|
POST
|
Hi - anyone else ever seen this error script28 out of stack space I'm running API 3.7 on IE10, but forcing IE9 compatibility - when it happened the entire browser froze and had to be killed. Cheers ACM
... View more
11-20-2013
07:00 AM
|
0
|
7
|
4281
|
|
POST
|
Hi This Cross Origin thingy, AKA CORS has been discussed many time, however I have read those threads and none covers exactly what I am seeing. I am only seeing this issue when I make a request for a legend. The error doesn't always happen. At 3.5 it would happen a few times, 2 out of 10 start ups. When it fails my TOC breaks. So I was naughty and put a loop in to simply try again. The users didn't notice. Now, using 3.7 and IE8 I get this every time, and of course my loop goes on forever. I get XMLHttpRequest cannot load http://ARGISserver/arcgis/rest/services/LIVEinternal/aerials/MapServer/legend?f=json. The 'Access-Control-Allow-Origin' whitelists only 'http://appURL'. Origin 'http://appURL_dev' is not in the list, and is therefore not allowed access. (index):1
k {stack: "Error: Unable to load http://ARGISserver/arcgis/rest???ev/arcgis_js_api/library/3.7/3.7/init.js:3570:29)", message: "Unable to load http://ARGISserver/arcgis/rest/servic???nternal/aerials/MapServer/legend?f=json status: 0", response: Object, status: 0, responseText: ""???}
So, have I forgotten that I've set one domain onto a whitelist somewhere? I can't recall doing so. Or is it a IE policy stting I have no control over?
... View more
11-15-2013
05:32 AM
|
0
|
9
|
4656
|
|
POST
|
Hi - anyone else having issues with floating panes/non-AMD and 3.7 I've added dojo.require("dojox.layout.Dock"); As it seems to be required now, but still get "Uncaught TypeError: Cannot call method 'attr' of undefined " when it is called.
... View more
11-14-2013
03:51 AM
|
0
|
0
|
1452
|
| 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 |
a week ago
|