Has anyone integrated this with the ESRI Basic Viewer template?
Here is a starter:
http://maps.charlottenc.gov/templates/basicviewer/?webmap=460c54f38736428fa9c3429071be07b8
It also has 2 extra things that I feel might be useful:
--Google maps as a basemap option
-- toggle labels for basemaps if available.
Here is a starter:
http://maps.charlottenc.gov/templates/basicviewer/?webmap=460c54f38736428fa9c3429071be07b8
It also has 2 extra things that I feel might be useful:
--Google maps as a basemap option
-- toggle labels for basemaps if available.
Never mind your link resource was good enough. Thanks for sharing.
How do we access the /javascript folder for that site to see the javascript source code rel linked to in the index.html? Gave me 403 forbidden.
<script type="text/javascript">
var djConfig = {
parseOnLoad: true,
packages: [{
"name": "agsjs",
"location": location.pathname.replace(/\/[^/]+$/, "") + '/agsjs/build/agsjs'
//"location": 'http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.02/xbuild/agsjs' // for xdomain load
}]
};
</script>
dojo.connect(map, 'onLayersAddResult', function (results) {
var toc = new agsjs.dijit.TOC({
map: map,
layerInfos: [{
layer: dynmap1,
title: "Signs",
slider: true
}]
}, 'tocDiv');
toc.startup();
var legend = new esri.dijit.Legend({
map: map,
layerInfos: [{ layer: dynmap1, title: "" }]
}, "legendDiv");
legend.startup();