|
POST
|
Filip, I would suggest using the AMD style in your javascript app. Here is a little example.
<!DOCTYPE html>
<html>
<head>
<title>Create a Map</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<link rel="stylesheet" href="http://js.arcgis.com/3.10/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.10/js/esri/css/esri.css">
<style>
html, body, #mapDiv{
padding: 0;
margin: 0;
height: 100%;
}
</style>
<script src="http://js.arcgis.com/3.10/"></script>
<script>
var map;
require(["esri/map", "esri/dijit/Scalebar", "dojo/on", "dojo/domReady!"], function(Map, Scalebar, on) {
map = new Map("mapDiv", {
center: [-56.049, 38.485],
zoom: 3,
basemap: "streets"
});
//Create the Scalebar
var scalebar = new Scalebar ({
map: map,
attachTo: "top-right"
});
// When clicked on map scale bar will disappear
map.on("click", clickHandler);
function clickHandler(){
scalebar.hide();
};
});
</script>
</head>
<body class="claro">
<div id="mapDiv"></div>
</body>
</html>
Hope this helps!
... View more
07-31-2014
08:23 AM
|
2
|
4
|
1774
|
|
DOC
|
Is this one of those magic eye pictures? I think once I stare long enough I see a ESRI logo.
... View more
07-31-2014
06:54 AM
|
2
|
0
|
1446
|
|
BLOG
|
Es ist immer gut zu sehen das ArcGIS Online jedes Jahr besser wird und eine preisguenstige alternative zu ArcServer/ArcGIS Desktop wird. Mit ein paar Klicks ist dies ein sehr gelungenes Projekt. Gute Arbeit!
... View more
07-31-2014
05:37 AM
|
0
|
0
|
133
|
|
DOC
|
Hallo zusammen, Da ich in den USA studiert habe und hier nun als GIS Analyst arbeite, habe ich keine Ahnung wie GIS jobs in Deutschland heissen und ob GIS kenntnisse in Deutschland begehrenswert sind. Es wuerde mich schon reizen nach Deutschland zurueckzukehren. Wie heissen die GIS Stellen in Deutschland? Gibt es Webseiten, auf welche GIS Arbeitgeber posten? (z.b. wie gjc.org in den USA) Ist ESRI Marktfuehrer in Deutschland und welche andere Programme werden genutzt? Bitte hinterlasst einen Kommentar und ich werde die Informationen zu diesem Dokument hinzufuegen. Jede Information ist hilfreich!!!! Gruss Tim Webseiten: Google Groups , Digital Geography ,greenjobs.de > Angebote > Übersicht ,geojobs.de , Jobs - Geosecure , Esri Deutschland | Jobs ,GIS Jobs – GISWiki , Stellen: GIS Programme: ESRI, GISPAD, QGIS, SpatialCommander
... View more
07-31-2014
05:25 AM
|
0
|
8
|
2324
|
|
POST
|
Yeah there is something weird going on. When I comment out the save button, everything looks fine. There seems to be a placement issue.
... View more
07-30-2014
10:58 AM
|
0
|
0
|
870
|
|
POST
|
Alina, to stop the grey hair madness, read here! All you need is a field that tells you how many fish are at a location. Tim
... View more
07-30-2014
05:41 AM
|
0
|
2
|
912
|
|
POST
|
You can see them all here: Marker Symbols Your link goes to all the symbols and not a specific one.
... View more
07-29-2014
11:52 AM
|
0
|
1
|
485
|
|
POST
|
You could fire an event that shows your image on update-start and then remove the image on update-end.
... View more
07-29-2014
11:38 AM
|
0
|
0
|
1444
|
|
POST
|
Jay, You can get the html of symbols here: Marker Symbols A pushpin for example is this
var pointexample = new PictureMarkerSymbol('http://static.arcgis.com/images/Symbols/Basic/RedStickpin.png', 20, 20);
and use the picturemarkersymbol-amd | API Reference | ArcGIS API for JavaScript class. Tim
... View more
07-29-2014
10:13 AM
|
1
|
2
|
2632
|
|
POST
|
Welcome Missy, ESRI has a lot of free training videos that can be found here. I would start with this video: Esri Training | Getting Started with GIS Hope this helps!!! Tim
... View more
07-29-2014
06:53 AM
|
5
|
1
|
1573
|
|
POST
|
You should be able to specify it in your python code using the following code: import arcpy
arcpy.env.scratchWorkspace = "c:/LandUse/ForestCover" Hope this helps! Tim
... View more
07-28-2014
07:08 AM
|
1
|
0
|
3009
|
|
POST
|
You are right it has to do with an array. It trys to cycle through your add.Layers array, but when you don't use [], there is no array.
... View more
07-28-2014
06:54 AM
|
0
|
2
|
1953
|
|
POST
|
Donald, After line 59 add:
if (layerInfo.length > 0) {
After line 64 add:
}
and replace 66 with:
map.addLayers([rivers]);
Whatever you have as your rivers layer will show up in your Legend. Hope this answers your question. Tim
... View more
07-28-2014
06:14 AM
|
0
|
4
|
1953
|
|
POST
|
Chris, you should start using the following code (AMD), the code you are using is legacy, which will soon " go away".
<!DOCTYPE html>
<html>
<head>
<title>Create a Map</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<link rel="stylesheet" href="http://js.arcgis.com/3.10/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.10/js/esri/css/esri.css">
<style>
html, body, #mapDiv{
padding: 0;
margin: 0;
height: 100%;
}
</style>
<script src="http://js.arcgis.com/3.10/"></script>
<script>
var map;
require(["esri/map", "dojo/domReady!"], function(Map) {
map = new Map("mapDiv", {
center: [-56.049, 38.485],
zoom: 3,
basemap: "streets"
});
});
</script>
</head>
<body class="claro">
<div id="mapDiv"></div>
</body>
</html>
Hope this helps! Tim
... View more
07-25-2014
12:38 PM
|
0
|
1
|
1034
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-06-2015 06:58 AM | |
| 1 | 05-04-2016 07:27 AM | |
| 1 | 07-06-2017 08:12 AM | |
| 1 | 10-26-2015 11:51 AM | |
| 1 | 12-12-2014 12:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|