Select to view content in your preferred language

Sample Javascript Viewer

15958
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
NathanZgmm
New Contributor
Take a look here....

<html>
<body>

<script>
document.write("<h1>Nathan</h1>");
document.write("<p><h3>Subjects</p></h3>");
document.write("Math");
document.write("<p>50</p>");
document.write("English");
document.write("<p>70</p>");
document.write("Science" );
document.write("<p>75</p>");

document.write("Total Marks ");
first_value=100;
second_value=100;
third_value=100;
sumof=first_value+second_value+third_value;
document.write(sumof+"<br>");("Total Number");

document.write("Obtained Marks");
first_value=50;
second_value=65;
third_value=75;
sumof=first_value+second_value+third_value;
document.write(sumof+"<br>");

document.write("Percentage");
first_value=175;
second_value=300;
third_value=100;
sumof=first_value/second_value*third_value;
document.write(sumof+"%");

alert("Press ok to Enter");

</script>

</body>
</html> Learn" rel="nofollow" target="_blank">http://www.funique.co.uk/bedroom-furniture/chest-of-drawers.ht... more here
0 Kudos
JeffPace
MVP Alum
Jeff, do you have code for the one that looks similar to flex viwer?


I do, but it was been customized after 2 years of development.  Iris's sample should be closer to "stock"

http://www.mymanatee.org/gisapps/mapviewer/ is our site.

Under the "?" there is a links widget.  This lets you load our site with a variety of config files.
0 Kudos
NathanZgmm
New Contributor
Thanks for replying..
0 Kudos
MarkPaulson
Occasional Contributor
I do, but it was been customized after 2 years of development.  Iris's sample should be closer to "stock"

http://www.mymanatee.org/gisapps/mapviewer/ is our site.

Under the "?" there is a links widget.  This lets you load our site with a variety of config files.


Great site! Love what you guys have done. Just getting started, but I'm going to plagiarize you look. I'm a little chapped at ESRI for the push on arcgis online and not providing the same support as they do for the online viewer.
0 Kudos
JoshWhite
Honored Contributor
I'm a bit confused I tried out the basic viewer and I always get an error message.  I did what the template readme said and I always get the attached error.  I first tried it with my own webmap id and that didn't work so I used the one that came with the viewer and I still get the same error.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
JohnGravois
Deactivated User
try adding the Url below at line 123 of the index.html

//Modify this to point to your sharing service URL if you are using the portal
sharingurl: "http://www.arcgis.com/sharing/content/items",
//specify a group in ArcGIS.com that contains the basemaps to display in the basemap gallery
0 Kudos
MarkPaulson
Occasional Contributor
Kelly, Where do you add  in the popup info and where is the 'createMap function'?

Thanks,


Ditto on this request. I'm a neophyte and I can't figure out where the basemap is coming from after I uploaded the sample viewer to my server.

Edit: finally figured that out, but when I try to make changes, I get the sign into ArcGIS online?

Edit: figured that out, I had my rest services locked with :-/. Now I only have to figure out the popups
0 Kudos
JoshWhite
Honored Contributor
try adding the Url below at line 123 of the index.html

//Modify this to point to your sharing service URL if you are using the portal
sharingurl: "http://www.arcgis.com/sharing/content/items",
//specify a group in ArcGIS.com that contains the basemaps to display in the basemap gallery


I did eventually find this in the readme document but it was under Specify map options.  It should be under configure the application right under #3 where it tells you to put in your webmap id.  I was just trying to make sure it worked before I tried to "specify map options".  Thanks for pointing this out to me.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
JoshWhite
Honored Contributor
A new problem has come up for me.  I can't seem to pan on my Android smartphone.  I am able to zoom but not pan.  If I can't pan then there isn't much point in trying to develop a webmap for mobile.  I looked through the readme and can't find any mention of this. 

PLEASE Esri, create a viewer that is configurable for Javascript and HTML5. 

Also, I entered a URL for my geocoder and now the search box disappears. 

We need more options for Mobile.  I have a field guy using ArcGIS for Android for now but it doesn't have many options.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
KeG
by
Deactivated User
esri should create a template viewer for js. and they should base it on html5boilerplate.
0 Kudos