From: <cph...@us...> - 2006-03-11 23:08:24
|
Revision: 16 Author: cphillip Date: 2006-03-11 15:08:22 -0800 (Sat, 11 Mar 2006) ViewCVS: http://svn.sourceforge.net/wnmap/?rev=16&view=rev Log Message: ----------- Add a scale control in the initial map setup. * web/js/nodemap.js (createMap): Add a scale control to the map. Modified Paths: -------------- trunk/web/js/nodemap.js Modified: trunk/web/js/nodemap.js =================================================================== --- trunk/web/js/nodemap.js 2006-03-11 23:06:18 UTC (rev 15) +++ trunk/web/js/nodemap.js 2006-03-11 23:08:22 UTC (rev 16) @@ -22,6 +22,7 @@ map.addControl(new GLargeMapControl()); map.addControl (new GMapTypeControl()); map.centerAndZoom(new GPoint(SWNCFG_MAP_START_LON, SWNCFG_MAP_START_LAT), parseInt(SWNCFG_MAP_START_ZOOM)); + map.addControl(new GScaleControl()); map.registerKeyHandlers (window); // Set default map type to SWNCFG_MAP_START_TYPE This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |