Does anyone know how to become a part of the beta testing program for the Javascript Viewer that ESRI is currently developing?I would like to be a part of this program so I can determine how many of my business needs can be accomplished by the viewer and how many business needs can be fulfilled by extending the widgets or building additional widgets.
updated link to our new viewerwww.mymanatee.org/gisapps/mobile/index.html
<div style="float:right;clear:both;" id="paneCloseBtn"><a title=${close_title} alt=${close_alt} href="JavaScript:hideLeftPanel();"><img src=images/closepanel.png border="0"/></a></div>
<div style="float:right;clear:both;" id="paneCloseBtn" onclick="hideLeftPanel();"><a title=${close_title} alt=${close_alt} href="#"><img src=images/closepanel.png border="0"/></a></div>
Downloaded the latest version (April 25, 2013 that points to jsapi 3.5), modified it very slightly as indicated in a post in the forum to read a web map definition in JSON format rather than pointing to a web map id from ArcGIS.com. The JSON webmap contains 1 polygon operationalLayer and the baseMapLayer. Setup the proxy to point to our site proxy. Everything else is kept as is. Results: displays the layer correctly on top of the basemap, and we are able to print successfully using the utility.arcgisonline.com Export Web Map Task. So one would conclude that everything in the application and the setup works as expected. Then I switched to our out-of-the-box ArcGIS Server 10.1 (SP1) "//<server>:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task". When attempting to print, the request gets an {"error":{"code":500,"message":"Error performing execute operation","details":[]}} (please note the level of detail returned). Using Firebug and looking at the content of the Post for the execute request, I noted that the Web_Map_as_JSON string does not contain the url of our operationalLayer. Then I proceeded to add the url into the Web_Map_as_JSON string, pasted it into the input field, and submitted the job using the Rest page for our Export Web Map Task. This was successful and I got the PDF as a response. From this we can conclude that our out-of-the-box Export Web Map Task is working properly and can access the layer of interest.Any idea as to why that is and how one can fix it?
Hi all i have upgraded the original 1.2 sample javascript viewer to 3.2 , but only the basic widgets.if any one wants the code i can send it 🙂iris hadar
var popup = new esri.dijit.Popup(null, dojo.create("div")); map = new esri.Map("map",{ basemap: "topo",//{"opacity":0.5},//streets | satellite | hybrid | topo | gray | oceans | national-geographic | osm center: [-98.10467, 38.28937], //long, lat zoom: 8, slider: true, infoWindow: popup, //showInfoWindowOnClick: false sliderStyle: 'small', wrapAround180: !configOptions.constrainmapextent, showAttribution: true, //set wraparound to false if the extent is limited. logo: !configOptions.customlogo.image //hide esri logo if custom logo is provided }); //Add Zoom Toolbar navToolbar = new esri.toolbars.Navigation(map); navToolbar.zoomToFullExtent = function () { var map = this.map; map.setExtent(map); }
Is it possible to add this toolbar to the Basic Javascript viewer:http://help.arcgis.com/en/webapi/javascript/arcgis/samples/toolbar_navigation/index.htmlif so, does it go in the layout.js file?Thanks, BIll
<style> .zoominIcon { background-image:url(images/nav_zoomin.png); width:16px; height:16px; } .zoomoutIcon { background-image:url(images/nav_zoomout.png); width:16px; height:16px; } .zoomfullextIcon { background-image:url(images/nav_fullextent.png); width:16px; height:16px; } .zoomprevIcon { background-image:url(images/nav_previous.png); width:16px; height:16px; } .zoomnextIcon { background-image:url(images/nav_next.png); width:16px; height:16px; } .panIcon { background-image:url(images/nav_pan.png); width:16px; height:16px; } .deactivateIcon { background-image:url(images/nav_decline.png); width:16px; height:16px; } </style>
<div id="webmap-toolbar-center"></div> <div id="navToolbar" data-dojo-type="dijit.Toolbar"> <div data-dojo-type="dijit.form.Button" id="zoomin" data-dojo-props="iconClass:'zoominIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_IN);}">Zoom In</div> <div data-dojo-type="dijit.form.Button" id="zoomout" data-dojo-props="iconClass:'zoomoutIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_OUT);}">Zoom Out</div> <div data-dojo-type="dijit.form.Button" id="zoomfullext" data-dojo-props="iconClass:'zoomfullextIcon', onClick:function(){navToolbar.zoomToFullExtent();}">Full Extent</div> <div data-dojo-type="dijit.form.Button" id="zoomprev" data-dojo-props="iconClass:'zoomprevIcon', onClick:function(){navToolbar.zoomToPrevExtent();}">Prev Extent</div> <div data-dojo-type="dijit.form.Button" id="zoomnext" data-dojo-props="iconClass:'zoomnextIcon', onClick:function(){navToolbar.zoomToNextExtent();}">Next Extent</div> <div data-dojo-type="dijit.form.Button" id="pan" data-dojo-props="iconClass:'panIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.PAN);}">Pan</div> <div data-dojo-type="dijit.form.Button" id="deactivate" data-dojo-props="iconClass:'deactivateIcon' ,onClick:function(){navToolbar.deactivate();}">Deactivate</div> <!--Basemap,measure,share,time and layer list tools added if enabled--> </div> </div>
dojo.require("esri.toolbars.navigation"); dojo.require("dijit.form.Button"); dojo.require("dijit.Toolbar");
navToolbar = new esri.toolbars.Navigation(map); navToolbar.zoomToFullExtent = function () { var map = this.map; map.setExtent(initialExtent); }
{ "isReference": true, "opacity": 1, "visibility": true, "url": "http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer" }], "title": "World_Terrain_Base" }
I am seeking an easy way to leverage the power of ArcGIS.com's "builder" website, but for our website running on our own server in our intranet. I see ways to achieve the functionality of webmap id with json referencing item id's. However that seems to do the same thing, call ArcGIS.com, right? I guess this is useful to over-ride individual things that were set on ArcGIS.com? Am I missing something? I do not see what the difference between referencing a single webmap id is, and referencing individual item id numbers. It still calls on ArcGIS.com. Thank you again.
We recently documented this spec here:http://resources.arcgis.com/en/help/arcgis-web-map-json/
I believe this is coming with the json representation of a webmap.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.