POST
|
Thanks FC Basson! Works fine, I tried earlier with the WebTileLayer but was experiencing some bug with the tile position, because I used the wrong urlTemplate: " 'https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v9/tiles/256/{level}/{col}/{row}@2x?access_token=' + token" I will use this for the moment!
... View more
06-29-2016
04:48 AM
|
0
|
1
|
296
|
POST
|
Hi guys, I'm experiencing some problem in adding the "satellite-streets" mapBox vectorTileLayer in a mapView. I use the same code as shown in the documentation : "VectorTileLayer | API Reference | ArcGIS API for JavaScript 4.0". I can successfully add the satellite, streets, dark etc... from MapBox but it doesn't work with the satellite-streets vectorTileLayer. I was able to add this layer in AGOL in a map, by adding data from the web as tileLayer. Here is a little code snippet that show the behavior Edit fiddle - JSFiddle (you have to provide your own developper access_token to test it), and you will see that all vectorTileLayer from mapBox are working, only the satellite-streets vectorTile doesn't work. I can't figure out why this doesn't work. Thanks in advance for any help!
... View more
06-29-2016
02:02 AM
|
0
|
3
|
2249
|
POST
|
Thanks Steve, Good idea, I will do something like that!
... View more
06-07-2016
11:38 AM
|
1
|
0
|
910
|
POST
|
Hi all, I try to set a definition expression on a feature layer that has been constructed with the source propertie. It seems that the definition expression propertie only works with hosted feature service. I tried to set a definition expression on the earthQuake example here : "Create a FeatureLayer with client side graphics | ArcGIS API for JavaScript 4.0 " but have no effects, but it works fine with hosted feature service. Nothing mentioned this limitation in the documentation. Can you confirm that or show a way to do that with a feature Layer that is not a hosted feature service? Thanks in advance for your feedback.
... View more
06-07-2016
03:01 AM
|
0
|
7
|
3629
|
POST
|
Hi, Thanks to you both. I close this for the moment. The only way I found to label my feature layer with a custom button is to reconstruct the layer when I change the labelingInfo property like that: "function clickButton(map, featureLayer, myCustomLabelingInfo){ map.remove(featureLayer) var featureLayer2 = new FeatureLayer ({url: featureLayer.url, labelsVisible: true, labelingInfo: [myCustomLabelingInfo]}) map.add(featureLayer2) }". Whith this trick I can label all my feature layers with a custom menu. I will wait for the next release and hopefully the labeling capabilities will be finished. Thanks again for your assistance.
... View more
06-02-2016
01:50 AM
|
0
|
0
|
1119
|
POST
|
Resolved here : https://community.esri.com/message/612343#comment-612343
... View more
06-01-2016
11:32 AM
|
0
|
0
|
278
|
POST
|
Thank you very much! My code was correct but I didn't set this properties on the feature layer construction, but with a function with a button. It is very weird, I can modify a lot of properties on my feature layer, that is immediately reflected in the view, however it doesn't work with the labelling info property. Only the labelsVisible property is reflected, when I change the value (true/false). After few tests I figure out that, after the layer-view is created it is not possible to modify or set a labelingInfo property. Here is two demo that show this behavior : - example with the labelingInfo and labelsVisible set on layerview-create event: "https://jsbin.com/qunewexuze/1/edit?html,output" - example with the labelingInfo and labelsVisible set after a button is clicked : "https://jsbin.com/fuzuqilixe/1/edit?html,output" I tried to remove the layer from the map, then set properties and then re-add the layer, it didn't work, I tried to first set the labelsVisible to true and the labelingInfo to a empty array on the feature layer construction, but have no effects too. Any Ideas to achieve that? Thanks!
... View more
06-01-2016
09:56 AM
|
0
|
3
|
1119
|
POST
|
Hi all, I am trying to label a feature layer client side with the use of the labelClass, like it is show here : FeatureLayer | API Reference | ArcGIS API for JavaScript 4.0. I use the same code in a scene view, but labels never showing up. Can someone provide a short example that work with the JS API 4.0 ? Thanks in advance for your help!
... View more
05-28-2016
05:54 AM
|
0
|
1
|
2810
|
POST
|
Hi all, I am trying to label a feature layer client side with the use of the labelClass, like it is show here : FeatureLayer | API Reference | ArcGIS API for JavaScript 4.0. I use the same code in a scene view, but labels never showing up. Can someone provide a short example that work with the JS API 4.0 ? Thanks in advance for your help!
... View more
05-27-2016
12:51 AM
|
0
|
7
|
5741
|
POST
|
It seems that the view.on methods does only have the click event and not the mouse-over/mouse-out events. Any other Idea to show Popopup on mouse hovering?
... View more
05-20-2016
01:09 AM
|
2
|
2
|
1352
|
Title | Kudos | Posted |
---|---|---|
1 | 06-07-2016 11:38 AM | |
2 | 05-20-2016 01:09 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|