Skip to content

A widget created from the ESRI ArcGIS JavaScript API Navigation sample.

Notifications You must be signed in to change notification settings

tr3vorm/ArcGIS_JS_NavigationTools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A widget created as an addition to David Spriggs Configurable Map Viewer, aka CMV. Designed for use in his project using the file structure indicated there. Original source code was from this ESRI sample https://developers.arcgis.com/javascript/jssamples/toolbar_navigation.html which was a single html page. ArcGIS_JS_NavigationTools is in widget format with seperate css, html, and javascript files for CMV.

Please see this projects [how-to Wiki] (https://github.com/friendde/ArcGIS_JS_NavigationTools/wiki/How-to-add-widget-to-CMV) for details on how to configure CMV to load this widget.

NavToolbar

navtoolsscreenshot

Adding to CMV

panes: {
	// left: {
	// 	splitter: true
	// },
	// right: {
	// 	id: 'sidebarRight',
	// 	placeAt: 'outer',
	// 	region: 'right',
	// 	splitter: true,
	// 	collapsible: true
	// },
	// bottom: {
	// 	id: 'sidebarBottom',
	// 	placeAt: 'outer',
	// 	splitter: true,
	// 	collapsible: true,
	// 	region: 'bottom'
	// },
	top: {
		id: 'sidebarTop',
		placeAt: 'outer',
		collapsible: true,
		region: 'top'
	}
},
widgets: {
	navtools: {
    		include: true, // false will not load widget
    		id: 'navtools',
    		type: 'contentPane', // can be titlePane
    		canFloat: false, // if titlePane, can use true
    		path: 'gis/dijit/NavTools',
    		title: 'Navigation Tools', // title appears if titlePane
    		open: false, // this value is used for titlePane
    		position: 0, // use your position value as needed
    		placeAt: 'top', // top looks best if contentPane, your choice
    		options: { // map and mapClickMode are required to use the widget
        		map: true, // true required
	        	mapClickMode: true // true required
    		}
	},

About

A widget created from the ESRI ArcGIS JavaScript API Navigation sample.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published