Select to view content in your preferred language

BasicViewer with TOC

3791
10
01-21-2013 09:20 AM
KevinMacLeod1
Frequent Contributor
The ESRI JS Basic Viewer template has a separate Layer List widget and Legend. This layer list does not group layers hierarchically. Also it seems to make sense to combine the layer list and legend.

The AGS TOC widget by poster nliu here is great, it does these both.  http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.04/examples/toc.html

Has anyone integrated this with the ESRI Basic Viewer template?

If not.. I will try to do this, and share back.
0 Kudos
10 Replies
NianweiLiu
Frequent Contributor
@dmcgill:
Your folder structure is not typical. It can work but you need know more how dojo loads. Run firebug and watch network tab you should see many red 401s. Move files to location that matches the request, normally within same folder as app.

@dlimos:
You should check Google's Term of use for details as they change from time to time. In a nut shell, if your app is publicly accessible and you are not charging user a fee you can use the free license with its quota limit, everything else, such as deploying in Intranet, requires a business license, which is charged by API load count.
0 Kudos