POST
|
You first statement is collect. so if you put your TileLayer in Map constructor, then you will have your mapview's spatialreference same as you tilelayer: var gov= new TileLayer({ url: "http://localhost:6080/arcgis/rest/services/services/MapServer", visible: false }); var map = new Map({ layers:[gov] }); Zoom and center is only work when your use esri basemap (102100). Extent will work when you don't use esri basemap. similarly event.mapPoint.latitude is only work when you mapview spatial reference is 102100 or 3857. but you can always use event.mapPoint.x to get the cordinates in map unit that you are using.
... View more
07-14-2017
11:48 AM
|
2
|
0
|
210
|
POST
|
I think this is more of the web app design and develop question. There are a lot of way to achieve the same visual effects like one example that Adrian point. you could also look at Bootstrap's Carousel or something else...
... View more
06-28-2017
12:44 PM
|
0
|
0
|
552
|
POST
|
Try Old school tech "Imagemap" and linked each port of your map to different section of you page.
... View more
06-28-2017
12:17 PM
|
0
|
0
|
552
|
POST
|
State Plane Coordinate System is suitable for 2D and for measurement or survey purpose. It won't be a surprise the it will a little off in a 3D display
... View more
06-28-2017
06:33 AM
|
0
|
2
|
841
|
POST
|
Sometime you just have to be patient and read through the doc. Yes, the is a property for sources array. Here is how i did and it worked. this.geocoder = new Search({ container: "addrSearch", autoSelect: false, view: this.view, searchAllEnabled: false, sources: [ { locator: new Locator("https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"), singleLineFieldName: "SingleLine", outFields: ["Addr_type"], name: "World GeoCoding Service", minSuggestCharacters: 3, autoNavigate: false, popupEnabled: false, searchExtent: Extent({ xmin: -8631362.9367, ymin: 4655884.590300001, xmax: -8532954.2208, ymax: 4772527.9208, spatialReference: { "wkid": 102100 } }), placeholder: "Enter a US street address", resultSymbol:null, } ] }); Thanks Robert.
... View more
06-22-2017
10:25 AM
|
0
|
0
|
1211
|
POST
|
I am replacing my GeoCoder Widget with Search Widget. In GeoCoder i can restrict my search in a certain area by doing this: arcgisGeocoder: true, arcgisGeocoder: { placeholer: "Enter a US street address", searchExtent: new esri.geometry.Extent({ xmin: -8631362.9367, ymin: 4655884.590300001, xmax: -8532954.2208, ymax: 4772527.9208, spatialReference: { "wkid": 102100 } }), url: "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer" } As i was looking into the search widget in JS 4.3, i could not find equivalent options. Any ideas of how to set such options in Search Widget?
... View more
06-22-2017
09:37 AM
|
0
|
2
|
2085
|
POST
|
forget to mention. I would using WKID instead of WKT. It is simple not prone to mistake like type.
... View more
06-21-2017
07:45 AM
|
0
|
0
|
1185
|
POST
|
just try to point you a place while you can look at the format of feature collection. I am glad that you find the issue. Having worked on google map API for a while while you will notice that all the google API methods us long/at (4326)while its maps display in Web_Mercator(102100). when i add Google Maps as one of the base map layers for ESRI JS api, I had to deal with this issue while watch mapview's extent.
... View more
06-21-2017
07:34 AM
|
0
|
0
|
1185
|
POST
|
JS API3.x has a sample you can look at. it shows how to create a featurelayer using featurec ollection. Feature collection | ArcGIS API for JavaScript 3.20
... View more
06-21-2017
07:05 AM
|
0
|
1
|
1185
|
POST
|
when working with 3.x, i don't need to load any modules, because the hosting page already include the API link, i only need to use legacy code when i created instance of a class. now, i have to pass module to my widget. that is what i mean. Thanks for response anyway.
... View more
06-21-2017
06:53 AM
|
0
|
0
|
562
|
POST
|
I know 4.x is AMD only. So i am aware of that. Just don't want my jquery widget have too many dependencies, maybe i will bypass, using Jquery.trigger() to pass JSON object and let hosting page to deal with JSON uing API. Thanks for answering my question. It is indeed helpful.
... View more
06-20-2017
02:47 PM
|
0
|
1
|
562
|
POST
|
Robert, I don't know if there are better way to load, which is why i am asking this question. I don't need to load those module in 3.x. when i create a graphic, i could just call in my widget code var graphic=new esri.Graphic(....); now i have to pass the parameter like the following require(["esri/Graphic",...], function(Grapic){ .... view.then(function () { //load the portal tool kit $('#tool').location_portal({ view: view, movable: true, Graphic: Graphic }); }); ........ }); Maybe i did it wrong way, just ask here to see if there are better or correct ways to do it
... View more
06-20-2017
02:15 PM
|
1
|
1
|
562
|
POST
|
I am currently upgrade a jquery ui widget to use Js API 4.x. I was using Js API 3.x in my widget, since the 3.x support legacy code, i could call a module or class easily; for example, this.locationGraphic=new esri.Graphic(center, symbol, feature.attributes, infotemplate). The 4.x no longer support legacy code, l have to load those AMD module into the widget, which is not simple. I could pass those class or module parameters into my widget to avoid loading. But it is a long list. Is there any better ideas or simple ways to do it?(Any ideas are welcome:))
... View more
06-20-2017
01:34 PM
|
0
|
6
|
1010
|
POST
|
Pranav, it is hard to give a code snippet because my project was divided into modules. there is function how i setup the editable featurelayer, it pointed to local cached place. private void setAssetLayer() {
// add layers from the geodatabase
Geodatabase geodatabase;
try {
geodatabase = new Geodatabase(AppResourceUtils.getLocalGDBPath());
for (GeodatabaseFeatureTable gdbFeatureTable : geodatabase.getGeodatabaseTables()) {
if (gdbFeatureTable.hasGeometry()) {
if (gdbFeatureTable.getTableName().equals(AppResourceUtils.assetLayerName)) {
assetLayer = new FeatureLayer(gdbFeatureTable);
assetLayer.setName(AppResourceUtils.assetLayerName);
break;
}
}
}
if (assetLayer == null) {
Warning_And_Quit("Assets Layer not found, App will exit");
}
} catch (FileNotFoundException e) {
e.printStackTrace();
Warning_And_Quit("Assets Layer found, App will exit");
}
} static String getLocalGDBPath(){
return getApplicationPath()+AppName+"/localGDB/offline.geodatabase";
}
static String getApplicationPath(){
return Environment.getExternalStorageDirectory().getPath() + DEFAULT_PATH;
}
... View more
06-19-2017
07:03 AM
|
1
|
0
|
745
|
POST
|
you could set offline editing as default (feature service pointing to your local cache); when finishing editing(add, update or delete), you could editing sync with online services. I found out this is the best approaches at for my cases. It simplify the code logic and feature editing working flow
... View more
06-16-2017
09:56 AM
|
1
|
2
|
745
|
Title | Kudos | Posted |
---|---|---|
1 | 04-11-2011 12:16 PM | |
1 | 05-25-2017 08:26 AM | |
1 | 06-02-2017 07:37 AM | |
1 | 06-28-2011 07:02 AM | |
1 | 06-12-2017 10:10 AM |
Online Status |
Offline
|
Date Last Visited |
07-08-2024
04:56 PM
|