Select to view content in your preferred language

Sample Javascript Viewer

15923
72
05-27-2010 12:26 PM
ChristianSmith
Deactivated User
Does anyone know if the sample viewer team plans to upgrade, change / modify the JS sample viewer in the near future ?

Thanks

Smitty
0 Kudos
72 Replies
TrevorWeiland
Regular Contributor
Derek,
  I'm looking at a download of the basic viewer hosted on my local server right now it is the epitome of what my previous post talked about.  It is way too dependent on internet connectivity for each of the clients- the first 25 lines are filled with references to externally hosted API links.  Without severe modifications ( excising all external calls), it cannot replicate the stand-alone SFV as the old JS Viewer could. 

The Portal might be an option �?? depending on price and cost to implement.  However, the SFV seems to be the right answer for now but I feel like I'm sinking ever more development costs into a doomed product (Flash) and my alternatives are worse (although simply learning enough JS to build an Viewer from scratch may be worth it in the long run).
0 Kudos
JeffPace
MVP Alum
As I said, we have spent about a year extensively modifying the original Sample Viewer.  It runs completely internally, as well as to the public, all from one server.

http://www.mymantee.org/gisapps/mapviewer/
0 Kudos
hcgis
by
Deactivated User
Hi jeff
your link doesn't work can you provide a new link
Please 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 ......
0 Kudos
JeffPace
MVP Alum
Hi jeff
your link doesn't work can you provide a new link
Please 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 ......


wow sorry typo

http://www.mymanatee.org/gisapps/mapviewer/index.jsp?type=defualt
0 Kudos
NianweiLiu
Frequent Contributor
There were some votes on ideas.esri.com on this topic and even a "workspace" setup for it. Out of curiosity I requested access to it but there is nothing in the workspace. Makes me wonder if it is lack of need, interest, or resource.

Making the portal/arcgis.com viewer available for customization would be a quick win, I would be interested to know what's the barrier of preventing that from happening, is it supportability, licensing concern, or something else that end users are not supposed to know?
0 Kudos
hcgis
by
Deactivated User
thanks Jeff
what about integrating the viewer in aspx page
Another question: i want to hide the widget on top right (widgetcontroller with 3 buttons ) when starting or when no widget is opened and show it when i open a widget
many thanks
0 Kudos
JeffPace
MVP Alum
I wouldnt put in aspx, but that is just a preference.

Hiding the widgetcontainer should be easy.

1: in the WidgetContainer,html add an id to line 2 and set to hidden for startup
<div class="widgetContainerControls widgetBox" id="wc" style="display:none;">

2: in WidgetContainer.js add code to toggle in opening and closing widgets
in onShowWidget
under if (widget)
...
if (widget) {
    dojo.style(dojo.byId("wc"),"display","block"); //if new widget, show controls

in closeWidget before the for loop add
 //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++) {
...
0 Kudos
hcgis
by
Deactivated User
thanks Jeff it works
0 Kudos
JeffPace
MVP Alum
anytime.  Glad to help.

Do you have a link to your site?
0 Kudos
hcgis
by
Deactivated User
hi  Jeff
we still in development phase and we will publish it soon
0 Kudos