POST
|
I'm using a VectorTileLayer with a vector tile service hosted in MapTiler. I'm trying to add label based on a data property. When i add my symbol layer (testLabel), all my vectors disappear. If i change the text-field property for a property that does not exists, my vectors will appear but still not have my label displayed. Here's a my source code: CodePen Somebody have an idea how to make it work? Thanks
... View more
08-30-2019
10:51 AM
|
0
|
0
|
202
|
POST
|
By debugging the VectorTileLayer, i figured how to fix it.... When a VectorTileLayer is instantiated, it creates is own tileInfo. By default, the maximum zoom level is 16. If you want to override it, you have to add a maxzoom property in the source of your style JSON object. var style = { .. "sources": { "07829d77-6e7c-4995-958c-b649a1ad336e": { "maxzoom": 24, "type": "vector", "tiles": ["https://api.maptiler.com/tiles/5dc6f056-32ca-4d32-95f1-7960e7dc7b09/{z}/{x}/{y}.pbf?key=DrAk6YxPY2rSlxgUxfpT"] } ... };
... View more
08-30-2019
07:02 AM
|
0
|
0
|
574
|
POST
|
I'm using a VectorTileLayer with a vector tile service hosted in MapTiler. My tileset has been created for level 0 to 18. Unfortunaltly, when i'm zooming in over the level 16, the VectorTileLayer does not fetch tile. I tried with version 4.11 and 4.12. Here's a my source code: CodePen Somebody have an idea how to make it work? Thanks
... View more
08-30-2019
05:49 AM
|
0
|
1
|
732
|
POST
|
Did you find a way to avoid 404 when tile does not exists?
... View more
08-27-2019
01:54 PM
|
0
|
1
|
1029
|
POST
|
Thanks Undral. I tried your test app but even if you cancel the sketch, the sketch box remains on the layer. I tried the reset function too and i have the same behavior.
... View more
08-23-2019
11:18 AM
|
0
|
0
|
731
|
POST
|
I have some graphics on my layer that i don't want to be editable. So when i click on one of them, i want to escape the sketch mode. Is it more clear?
... View more
08-22-2019
04:43 AM
|
0
|
0
|
731
|
POST
|
Is there a way to cancel a sketch during an update. I want to cancel update operation based on a condition. const sketch = new Sketch({ layer: layer, view: view }); sketch.on('update', event => { // if something sketch.cancel(); }) Here's a CodePen of what i'm trying to achieve. Cancel Sketch Update Thanks
... View more
08-21-2019
01:52 PM
|
0
|
6
|
893
|
POST
|
Thanks for reply. Here is more details about my issue : - How is your ArcGIS Server configured in terms of security? Are you using token based security? Does your server use windows authentication against the services via IIS? I'm thinking that windows authentication comes into the picture from the error messages. I'm using Windows Domain as User/Role store and the server use windows authentification against the service in ISS. - What is you client running on? Is it a Windows machine connecting to a Windows Server based ArcGIS Server? I created three different clients(Javascript/Java/WPF) on a windows server 2012 machine. Only my Javascript client works. My server is a windows server 2008. - What does your code look like? try { UserCredentials credentials = new UserCredentials(); credentials.setUserAccount("myUser", "myPassword"); credentials.setAuthenticationType(AuthenticationType.HTTP); Geoprocessor geoprocessor = new Geoprocessor( "http://myHost/arcgis/rest/services/GP/HLZ/GPServer/HLZ", credentials); List<GPParameter> gpInputParams = new ArrayList<GPParameter>(); GPFeatureRecordSetLayer gpInputAOI = new GPFeatureRecordSetLayer( "Area_of_Interest"); gpInputParams.add(gpInputAOI); geoprocessor.executeAsync(gpInputParams, new CallbackListener<GPParameter[]>() { @Override public void onError(Throwable th) { th.printStackTrace(); } @Override public void onCallback(GPParameter[] result) { } }); } catch (Exception e) { } - From the client, if you open up a browser window, can you browse the service endpoint for the geoprocessor? Yes but i need to enter my credentials. I do not use token base security. Maybe it could be a workaround? Thanks
... View more
07-19-2013
04:07 AM
|
0
|
0
|
723
|
POST
|
Hi, I want to consume a Geoprocessing service using ArcGIS Runtime SDK for Java. My service needs to be authenticated so i set the UserCredentials of the Geoprocessor. I always receive this error. Somebody have an idea? Jul 18, 2013 12:45:34 PM org.apache.http.impl.client.AbstractAuthenticationHandler selectScheme WARNING: Authentication scheme ntlm not supported Jul 18, 2013 12:45:34 PM org.apache.http.impl.client.DefaultRequestDirector handleResponse WARNING: Authentication error: Unable to respond to any of these challenges: {ntlm=WWW-Authenticate: NTLM, negotiate=WWW-Authenticate: Negotiate} com.esri.core.io.EsriSecurityException: Invalid or missing user credentials at com.esri.core.internal.io.handler.l.a(Unknown Source) at com.esri.core.internal.io.handler.l.a(Unknown Source) at com.esri.core.tasks.ags.geoprocessing.b.b(Unknown Source) at com.esri.core.tasks.ags.geoprocessing.b.a(Unknown Source) at com.esri.core.tasks.ags.geoprocessing.b.execute(Unknown Source) at com.esri.core.internal.tasks.b.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: com.esri.core.io.EsriServiceException: Unauthorized at com.esri.core.internal.io.handler.c.a(Unknown Source) at com.esri.core.internal.io.handler.l$1.handleResponse(Unknown Source) at com.esri.core.internal.io.handler.l$1.handleResponse(Unknown Source) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:735) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:709) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:700) at com.esri.core.internal.io.handler.l.a(Unknown Source) ... 10 more
... View more
07-18-2013
08:55 AM
|
0
|
8
|
3836
|
Title | Kudos | Posted |
---|---|---|
1 | 08-26-2019 04:18 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|