POST
|
Hi Artemis, Sorry for the late reply. I added the print functionality to the map and the same issue is being faced there as well. When proxy is active the print is working else the print is not working. For me the arcgis server is somewhere else.I am provided with the map service url and I am just consuming the. Thanks
... View more
02-02-2016
10:20 PM
|
0
|
0
|
2056
|
POST
|
Hi Artemis, There is one more observation I would like to share with you. I am adding this line esriConfig.defaults.io.corsEnabledServers.push("https://mapserver1.XXX.com"); When I am uncommenting this line I cannot see the layer from my server and those layers are not even coming in my TOC widget but the default arcgis layers are coming. And when I comment the layer, I can find my data on the screen but none of the layers are into TOC. Hope this will help to understand the issue better. Thanks Aditya Kumar
... View more
01-21-2016
01:04 AM
|
0
|
6
|
2056
|
POST
|
Hi Artemis, Thanks for the reply. I tried hitting the url on the server machine where the proxy is hosted and I am getting the data.
... View more
01-21-2016
12:27 AM
|
0
|
0
|
2056
|
POST
|
Hi Users, i am trying to configure the proxy but its giving me error. {error: {code: 500,message:"Unable to connect to the remote server http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson"}} At the same time if I uses http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson, it gives me result. Following is my proxy. <?xml version="1.0" encoding="utf-8" ?> <ProxyConfig allowedReferers="*" mustMatch="true"> <serverUrls> <serverUrl url="http://services.arcgisonline.com" matchAll="true"/> <serverUrl url="https://xxxxxxxxxxxx.com/ArcGIS/rest/services/Global/2D_GE_GSI_2D_SHELL/MapServer" matchAll="true"/> <serverUrl url="https://xxxxxxxxxxxxxx.com/ArcGIS/rest/services/Global/2D_GE_GSI_3D/MapServer" matchAll="true"/> <serverUrl url="https://xxxxxxxxxxxxxx.com/arcgis/rest/services/Global/2D_DREAM_EPE/MapServer" matchAll="true"/> <serverUrl url="https://xxxxxxxxxxxxxxx.com/arcgis/rest/services/Global/2D_DREAM_EPE/MapServer/3" matchAll="true"/> </serverUrls> </ProxyConfig> The version of .NET used is 4.0. I am using TOC widget in my application and here I can see the esri data coming in my TOC widget but for rest its giving error Unable to load http://www.arcgis.com/sharing/tools…bal/2D_GE_GSI_2D_SHELL/MapServer&f=json {"error":{"code":500,"message":"Unable to generate legends: Unable to update legend cache, invalid input parameters"}} I am suspecting it to be a proxy issue. Please help me on this. Thanks Aditya Kumar
... View more
01-20-2016
06:37 AM
|
0
|
11
|
7757
|
POST
|
Hi All, I was working on TOC for Javascript api where I am using the widget. http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109 But sometime the layer will come and some times its not showing.And I am confused what url to use while calling the toc widget. Following are the code I used. var dojoConfig = { packages: [{ parseOnLoad: true, name: "agsjs", "location": 'http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/latest/build/agsjs' // for xdomain load }] }; map.on('layers-add-result', function (evt) { var toc = new TOC({ map: map, layerInfos: [{ layer: Dream_2D, title: "UI-E Layer", collapsed: true, slider: true }, { layer: GSI_2D, title: "2D GIS", collapsed: true, slider: true }, { layer: GSI_3D, title: "3D GIS", collapsed: true, slider: true }, { layer: base_layer, title: "Base Layer", collapsed: true, slider: true }, { layer: satellite, title: "Satellite", collapsed: true, slider: true }, ] }, "layerList"); toc.startup(); }); Any suggestion on this will be helpful. Thanks Aditya
... View more
01-14-2016
01:15 AM
|
0
|
0
|
2254
|
POST
|
Hi Kousik, Thanks a lot.This is what I was looking for. Thanks
... View more
01-12-2016
12:53 AM
|
0
|
0
|
1157
|
POST
|
Hi Basson, Thanks for the reply. But since I am new to the technology can you help me a bit more to proceed on it. Thanks
... View more
01-07-2016
06:40 AM
|
0
|
0
|
349
|
POST
|
Hi Kousik, Thanks for the reply. Since i am a bit new to the technology I am facing issues to make a smooth flow. Can you help me a bit more on this? Thanks Aditya Kumar
... View more
01-07-2016
06:03 AM
|
0
|
2
|
1157
|
POST
|
Hi Users, I am using measurement widget to get the area and the length, but I also need to have length of the polygon which cane be achieved through area and length parameters. Any idea how to integrate it in measurement widget so that when I select the area tool and draw the polygon along with area it displays the perimeter as well. Thanks Aditya Kumar
... View more
01-06-2016
05:16 AM
|
0
|
4
|
3388
|
POST
|
Hi Tehus, Thanks for the response. But I do have other functionality like query,find where also a div comes on click of a button as well and in terms of validation anyway I need to ask the user to enter the value.
... View more
12-03-2015
06:06 AM
|
0
|
0
|
501
|
POST
|
Hi Users, i am creating a circle on the map with the following lines of code. map.on("click", function (e) { map.graphics.clear(); var circle = new Circle({ center: e.mapPoint, radius: 1000, radiusUnit: Units.MILES }); var pictureMarkerSymbol = new PictureMarkerSymbol('Images/Bufferpin.png', 25, 25); var point = new Point(e.mapPoint); var pointGraphic = new Graphic(point, pictureMarkerSymbol); map.graphics.add(pointGraphic); // figure out which symbol to use map.graphics.add(new Graphic(circle, fillSymbol)); map.setExtent(graphicsUtils.graphicsExtent(map.graphics.graphics)); queryMapService(circle); }); But I need to perform the event after loading of a div where I will assign the units and radius length. I have a button, on click of which a div opens where user can enter length and units and then on click on map the circle comes on the map. Any suggestion in this will be helpful. Thanks Aditya Kumar
... View more
12-03-2015
05:47 AM
|
0
|
2
|
2979
|
POST
|
Hi User, I have a toolbar and I have added some more tools into it. The issue is coming when I am using my added tools.By default all the other tools should get disabled when I am using any one tool.But for the tools I have added its not working. How to make it work? navToolbar = new Navigation(map); on(navToolbar, "onExtentHistoryChange", extentHistoryChangeHandler); on(map, "update-start", showLoading); on(map, "update-end", hideLoading); navToolbar = new Navigation(map); on(navToolbar, "onExtentHistoryChange", extentHistoryChangeHandler); registry.byId("zoomin").on("click", function () { navToolbar.activate(Navigation.ZOOM_IN); }); registry.byId("zoomout").on("click", function () { navToolbar.activate(Navigation.ZOOM_OUT); }); registry.byId("zoomfullext").on("click", function () { navToolbar.zoomToFullExtent(); }); registry.byId("zoomprev").on("click", function () { navToolbar.zoomToPrevExtent(); }); registry.byId("zoomnext").on("click", function () { navToolbar.zoomToNextExtent(); }); registry.byId("pan").on("click", function () { navToolbar.activate(Navigation.PAN); }); registry.byId("buffer").on("click", function () { //document.getElementById('bufferdiv').style.display = "block"; var e = document.getElementById('bufferdiv'); if (e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; }); registry.byId("identify").on("click", function () { //document.getElementById('bufferdiv').style.display = "block"; var e = document.getElementById('polygondiv'); if (e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; }); registry.byId("deactivate").on("click", function () { navToolbar.deactivate(); }); <div id="navToolbar" data-dojo-type="dijit/Toolbar"> <div data-dojo-type="dijit/form/Button" id="zoomin" data-dojo-props="iconClass:'zoominIcon'"> </div> <div data-dojo-type="dijit/form/Button" id="zoomout" data-dojo-props="iconClass:'zoomoutIcon'"> </div> <div data-dojo-type="dijit/form/Button" id="zoomfullext" data-dojo-props="iconClass:'zoomfullextIcon'"> </div> <div data-dojo-type="dijit/form/Button" id="zoomprev" data-dojo-props="iconClass:'zoomprevIcon'"> </div> <div data-dojo-type="dijit/form/Button" id="zoomnext" data-dojo-props="iconClass:'zoomnextIcon'"> </div> <div data-dojo-type="dijit/form/Button" id="pan" data-dojo-props="iconClass:'panIcon'"> </div> <input type="image" class="measure" onclick="show(titlePane)" src="http://localhost/map/measure.jpg" alt="HTML5" /> <input type="image" class="maptips" onclick="maptips()" src="http://www.computerhope.com/jargon/r/refresh.jpg" alt="HTML5" /> <!--input type="image" class="buffer" onclick="buffer()" src="http://graffitialphabet.org/letter-b/blue-graffiti-alphabet-b.jpg" alt="HTML5" /--> <div data-dojo-type="dijit/form/Button" id="buffer" data-dojo-props="iconClass:'buffer'"> </div> <div data-dojo-type="dijit/form/Button" id="identify" data-dojo-props="iconClass:'identify'"> </div> <input type="image" class="remove" onclick="map.graphics.clear(graphic)" src="http://rebuildcreditscores.com/wp-content/uploads/2013/02/charge-remove-question-from-consumer.jpg" alt="HTML5" /> <div data-dojo-type="dijit/form/Button" id="deactivate" onclick="hide(titlePane)" data-dojo-props="iconClass:'deactivateIcon'"> </div> </div> Thanks Aditya Kumar
... View more
11-27-2015
02:43 AM
|
0
|
1
|
3001
|
POST
|
Hi All, I am able to bring the list of check boxes in my map using layerlist widget. var myWidget = new LayerList({ map:map, layers: [] },"layerList"); myWidget.startup(); And its working fine. Need to add the opacity slider next to each layer. Any suggestion? Thanks Aditya Kumar
... View more
11-18-2015
11:14 PM
|
1
|
2
|
832
|
POST
|
Hi Thejus, It really worked. Thanks a lot. Aditya Kumar
... View more
11-09-2015
09:19 PM
|
0
|
0
|
1155
|
POST
|
Hi Thejus, I am sorry but its not working. map.on("load", function(){ map.graphics.enableMouseEvents(); well.on("mouse-out", closeDialog); }); Thanks
... View more
11-09-2015
06:25 AM
|
0
|
2
|
1155
|
Title | Kudos | Posted |
---|---|---|
1 | 10-07-2021 04:11 AM | |
2 | 08-19-2020 06:11 AM | |
1 | 10-25-2017 05:43 AM | |
1 | 11-18-2015 11:14 PM |
Online Status |
Offline
|
Date Last Visited |
12-08-2023
12:01 AM
|