POST
|
Full working code: <html><head> <link rel="stylesheet" href="http://js.arcgis.com/3.13/esri/css/esri.css"> <script src="http://js.arcgis.com/3.10/"></script> <script> require([ "esri/geometry/Extent", "esri/map", "esri/layers/ArcGISTiledMapServiceLayer" ], function(Extent, Map, ArcGISTiledMapServiceLayer) { esri.config.defaults.io.proxyUrl = "proxy.ashx"; esriConfig.defaults.io.alwaysUseProxy = true; var initExtent = new esri.geometry.Extent(300000, 170000, 770000, 450000, new esri.SpatialReference({wkid: 3059})); map = new esri.Map("map",{extent:initExtent}); var basemap = new esri.layers.ArcGISTiledMapServiceLayer("XXX/MapServer"); map.addLayer(basemap); }); </script> </head> <body id="map"></body> </html> http or https protocol/same or differen API version its does not matter. Same error after v3.11. Can anyone write working example for using proxy and custom basemap that works whit newest ArcGis Javascript API?
... View more
10-25-2016
11:52 PM
|
0
|
1
|
244
|
POST
|
Only change in code are 1 number "0" to "1". Works fine: <link rel="stylesheet" href="http://js.arcgis.com/3.13/esri/css/esri.css"> <script src="https://js.arcgis.com/3.10/"></script> Does not work: <link rel="stylesheet" href="http://js.arcgis.com/3.13/esri/css/esri.css"> <script src="https://js.arcgis.com/3.11/"></script>
... View more
10-25-2016
01:43 AM
|
0
|
3
|
244
|
POST
|
After upgrading API to 3.11 (or newest) i cant load my application using proxy: "{error: {code: Forbidden,message:"Application is being used for an unsupported service... URL" status:403 require([ "esri/geometry/Extent", "esri/map", "esri/layers/ArcGISTiledMapServiceLayer" ], function( Extent, Map, ArcGISTiledMapServiceLayer ) { esri.config.defaults.io.proxyUrl = "proxy.ashx"; esriConfig.defaults.io.alwaysUseProxy = true; var initExtent = new esri.geometry.Extent(xxx, xxx, xxx, xxx, new esri.SpatialReference({wkid: xxx})); map = new esri.Map("map",{extent:initExtent}); var basemap = new esri.layers.ArcGISTiledMapServiceLayer("URL"); map.addLayer(basemap); }); How to work around?
... View more
10-24-2016
06:23 AM
|
0
|
5
|
601
|
POST
|
I am using JS Extent Helper to get extent of city example: Graphic extent json: {"xmin":2674149.43455618,"ymin":7740862.918153928,"xmax":2696354.3912729938,"ymax":7759819.301168625,"spatialReference":{"wkid":102100}} how to convert data to wkid: 3059 ?
... View more
06-16-2015
05:52 AM
|
0
|
1
|
3132
|
POST
|
second map layer. if i change "false" to "true" (or "hide" to "show") by typing it in to code, i got what i expected, but i need to make button on map, that after onClick event gona change layer visibility on/off. var ortofotokarte = new Tiled("http://127.0.0.1/MapServer"); map.addLayer(ortofotokarte); ortofotokarte.setVisibility(false); //ortofotokarte.hide();
... View more
06-01-2015
11:22 PM
|
0
|
1
|
1589
|
POST
|
How to turn visibility on/off using js onclick event: layerName.setVisibility(false);
... View more
06-01-2015
01:29 AM
|
0
|
4
|
6055
|
POST
|
How to make link that zooms map to certain point (extent) on map. I am using these two coordinates: XMin: 2667537.31 YMin: 7738182.67 XMax: 2701933.97 YMax: 7761113.78 XMin: 2392784.83 YMin: 7833439.08 XMax: 2409983.16 YMax: 7844904.64 Edit fiddle - JSFiddle
... View more
05-15-2015
04:15 AM
|
0
|
3
|
3780
|
POST
|
After pressing button map randomly zooms in, not showing my real location. I am using custom custom mapserver.
... View more
05-13-2015
06:25 AM
|
0
|
0
|
276
|
POST
|
Trying to figure it out - LocateButton does not work: http://jsfiddle.net/tikainesakinevienam/956pborp/
... View more
05-13-2015
06:10 AM
|
0
|
3
|
3678
|