POST
|
base on MDN javascript doc, super.functionOnParent([arguments]) is the way to call. The only issue here is that the layer has to be loaded on the map before you can call this to get the map instance. tried this super.on('load', (event) => {
console.log(this.getMap());
});
... View more
05-26-2017
10:35 AM
|
0
|
2
|
1486
|
POST
|
To test what i have said, i wrote a piece of code on ESRI BasemapGallery sample. Here is part of it: var basemaps = []; basemapLayer = new BasemapLayer({ url: "http://tiles.arcgis.com/tiles/qHLhLQrcvEnxjtPr/arcgis/rest/services/OS_Open_Carto_2/MapServe" }); baseMap = new Basemap({ layers: [basemapLayer], title: "OS_Open_Carto_2", thumbnailUrl: "Tulips.jpg" }); basemaps.push(baseMap); map = new Map("map", { basemap: "OS_Open_Carto_2", //center: [0.1278, 51.5074], center:[-77.0369,38.9072], zoom: 15 }); //add the basemap gallery, in this case we'll display maps from ArcGIS.com including bing maps var basemapGallery = new BasemapGallery({ showArcGISBasemaps: false, map: map, basemaps: basemaps }, "basemapGallery"); basemapGallery.startup(); basemapGallery.on("error", function(msg) { console.log("basemap gallery error: ", msg); }); }); The code won't work on the sevices, it thrown this message: "esri.dijit.BasemapGallery: Unable to switch basemap because new basemap is a tiled service and cannot be loaded as a dynamic layer". If i Change url to any map serivce, for example, World_Street_Map (MapServer) , my code will work. So i would l guess the url you list is not work or you list tile info for this searvices or something else. Note that the title of Basemap is the one you should put it map's basemap property. hope this will help you a little bit.
... View more
05-26-2017
09:09 AM
|
0
|
0
|
941
|
POST
|
you can construct a BasemapGallery easily by define your own BasemapLayer and push it into basemap array which is one of BasemapGallery constructor parameters.
... View more
05-25-2017
08:26 AM
|
1
|
1
|
941
|
POST
|
yes, you could use online services for android SDK; I have used our published online services for editing and sync reason(because proxy.ashx would work on android).
... View more
05-24-2017
12:37 PM
|
0
|
0
|
515
|
POST
|
you could do like this: mapView.constraints = { minScale: 295828763.795777, // the second lowest tile level -1 maxScale: 564.248588 // the hightest tile level -20 };
... View more
05-24-2017
12:29 PM
|
0
|
0
|
597
|
POST
|
Here is how i would approach it: map.on("load", function () { $("div[id*='map_layer']").hide(); // this will hide any base map layer(s) on when the map load; not i use jquery to hid the //basemap div }); basemapGallery.on("load", function () { // this will only left Imagery, Topographic and Streets basemap on the widgets var baselayers = basemapGallery.basemaps.slice(); for (var i = 0; i < baselayers.length; i++) { var layer = baselayers; if (layer.title != "Topographic" && layer.title != "Imagery" && layer.title != "Streets") { basemapGallery.remove(layer.id); }} }); basemapGallery.on("selection-change", function () { $("div[id*='map_layer']").show(); // this will display basemap should user click the base map icon; });
... View more
05-24-2017
11:47 AM
|
2
|
1
|
2658
|
POST
|
David, Sorry for not answering your question for so long. I am pretty sure Streeview will work with JS API version 3.15. Well since I am just starting to look at the JS API 4.0, I can't give your a sure answer. However i can't see any reasons why it won't work with version. Google API and JS API are all written in Javascript, they are all about filling html elements(div etc) map content or component. Let me know if you encounter any issues when you use Streeview with version 4 because i am just as curious as you on this same issue. Heming
... View more
06-29-2016
10:45 AM
|
0
|
1
|
981
|
POST
|
I am trying to attackle the same issue. Our sever setup at the time only allow us to access the our server services through proxy.ashx. But the ProxySetup is dealing with the Proxy Server while proxy.ashx is an application. so using ProxySetup wouldn't work on Proxy. I was told that using Proxy.ashx to access server services has listed as a bug to be fix (nim104296). Hope it will fixed soon.
... View more
07-23-2015
10:24 AM
|
0
|
0
|
1317
|
POST
|
Humm strange! If you could share a repro case, that would be very helpful. Thanks Yes, very strange indeed! Unforunately The service is secured and internal so can't really share. I just opened a ticket with ESRI. I will post here once the issue is found.
... View more
12-17-2013
07:19 AM
|
0
|
0
|
212
|
POST
|
May be because you don't grab the fields the unique renderer is based on. Try with OutFields="*" or be sure all unqiue value renderer fileds are included in OutFields. Sorry that is not the case here. I have setup the OutFields. using the following code ESRI.ArcGIS.Client.Tasks.OutFields outFields = new ESRI.ArcGIS.Client.Tasks.OutFields(); outFields.Add("*"); projectLayer.OutFields = outFields; But You have a good point. Actually we caught this isues before by including all the fields. But this is not the case unfortunatley. Thanks for your help anyway!
... View more
12-17-2013
06:02 AM
|
0
|
0
|
212
|
POST
|
I have the FeatureLayer from the Map service. We are using UniqueValue Render on one of field. It is a polygon Feature class. In the REST service endpoint, It stated clearly the UniqueValue Render is used. I also explicitly stated using FeatureLayer.RendererTakesPrecedence=true; However on the may, it displayed using default symbols with one color accross the board. I had this issue before. FeatureLayer.RendererTakesPrecedence=true did the trick. But this, It doesn't work. Any ideas will be highly appreciated!
... View more
12-16-2013
02:57 PM
|
0
|
4
|
611
|
POST
|
Hi everyone I am trying to retrieve the MapLayers on my Map using ArcGIS Mobile 10.1 and i am getting only one item on it, even my MobileCache having more than ten items. I added my mobile cache on the map using this command below: myMap.MapLayers.Add(mobileCache); See attached picture. [ATTACH=CONFIG]29708[/ATTACH] In order to retrieve to the layers in the MobileCache. You need using MobileCacheMapLayer and MobileCacheMapLayer.LayerDefinitions. something like this: MobileCacheMapLayer all_layers =new MobileCacheMapLayer(mobileCache); myMap.MapLayers.Add(all_layers); then for each layer you could use MobileCacheMapLayerDefinition like this: MobileCacheMapLayerDefinition firstLayer=all_layers.LayerDefinitions[0]; But There are not much you can do with it exception visibility, opacity etc. To get underline FeatureSource of each layer, you could use mobileCache.FeatureSources[index]. Then you access features by using GetDataTable...
... View more
12-16-2013
01:15 PM
|
0
|
0
|
219
|
POST
|
I too had this same requirement from client. Client wanted Edit Feature Attributes Page to be displayed side-by-side with Map page and not exclusive to each other. I started looking into an option of creating a custom page with Map control and Edit Attributes but had technical difficulties. I also played with the idea of showing a floating WinForm for Edit Attributes but it required lot of coding. Client has temporarily accepted out of the box solution of either map page or attribute page and but will require this sorted in the next phase of the project. Cheers, Vish I think the best bet is to create you own window forms app using runtime sdk. Coding is surprisingly straight forward and not complicated at all.
... View more
12-10-2013
12:22 PM
|
0
|
0
|
220
|
POST
|
Good Day, Any information to use ArcGIS Server Feature Service when create Mobile Project? i Just saw the article related with "editing with the attachment functionallity" but with the hosted feature service on ArcGIS Online. Can we use feature service from our ArcGIS Server? Thanks The answer is No. I have being wondering for a while and don't why.....
... View more
12-10-2013
12:19 PM
|
0
|
0
|
146
|
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 |
10-01-2024
09:57 PM
|