POST
|
I am using following code in sandbox. There is a picturemarkersymbol which displays ESRI logo. These snaps are taken in series <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>3D Graphics - 4.0beta2</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.0beta2/esri/css/main.css">
<script src="https://js.arcgis.com/4.0beta2/"></script>
<style>
html,
body {
padding: 0;
margin: 0;
}
</style>
<script>
require([
"esri/Map",
"esri/views/SceneView",
"esri/Camera",
"esri/layers/GraphicsLayer",
"esri/Graphic",
"esri/geometry/Point",
"esri/geometry/Polyline",
"esri/geometry/Polygon",
"esri/symbols/SimpleMarkerSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/symbols/SimpleFillSymbol",
"esri/symbols/PictureMarkerSymbol",
"dojo/domReady!"
],
function(
Map, SceneView, Camera, GraphicsLayer,
Graphic, Point, Polyline, Polygon,
SimpleMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol, PictureMarkerSymbol
) {
var map = new Map({
basemap: "hybrid"
});
var view = new SceneView({
container: "viewDiv",
map: map,
camera: new Camera({
position: new Point({
x: -0.17746710975334712,
y: 51.44543992422466,
z: 1266.7049653716385
}),
heading: 0.34445102566290225,
tilt: 82.95536300536367
})
});
/*********************
* Add graphics layer
*********************/
var graphicsLayer = new GraphicsLayer();
map.add(graphicsLayer);
/*************************
* Add a 3D point graphic
*************************/
// London
var point = new Point({
x: -0.178,
y: 51.48791,
z: 1000
}),
markerSymbol = new PictureMarkerSymbol({
//url: "https://developers.arcgis.com/javascript/graphics/tailcoat/integration-hexicon.png"
url: "https://developers.arcgis.com/javascript/graphics/tailcoat/logo-esri-footer.jpg",
width: 250,
height: 250
});
var pointGraphic = new Graphic({
geometry: point,
symbol: markerSymbol
});
graphicsLayer.add(pointGraphic);
/****************************
* Add a 3D polyline graphic
****************************/
var polyline = new Polyline([
[-0.178, 51.48791, 0],
[-0.178, 51.48791, 1000]
]),
lineSymbol = new SimpleLineSymbol({
color: [226, 119, 40],
width: 4
});
var polylineGraphic = new Graphic({
geometry: polyline,
symbol: lineSymbol
});
graphicsLayer.add(polylineGraphic);
/***************************
* Add a 3D polygon graphic
***************************/
var polygon = new Polygon([
[-0.184, 51.48391, 400],
[-0.184, 51.49091, 500],
[-0.172, 51.49091, 500],
[-0.172, 51.48391, 400],
[-0.184, 51.48391, 400]
]),
fillSymbol = new SimpleFillSymbol({
color: [227, 139, 79, 0.8],
outline: new SimpleLineSymbol({
color: [255, 255, 255],
width: 1
})
});
var polygonGraphic = new Graphic({
geometry: polygon,
symbol: fillSymbol
});
graphicsLayer.add(polygonGraphic);
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html> When I tilt it vanishes When I change camera It comes back Now it vanishes again upon zooming out it comes back again when I tilt down it appears down and vanish it goes comes again same goes when I use the picturemarkersymbol with a local path.
... View more
12-10-2015
03:27 AM
|
0
|
1
|
2717
|
POST
|
click on a line and it would highlight the flow line all the way to the destination, Feature service and editing does it by default geometric networks and network analyst to do something like this These tools work with Arc Desktop and can be exposed to client on map using GP tools. how will I end up getting this in the client's hands(they have no GIS software) But I assume that you have ArcGIS server licence and you are legally allowed to publish and make your clients consume it. Will it have to be some web based app, Yes or is there some type of free viewer? Free Viewers are available which require no code at client end to accomplish your task provided your services are ready. will it involve some type of scripting to make it work Javascript and ActionScript Look at my above paragraph like I want or is this type of functionality built in to ArcGIS and they're web app system Silverlight ActionScript JavaScript -- Famous and future of rest of all Lastly should I be attempting to do this using ArcGIS or ArcMap? ArcGIS is the name of the suite while ArcMap is a software in it that deals with creation, edition, manipulation and publishing of data. There are a lot of questions. To best of my knowledge and description provided by you I would like to go with Web app. 1. Create a Feature service using ArcGIS Server. 2. Publish it on a location where your clients can access it. 3. Create a web app and use Web Editing Functionality provided by almost all ESRI Web Mapping APIs to allow clients to edit and explore them.
... View more
12-09-2015
09:08 PM
|
0
|
0
|
183
|
POST
|
Is your KML publicly accessible? Because according to API Docs Note: The KMLLayer uses a utility service from ArcGIS.com, therefore your kml/kmz must be publicly accessible on the internet. If your kml/kmz files are behind the firewall you will need to set the esriConfig.defaults.kmlService to your own utility service. (Requires Portal for ArcGIS). require(["esri/config"], function(esriConfig) {
esriConfig.defaults.kmlService = "http://www.example.com/arcgis/sharing/kml";
});
... View more
12-09-2015
08:57 PM
|
0
|
0
|
218
|
POST
|
Is your KML file publicly accessible? because according to API Docs Note: The KMLLayer uses a utility service from ArcGIS.com, therefore your kml/kmz must be publicly accessible on the internet. If your kml/kmz files are behind the firewall you will need to set the esriConfig.defaults.kmlService to your own utility service. (Requires Portal for ArcGIS). require(["esri/config"], function(esriConfig) {
esriConfig.defaults.kmlService = "http://www.example.com/arcgis/sharing/kml";
});
... View more
12-09-2015
08:55 PM
|
0
|
0
|
229
|
POST
|
Have a look at https://html2canvas.hertzen.com/examples.html
... View more
12-09-2015
08:49 PM
|
0
|
1
|
478
|
POST
|
To launch a print dialog in Chrome with a click of a button use: print(); function to do the trick.
... View more
12-09-2015
02:11 AM
|
0
|
5
|
478
|
POST
|
Is it possible to create two parallel lines using single polyline geometry? var polyline = new Polyline([
[33, 71, 0],
[32, 70, 1000],
[30, 66, 0],
[31, 73, 1000]
]); This creates a single connected line. How can I draw a 2 lines one from [33, 71, 0],
[32, 70, 1000] and other from [30, 66, 0],
[31, 73, 1000] using same graphic and polyline geometry. Any help would be highly appreciated.
... View more
12-09-2015
01:50 AM
|
0
|
2
|
4164
|
POST
|
Have you tried it in scene view? I want it in SceneView. I gave it try and it is not working for me. <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>4.0beta2</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.0beta2/esri/css/main.css">
<script src="https://js.arcgis.com/4.0beta2/"></script>
<style>
html,
body {
padding: 0;
margin: 0;
}
</style>
<script>
require([
"esri/Map",
"esri/views/SceneView",
"esri/layers/ArcGISTiledLayer",
"dojo/domReady!"
],
function(
Map, SceneView, ArcGISTiledLayer
) {
var layer = new ArcGISTiledLayer({
url: "http://services.arcgisonline.com/arcgis/rest/services/ESRI_Imagery_World_2D/MapServer"
});
var map = new Map({
layers: [layer] // This isnt working
});
var view = new SceneView({
container: "viewDiv",
map: map
});
//map.add(layer); //neither this
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
12-08-2015
10:02 AM
|
0
|
2
|
615
|
POST
|
These are two different layers tried to render in Beta 4 one by one. I have huge data cached as WGS84 but Beta 4 does not seems to render it. I guess WGS 84 is not supported.
... View more
12-08-2015
08:47 AM
|
0
|
4
|
615
|
POST
|
ArcGIS API for JS v3.14 uses SVG to create graphics on map. These SVGs can be inspected using developer tools in browsers but graphics drawn in 4.0 beta can not be inspected because they use WebGL. I wanted to know how 4.0 Beta draws graphics internally.I want to get drawing context for graphics or symbol so that I can use WebGL techniques to draw complex shapes. Any help would be appreciated Thanks
... View more
12-08-2015
01:25 AM
|
0
|
0
|
2637
|
POST
|
This layer World_Terrain_Base (MapServer) having properties Full Extent: XMin: -2.0037507067161843E7 YMin: -1.9971868880408604E7 XMax: 2.0037507067161843E7 YMax: 1.997186888040863E7 Spatial Reference: 102100 (3857) Units: esriMeters loads but my layer having properties Spatial Reference: GEOGCS["Geographic Coordinate System",DATUM["D_WGS84",SPHEROID["WGS84",6378137.0,298.257223560493]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]] Units: esriDecimalDegrees does not load. Is WGS84 supported in ArcGIS API for JS Beta 2? or there is something else that I am missing. Thanks
... View more
12-03-2015
03:42 AM
|
0
|
7
|
3214
|
POST
|
I meant to say that it is not present in API docs yet
... View more
12-01-2015
09:48 PM
|
0
|
0
|
747
|
POST
|
I am repeating my answer that In My Humble Opinion it is negative that a VectorTileLayer can deal with KML/KMZ. It can not display KML/KMZ. Furthermore ArcGIS API for JS 3.14 uses "esri/layers/KMLLayer" class to display KML/KMZ and it is not present in Beta 2. If you have simple KML/KMZ files you should write simple wrapper to parse your KMLs/KMZs to primitive beta 2 symbols.
... View more
11-30-2015
06:18 AM
|
0
|
0
|
747
|
Title | Kudos | Posted |
---|---|---|
1 | 02-18-2016 11:31 PM | |
1 | 03-21-2015 11:17 PM | |
1 | 03-18-2015 09:50 PM | |
1 | 05-10-2015 04:00 AM | |
1 | 02-23-2017 09:33 PM |
Online Status |
Offline
|
Date Last Visited |
06-12-2021
10:07 AM
|