First stage, using example script to create basic map:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=, maximum-scale=1,user-scalable=no"/>
<title></title>
<link rel="stylesheet" href="
http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="
http://js.arcgis.com/3.9/js/esri/css/esri.css">
<style>
html, body { height: 110%; width: 100%; margin: 0; padding: 0; }
#map{
padding:0;
}
</style>
<script src="
http://js.arcgis.com/3.9/"></script>
<script>
var map;
require([
"esri/map", "esri/dijit/BasemapGallery", "esri/arcgis/utils",
"dojo/parser",
"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/TitlePane",
"dojo/domReady!"
], function(
Map, BasemapGallery, arcgisUtils,
parser
) {
/* Parser for now disabled, because of problem in Nettalk form */
/* parser.parse(); */
map = new Map("map", {
basemap: "topo",
center: [16.83333, 45.902345],
zoom: 13
});
var basemapGallery = new BasemapGallery({
showArcGISBasemaps: true,
map: map
}, "basemapGallery");
basemapGallery.startup();
basemapGallery.on("error", function(msg) {
console.log("basemap gallery error: ", msg);
});
});
</script>
</head>
<body class="claro">
<div data-dojo-type="dijit/layout/BorderContainer"
data-dojo-props="design:'headline', gutters:true "
style="width:90%;height:90%;margin:0;">
<div id="map"
data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'center'"
style="padding:0;">
<div style="position:absolute; right:20px; bottom:1px; z-Index:50;">
<div data-dojo-type="dijit/TitlePane"
data-dojo-props="title:'Promijeni layer', closable:false, open:false">
<div data-dojo-type="dijit/layout/ContentPane" style="width:450px; height:350px; overflow:auto;">
<div id="basemapGallery" ></div></div>
</div>
</div>
</div>
</div>
</body>
</html>
Second stage will be to put some markers onto map and grabbing information from the pointer
[attachment deleted by admin]