Create a map
var map = new cs.Map('mapDiv');
map.set(0, 0, 2); //lon,lat,zoom
Try:
- use the navigation tool at the left top corner
- drag the map to navigate
- use the mousewheel to zoom in or zoom out
- shift-drag to zoom to arbitrary extents
- double click on the map to zoom in
Components:
- including smap library in the HTML header
- A div element in HTML to hold the map
- JavaScript code to create a map within the div