|
POST
|
you can't. Once you set the wkid of a map you cant switch to another unless you render dynamically. Basemaps are tiled, so you have to stay in the same spatial reference. If you want to use a custom basemap you have to either stick with it, or tiled it in ESRI's scheme
... View more
12-02-2013
10:20 AM
|
0
|
0
|
1959
|
|
POST
|
looks like that sample service is down http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/LocalGovernment/CitizenRequests/FeatureServer
... View more
12-02-2013
08:01 AM
|
0
|
0
|
1510
|
|
POST
|
If the application handles logging in, then it needs credentials some how, either with a token or hardcoded credentials.
... View more
12-02-2013
06:02 AM
|
0
|
0
|
3179
|
|
POST
|
instead of destroying,. maybe try domStyle.set(lyr, 'visibility', 'hidden'); or domStyle.set(lyr, 'display', 'none');
... View more
12-02-2013
03:56 AM
|
0
|
0
|
2551
|
|
POST
|
when you call new map with the basemap defined your application is defaulting to 102100 So you need to explicitly set your desired spatial reference to 28992, which just setting the extent does not do try
var wmsLayer = new WMSLayer(wmsURL, {
resourceInfo: resourceInfo,
visibleLayers: ['aan'],
spatialReference: new SpatialReference(28992)
});
... View more
12-02-2013
03:50 AM
|
0
|
1
|
1314
|
|
POST
|
you may have to make duplicate calls until you migrate everything over.
... View more
12-02-2013
03:37 AM
|
0
|
0
|
1296
|
|
POST
|
you always need a proxy, that is just how i hardcode credentials
... View more
11-27-2013
09:35 AM
|
0
|
0
|
3179
|
|
POST
|
Hope this helps. These are my two methods, for initializing security with or without credentials (they are called depending on whether they log in internally or externally elsewhere in my application) function initSecurity() {
//alert('in initSecurity');
serverInfo = new ServerInfo();
serverInfo.server = 'https://www.mymanatee.org';
serverInfo.tokenServiceUrl = 'https://www.mymanatee.org/arcgis/tokens/generateToken';
serverInfo.shortLivedTokenValidity = 720;
esri.id.registerServers([serverInfo]);
this.serverInfo = serverInfo;
this.hcCred = hcCred;
// dojo.subscribe(esri.id, "onTokenChange", function (){alert("changed");});
}
;
function initPredefinedSecurity() {
//alert('in initPredefinedSecurity');
var idBase = new IdentityManagerBase();
serverInfo = {
"server": "https://www.mymanatee.org",
"tokenServiceUrl": "https://www.mymanatee.org/arcgis/tokens/generateToken",
"currentVersion": 10.5,
"shortLivedTokenValidity": 720
};
var def = idBase.generateToken(serverInfo, {"username": <username>, "password": <password>});
def.addCallback(function(tokenInfo) {
hcToken = "&token=" + tokenInfo.token;
this.hcToken = hcToken;
// alert(hcToken);
});
}
;
... View more
11-27-2013
09:00 AM
|
0
|
0
|
3179
|
|
POST
|
its sounds like 10.2, while supporting webtiledlayers for print, maybe doesnt support them fully yet. Can you open a ticket with esri? Other than that we have to wait for Jian or Derek or Kelly etc.. to weight in
... View more
11-27-2013
07:36 AM
|
0
|
0
|
2479
|
|
POST
|
Yes, they are not transparent, but the tiles are all png's. The test I have used is set up with tiled layers that do not overlap. I do not know of a test 10.2 server that ESRI provides in the samples so I cannot check if it is a problem with my server. It is a newly setup 10.2 server. pngs are transparent, so that shouldnt be the problem the display correctly in the application right? how are you printing?
... View more
11-27-2013
06:22 AM
|
0
|
0
|
2479
|
|
POST
|
I have set up a 10.2 server and am trying to print a map with a Web Tiled Layer. The image produced contains the Web Tiled Layer I added to the map, but it does not have the basemap. I also have tried added multiple Web Tiled Layers to the map and it only prints the topmost tiled layer. I have tried a proxy and POST instead of GET requests. Is this normal behavior or is it an option to enable multiple tiled layer printing? my guess is they are not transparent, so it is printing them all but you can only see the top one. What format is the tile?
... View more
11-27-2013
06:12 AM
|
0
|
0
|
2479
|
|
POST
|
in your init esri.config.defaults.io.proxyUrl = 'proxy.jsp'; //path to your proxy page https://developers.arcgis.com/en/javascript/jshelp/ags_proxy.html
... View more
11-26-2013
10:25 AM
|
0
|
0
|
3179
|
|
POST
|
Yes http://resources.arcgis.com/en/help/arcgisonline/index.html#//010q000000m2000000 But remember Limitations Below are the limitations to using shapefiles in the ArcGIS.com map viewer. Compression formats other than a .zip archive are not supported. Files containing more than 1,000 features cannot be added to a map. The following features are not supported: multipatch or multipoint geometries, geometries that cross the dateline, or self-intersections in polygons. Shapefiles with these features cannot be added to a map. If your shapefile is outside this it won't work for you.
... View more
11-25-2013
08:35 AM
|
0
|
0
|
1920
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|