|
POST
|
yes All of them are 102100 wkid and have cash. my feature service and my ground are on 10.5 and my basemap is on 10.2.2
... View more
12-31-2017
10:55 PM
|
0
|
0
|
1277
|
|
POST
|
ok, but when I use my own map service for ground and base map the search tools can not navigate to result!!! { var ExaggeratedElevationLayer = BaseElevationLayer.createSubclass({ properties: { exaggeration: 2.5 }, // The load() method is called when the layer is added to the map // prior to it being rendered in the view. load: function() { this._elevation = new ElevationLayer({ url: "http://localhost:6080/arcgis/rest/services/dem_90/ImageServer" }); // wait for the elevation layer to load before resolving load() this.addResolvingPromise(this._elevation.load()); }, // Fetches the tile(s) visible in the view fetchTile: function(level, row, col) { // calls fetchTile() on the elevationlayer for the tiles // visible in the view return this._elevation.fetchTile(level, row, col) .then(function(data) { var exaggeration = this.exaggeration; // `data` is an object that contains the // the width of the tile in pixels, // the height of the tile in pixels, // and the values of each pixel data.values.forEach(function(value, index, values) { // each value represents an elevation sample for the // given pixel position in the tile. Multiply this // by the exaggeration value values[index] = value * exaggeration; }); return data; }.bind(this)); } }); /***************************************************************** * Create two TileLayer instances. One pointing to a * cached map service depicting U.S. male population and the other * pointing to a layer of roads and highways. *****************************************************************/ var transportationLyr = new TileLayer({ url: "http://localhost:6080/arcgis/rest/services/new/MapServer", // This property can be used to uniquely identify the layer id: "streets", visible: false }); var housingLyr = new TileLayer({ url: "http://localhost:6080/arcgis/rest/services/land/MapServer", id: "ny-housing", opacity: 0.3 }); /***************************************************************** * Layers may be added to the map in the map's constructor *****************************************************************/ var map = new Map({ ground: { layers: [ new ExaggeratedElevationLayer() ] } }); /***************************************************************** * Or they may be added to the map using map.add() *****************************************************************/ map.add(transportationLyr); var view = new SceneView({ container: "viewDiv", map: map }); map.add(housingLyr); var search = new Search({ sources: [{ featureLayer: new FeatureLayer("http://localhost:6080/arcgis/rest/services/city/FeatureServer/0", { outFields: ["*"] //notice you should not have a trailing comma if there is nothing else after the last property. }), outFields: ["town"], displayField: "town", name: "town", placeholder: "example: texas", zoomScale:100000, maxResults:6, maxSuggestions:120, autoNavigate: true, supportsPagination: true, }], view: view }, "search"); // Add the search widget to the top right corner of the view view.ui.add(search, { position: "top-right" }); /***************************************************************** * The map handles the layers' data while the view and layer views * take care of renderering the layers *****************************************************************/ view.on("layerview-create", function(event) { if (event.layer.id === "ny-housing") { // Explore the properties of the population layer's layer view here console.log("LayerView for male population created!", event.layerView); } if (event.layer.id === "streets") { // Explore the properties of the transportation layer's layer view here // Explore the properties of the transportation layer's layer view here console.log("LayerView for streets created!", event.layerView); } }); /***************************************************************** * Layers are promises that resolve when loaded, or when all their * properties may be accessed. Once the population layer has loaded, * the view will animate to it's initial extent. *****************************************************************/ view.when(function() { housingLyr.when(function() { view.goTo(housingLyr.fullExtent); }); }); var streetsLyrToggle = dom.byId("streetsLyr"); /***************************************************************** * The visible property on the layer can be used to toggle the * layer's visibility in the view. When the visibility is turned off * the layer is still part of the map, which means you can access * its properties and perform analysis even though it isn't visible. *******************************************************************/ on(streetsLyrToggle, "change", function() { transportationLyr.visible = streetsLyrToggle.checked; });
... View more
12-31-2017
09:02 PM
|
0
|
29
|
1277
|
|
POST
|
I changed it but didnt work!!: var search = new Search({ sources: [{ featureLayer: new FeatureLayer("https://services.arcgis.com/b6gLrKHqgkQb393u/arcgis/rest/services/TaxParcelQuery/FeatureServer/0", { outFields: ["*"], }), outFields: ["OWNERNME1","PARCELID","SITEADDRESS"], displayField: "OWNERNME1", name: "Parcels", placeholder: "example: Shawn Smith", enableSuggestions: true }], view: view }, "search"); search.startup();
... View more
12-31-2017
08:16 AM
|
0
|
31
|
1277
|
|
POST
|
Hi I,m using search widget in 3d view by 4.6 version , but I can not use my feature service!! why? this is my sample: var search = new Search({
sources: [{
featureLayer: new FeatureLayer("https://services.arcgis.com/b6gLrKHqgkQb393u/arcgis/rest/services/TaxParcelQuery/FeatureServer/0", {
outFields: ["*"],
infoTemplate: new InfoTemplate("Parcels", "Owner name: ${OWNERNME1}</br>Parcel ID: ${PARCELID}</br>Site address: ${SITEADDRESS}")
}),
outFields: ["OWNERNME1","PARCELID","SITEADDRESS"],
displayField: "OWNERNME1",
suggestionTemplate: "${PARCELID}: ${SITEADDRESS}",
name: "Parcels",
placeholder: "example: Shawn Smith",
enableSuggestions: true
}],
view: view
}, "search");
search.startup();
... View more
12-31-2017
02:15 AM
|
0
|
34
|
4364
|
|
POST
|
Hi I,m using api 4.6 and i,m going to replace esri base map with my own tilled map service. I used tiled setting but it can not load my map service!!: // Add the exaggerated elevation layer to the map's ground // in place of the default world elevation service var map = new Map({ var housingLyr = new TileLayer({ url: "https://tiles.arcgis.com/tiles/nGt4QxSblgDfeJn9/arcgis/rest/services/New_York_Housing_Density/MapServer" }); ground: { layers: [ new ExaggeratedElevationLayer() ] } }); var view = new SceneView({ container: "viewDiv", viewingMode: "global", map: map,
... View more
12-26-2017
02:22 AM
|
0
|
1
|
692
|
|
POST
|
Hi Thnks, but I saw a geocode url in the above sample. how we can generat new one?
... View more
12-18-2017
07:28 AM
|
0
|
3
|
1452
|
|
POST
|
Thanks How we can use UTM coordinate instead of MGRS in this sample ?
... View more
12-17-2017
09:43 AM
|
0
|
5
|
1452
|
|
POST
|
is there any sample for go to x y ? I need a sample that user can change wkid manual and go to x y ..
... View more
12-17-2017
12:58 AM
|
0
|
8
|
2247
|
|
POST
|
Hi Yes it was related to array. thanks ... One more thing: 1-How we can use a button to call mouse event, now the tools works by any mouse click but I,m going to have a button to push it and then can add new incident points... 2- why the tools dont return length(Meters or km) and time of direction? 3- I need a of button to add new facility points by user click
... View more
12-15-2017
08:29 PM
|
0
|
0
|
1123
|
|
POST
|
hi This is my code: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=yes"> <title>map</title> <link rel="stylesheet" href="https://js.arcgis.com/3.22/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="https://js.arcgis.com/3.22/esri/css/esri.css"> <style> html, body,html,#main{margin:0;padding:0;height:100%;width:100%;} #map { border: solid 1px #B5BCC7; padding: 0; } </body> </html>
... View more
12-15-2017
11:12 AM
|
0
|
2
|
1123
|
|
POST
|
I can add facility and incident and show those on the map, then I checked by firebug and found the direction is solved completely but sample can not show it on the map!!!
... View more
12-15-2017
01:29 AM
|
0
|
4
|
1123
|
|
POST
|
Hi I,m using closest facility sample, but the sample can not show direction when I use my own require and function code. please help me... <script> var map,params, infos =[], dndSource, dynamicLayerInfos; require([ "dojo/dom", "esri/Color", "dojo/keys", "dojo/parser", "dijit/registry", "esri/urlUtils", "esri/config", "esri/sniff", "esri/map", "esri/SnappingManager", "esri/dijit/Measurement", "esri/layers/FeatureLayer", "esri/tasks/GeometryService", "esri/symbols/SimpleFillSymbol", "esri/dijit/Scalebar", "esri/dijit/BasemapGallery", "esri/dijit/BasemapLayer", "esri/dijit/Basemap", "esri/dijit/OverviewMap", "esri/tasks/locator", "esri/dijit/Search", "esri/symbols/PictureMarkerSymbol", "esri/InfoTemplate", "esri/dijit/HomeButton", "esri/geometry/Extent", "esri/SpatialReference", "esri/dijit/VisibleScaleRangeSlider", "esri/geometry/scaleUtils", "esri/virtualearth/VETiledLayer", "dijit/form/Button", "esri/tasks/query", "esri/geometry/Circle", "esri/graphic", "dojo/on", "esri/toolbars/draw", "esri/units", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/layers/DynamicLayerInfo", "esri/layers/LayerDataSource", "esri/layers/LayerDrawingOptions", "esri/layers/TableDataSource", "dojo/dom-construct", "dojo/dom-style", "dojo/query", "dojo/_base/array", "dojo/dnd/Source", "esri/layers/ImageParameters", "esri/dijit/Legend", "dojo/agsjs/layers/GoogleMapsLayer", "esri/lang", "esri/layers/GraphicsLayer", "esri/renderers/SimpleRenderer", "esri/geometry/Point", "esri/tasks/FeatureSet", "esri/tasks/ClosestFacilityTask", "esri/tasks/ClosestFacilityParameters", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "dijit/form/Button", "dijit/form/ComboBox", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/TitlePane", "dijit/Dialog", ], function( dom, Color, keys, parser, registry, urlUtils, esriConfig, has, Map, SnappingManager, Measurement, FeatureLayer, GeometryService, SimpleFillSymbol, Scalebar, BasemapGallery, BasemapLayer, Basemap, OverviewMap, Locator, Search, PictureMarkerSymbol, InfoTemplate, HomeButton, Extent, SpatialReference, VisibleScaleRangeSlider, scaleUtils, VETiledLayer, Button, Query, Circle, Graphic, on, Draw, units, ArcGISDynamicMapServiceLayer, DynamicLayerInfo, LayerDataSource, LayerDrawingOptions, TableDataSource, domConstruct, domStyle, query, arrayUtils, Source, ImageParameters, Legend, GoogleMapsLayer,esriLang, GraphicsLayer, SimpleRenderer, Point, FeatureSet, ClosestFacilityTask, ClosestFacilityParameters, SimpleMarkerSymbol, SimpleLineSymbol ) { var incidentsGraphicsLayer, routeGraphicLayer, closestFacilityTask; parser.parse();
... View more
12-15-2017
01:25 AM
|
0
|
5
|
1377
|
|
POST
|
Hi thanks what about drag and reorder layer? old sample can drag and reorder layers. regards
... View more
12-09-2017
11:19 AM
|
0
|
1
|
1159
|
|
POST
|
I checked LayerList widget | ArcGIS API for JavaScript 3.22 but I dont know how can change "map id" with my own web map servces? I,m not on arcgis Online and going to use my own web map service : //Create a map based on an ArcGIS Online web map id
arcgisUtils.createMap("f63fed3f87fc488489e27c026fa5d434", "map").then(function(response){
var myWidget = new LayerList({
map: response.map,
layers: arcgisUtils.getLayerList(response)
},"layerList");
myWidget.startup();
});
... View more
12-08-2017
09:41 PM
|
0
|
3
|
1830
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-21-2017 07:19 AM | |
| 1 | 08-08-2018 11:09 PM | |
| 1 | 11-24-2017 03:46 AM | |
| 1 | 10-19-2014 03:54 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-28-2021
04:28 PM
|