POST
|
work around in this post http://forums.arcgis.com/threads/33882-OverView-Map-Widget-Help!?p=114928#post114928
... View more
07-06-2011
01:52 AM
|
0
|
0
|
306
|
POST
|
Right. Problem solved. For anyone else having issues using the overview map my solution is below. My problems were 1. 'esri.bundle.widgets' is null or not an object 2. 'wkid' is null or not an object 3. The overview map "arrow" disappears when the browser is refreshed All three errors were intermittent. My Work around. I downloaded a local copy of the original overView map Dijit from http://arcscripts.esri.com/details.asp?dbid=16114 and added the dijits folder to my app. Setting the modulePaths etc. Then as per normal, in my JS (this is an extract) dojo.connect(this.GISmap, 'onLayerAdd', jQuery.proxy(function() { this.afterLoad(); }, this)); afterLoad: function() { var map = this.GISmap; var createOverviewMap = function() { var overviewMapDijit = new dijits.overview.OverviewMap({ map: map, baseLayer: layerOvw, width: 200, height: 150, attachTo: "top-right", expandFactor: 2.5, color: "#000000" }); overviewMapDijit.startup(); }; if (layerOvw.loaded) { createOverviewMap(); } else { dojo.connect(layerOvw, "onLoad", createOverviewMap); } }, NOTE: layerOvw is a dynamic service defined in an external JS file. Defining it in the "afterLoad" caused the overView window to fall over. Also unlike the core API implementation, the parameters for the overView Dijit must all be specified as above. Hope this helps somebody. Cheers
... View more
07-06-2011
01:51 AM
|
0
|
0
|
343
|
POST
|
Right I thought I had this cracked but apparently not! I sometimes get one of these two errors or both 1. 'esri.bundle.widgets' is null or not an object 2. 'wkid' is null or not an object Below is my current implementation of the OverView widget. Anything I'm doing wrong? dojo.connect(this.GISmap, 'onLayerAdd', jQuery.proxy(function() {
this.afterLoad();
}, this)); afterLoad: function() {
var overviewMapDijit = new esri.dijit.OverviewMap({
map: this.GISmap,
baseLayer: layer,
visible: false,
attachTo: "top-right",
expandFactor: 2.5
});
overviewMapDijit.startup();
} I have tried other approaches including the two below but the above errors keep coming up. Any pointers please? afterLoad: function() {
if (this.GISmap.loaded) {
var overviewMapDijit = new esri.dijit.OverviewMap({
map: this.GISmap,
baseLayer: layer,
visible: false,
attachTo: "top-right",
expandFactor: 2.5
});
overviewMapDijit.startup();
}
else{
//nothing.
}
} This other approach just gives errors usual errors (but works in a simple map app!!) if (this.GISmap.loaded) {
var createOverviewMap = function() {
overviewMapDijit = new esri.dijit.OverviewMap({
map: this.GISmap,
baseLayer: layer,
visible: false,
attachTo: "top-right",
color: "#D84E13",
width: 300,
height: 250,
expandFactor: 2
});
overviewMapDijit.startup();
dojo.style(dojo.byId("status"), "display", "none");
};
if (layer.loaded) {
createOverviewMap();
}
else {
dojo.connect(layer, "onLoad", createOverviewMap);
}
} Also See http://forums.arcgis.com/threads/31709-Effectively-adding-baseLayer-to-OverView-Map?highlight=overview+map
... View more
07-01-2011
02:11 AM
|
0
|
3
|
1263
|
POST
|
Right I thought I had this cracked but apparently not! I sometimes get one of these two errors or both 1. 'esri.bundle.widgets' is null or not an object 2. 'wkid' is null or not an object Below is my current implementation of the OverView widget. Anything I'm doing wrong? dojo.connect(this.GISmap, 'onLayerAdd', jQuery.proxy(function() {
this.afterLoad();
}, this)); afterLoad: function() {
var overviewMapDijit = new esri.dijit.OverviewMap({
map: this.GISmap,
baseLayer: layer,
visible: false,
attachTo: "top-right",
expandFactor: 2.5
});
overviewMapDijit.startup();
} I have tried other approaches including the two below but the above errors keep coming up. Any pointers please? afterLoad: function() {
if (this.GISmap.loaded) {
var overviewMapDijit = new esri.dijit.OverviewMap({
map: this.GISmap,
baseLayer: layer,
visible: false,
attachTo: "top-right",
expandFactor: 2.5
});
overviewMapDijit.startup();
}
else{
//nothing.
}
} This other approach just gives errors usual errors (but works in a simple map app!!) if (this.GISmap.loaded) {
var createOverviewMap = function() {
overviewMapDijit = new esri.dijit.OverviewMap({
map: this.GISmap,
baseLayer: layer,
visible: false,
attachTo: "top-right",
color: "#D84E13",
width: 300,
height: 250,
expandFactor: 2
});
overviewMapDijit.startup();
dojo.style(dojo.byId("status"), "display", "none");
};
if (layer.loaded) {
createOverviewMap();
}
else {
dojo.connect(layer, "onLoad", createOverviewMap);
}
}
... View more
07-01-2011
02:06 AM
|
0
|
0
|
306
|
POST
|
Think I answered my own question there... I had to wait for the Layer to load. This I have done by putting the overView widget code in an if (layer.loaded){} function. thanks
... View more
06-01-2011
06:25 AM
|
0
|
0
|
306
|
POST
|
Hi Folks, I have successfully implemented the overview widget, all works great. The only snag is my main map (used in map:map) is a tiled service starting at a particular scale to the lowest zoom level. And I have a dynamic map which shows on the start of the app and hides at the scale where the tiled map kicks in. Now by default the overview widget uses the first map "layer" (in my case the tiled map) if no baseLayer parameters are provide - that works fine. Now I want to define a baseLayer such that there're quite literally two maps (the tiles and the dynamic) for the overview widget. From the documentations that I have seen, you could do this by simply going var layer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer") then setting baseLayer:layer This sometimes works, sometime I get the following error 'wkid' is null or not an object This I think have something to do with the layer definition for the baseLayer. Can anyone shed more light on this? Thanks. below is a section of what I have. dojo.connect(this.GISmap, 'onLayerAdd', jQuery.proxy(function() { this.afterLoad(); dojo.connect(dijit.byId("Map_Div"), 'resize', jQuery.proxy(this.resizeMap, this)); }, this)); afterLoad: function() { var overviewMapDijit = new esri.dijit.OverviewMap({ map: this.GISmap, baseLayer: layer, visible: false, attachTo: "top-right", expandFactor: 2.5 }); overviewMapDijit.startup(); }
... View more
06-01-2011
05:51 AM
|
0
|
3
|
4401
|
POST
|
Not quite Amethyst but it works for me... if you still an IDE either than Flex Builder check out this post http://forums.arcgis.com/threads/24861-integrating-.net-application-with-Flex-API?p=102346#post102346 Thanks to our Aussie brothers and sisters for the step by step guide Good Luck
... View more
05-17-2011
06:29 AM
|
0
|
0
|
173
|
POST
|
Check out my post here http://forums.arcgis.com/threads/24861-integrating-.net-application-with-Flex-API?p=102346#post102346 Good luck
... View more
05-17-2011
06:26 AM
|
0
|
0
|
221
|
POST
|
For anyone else looking I found this very good link from ESRI Australia http://www.esriaustralia.com.au/esri/6895.html Not quite an integration into studio but it works for me! ...and it's Free! Good Luck
... View more
05-17-2011
06:23 AM
|
0
|
0
|
252
|
POST
|
Hi, There appears to be a fair view plugins out there like Tofino http://www.ensemble.com/products/tofino.shtml and Amethyst http://www.sapphiresteel.com/Blog/Adobe-Flex-Plugin-For-Visual but there's a common problem with pretty much these and most of the others I've some across, that is getting them to work with ESRIs Flex API! See these two post http://forums.arcgis.com/threads/14632-How-to-make-these-together-vs2008%E3%80%81Tofino-Flex-plugin-and-arcgis-api-for-flex?highlight=plugin and http://forums.arcgis.com/threads/30431-Setup-Amethyst-plug-in-for-VS2008?p=102340#post102340 Don't know if you've made any headway on this but I'm still looking for some solution. Thanks
... View more
05-17-2011
02:26 AM
|
0
|
0
|
252
|
POST
|
Hi, Did you find a way of making the plugin work with the ESRI flex API? I also tried Amethyst got it to work OK but can't seem to get it to work with ESRIs Flex API Thanks
... View more
05-17-2011
02:14 AM
|
0
|
0
|
221
|
POST
|
UPDATE: Aside Amethyst, are there any other plugin for VS 2008 that one can use in conjunction with ESRI Flex API? Thanks
... View more
05-17-2011
02:05 AM
|
0
|
0
|
173
|
POST
|
Hi Flex folks, Wondering if any one could give me pointers on how to set up and run the Amethyst plug in for Visual Studio 2008. I think I've done all there is to do, got the intellisense and all and all coming through OK but can't seem to get the map to display, I'm getting 2 types of errors 1. saying the project is out of date 2. the errors below... User exception thrown (VerifyError: Error #1014: Class mx.controls.sliderClasses::Slider could not be found. at com.esri.ags::Map() at FlexApplicationThree/_FlexApplicationThree_Map1_i() at FlexApplicationThree/_FlexApplicationThree_Array1_c() ....and more Any help given would be very much appreciated. dON
... View more
05-16-2011
05:42 AM
|
0
|
2
|
606
|
POST
|
Hi Guys, I have a secure service and using the proxy pages suggested here http://forums.esri.com/Thread.asp?c=158&f=2396&t=297001 All works OK for the unsecured services on the server I'm trying to access But falls apart when I try access the secured services. I'm getting {"error":{"code":400,"message":"","details":["Unauthorized access"]}} Is there any configuration step I'm missing? This is really daft 'cos it worked well when we last used it for printing... I've placed these esri.config.defaults.io.proxyUrl = "proxy.ashx"; esri.config.defaults.io.alwaysUseProxy = true; in my init () and in the proxy I have <serverUrl url="http://MYSERVER/ArcGIS/rest/services/Secure/MYSERVICE/MapServer" matchAll="false" dynamicToken="true" host="gis.MyCOMPANY.org.YYY" //**had http here but no joy userName="someName" password="somePassword"></serverUrl> Anything I'm missing? Thanks dON
... View more
02-09-2011
02:20 AM
|
0
|
4
|
759
|
POST
|
Hi Folks, A couple of quick questions on the legend widget. 1. Is it backward compatible? That is would it support services created using Server 9.3.1? We haven't upgraded to Server 10 yet. 2. Does it support Secure Services? Our services are secured and hence tokens are appended to the end of the Service URL. Will this widget support that? Happy if someone could help with this. Cheers
... View more
11-22-2010
01:37 AM
|
0
|
0
|
355
|
Online Status |
Offline
|
Date Last Visited |
03-21-2023
06:55 PM
|