Hi,we currently have no plans to update the ArcGIS API for Javascript Viewer Sample. This sample was posted early as an unsupported viewer. I encourage you to have a look at the ArcGIS.com Javascript Viewer. See recent blog post here.Ismael ChiviteArcGIS Server Product ManagerEsri
Hi jeffyour link doesn't work can you provide a new linkPlease can you help me to solve this : i want to put the viewer in a div in aspx page and i want to interact between page events and the viewer itself: for example by clicking on a button in the aspx page i can add a marker on the map, change map extent, zooming to feature and all other map events ......
<div class="widgetContainerControls widgetBox" id="wc" style="display:none;">
... if (widget) { dojo.style(dojo.byId("wc"),"display","block"); //if new widget, show controls
//last child if(children.length== 1){ dojo.style(dojo.byId("wc"),"display","none"); //just closed last widget, hide controls } //existing code for (var i = 0; i < children.length; i++) { ...
iris hadarCan you provide the updated javascript viewer? Appreciate!!!.lee
Yes Iris Hadar if you can post example code, you will be a hero for many of us! Thank you for your contribution.We also need to create a basic GIS viewer website. We need to convert an existing site from Flex to a Javascript and HTML5 based site. The Basic Viewer JavaScript Template is excellent. Only one problem as many others here have noted. It depends on ArcGIS.com. I am working on and researching trying to make this template work locally.We need to switch it to point only to our servers and get rid of any external dependencies and links (i.e. to ArcGIS.com)
I hope everyone is aware that we are talking about to very different viewers here.the one Kelly posted is a version of the (more) recently released Basic viewer that removes the arcgis.com dependencies.The one Iris was talking about was the original 1.2 api Javascript Sample Viewer (looks similiar to the Flex viewer).
I've attached a simplified version of the basic viewer that doesn't use an arcgis.com web map. Note that you'll have to add back in popups for layers and if your layers are editable or time-aware you'd have to add logic in to handle that functionality too. Take a look at the createMap function to see how the template was modified.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.