POST
|
Hi all, I was exactly doing that today. The only way I found to do it is to hack a little bit the widget. When you change the stops collection in view model it has absolutely no effect on SearchWidget view model that is embedded inside Directions widget... So, basically, you have to find SearchWidget, and run a search. Here is a simple example using a feature geometry : function addFromToDirection2(directions, feature) { // eslint-disable-next-line no-underscore-dangle const searchWidget = directions._stopsToSearches.values().next().value; searchWidget.viewModel.search(feature.geometry); } You can extend it by configuring SearchWidget view model to search inside Feature layers if needed This little hack works on 4.10->4.12 Good luck with that until that will become a feature
... View more
09-10-2019
07:36 AM
|
1
|
1
|
1409
|
POST
|
Hi Nick, I have the same behavior with Api v4 and iOS 10... After looking at others smart mapping API :-), they use a listener on the documentElement to catch the zoomPinch and double tap events and stop them. A guy post a similar solution on StackOverflow and you could easily implement it in a dojo module like that : SO link : http://stackoverflow.com/a/38573198/3366795 Sample dojo module : /**
* Created by tony on 28/11/2016.
*/
define([
"dojo/sniff",
"dojo/domReady!"
], function (
sniff
) {
if (sniff('ios'))
{
//Disable pinch zoom on document
document.documentElement.addEventListener('touchstart', function (event) {
if (event.touches.length > 1) {
event.preventDefault();
}
}, false);
//Disable double tap on document
var lastTouchEnd = 0;
document.documentElement.addEventListener('touchend', function (event) {
var now = (new Date()).getTime();
if (now - lastTouchEnd <= 300) {
event.preventDefault();
}
lastTouchEnd = now;
}, false);
}
});
//# sourceURL=vmv/mobileBehaviors.js
Good luck !
... View more
11-28-2016
12:28 AM
|
1
|
2
|
1738
|
POST
|
Hi David, Sorry to reply so late, there is 2 options : 1- tell dojo build system to not include vector-tile 2- build a separate layer (as esri does in 3.18) The best option is definitely to upgrade to 3.18 and use the last update of jsapi-resources via github Tony
... View more
10-24-2016
05:43 AM
|
0
|
0
|
243
|
POST
|
Hi, I use bower build for some project, and since 3.15 the new vector tile process is using Map Box vector tile project inside ArcGIS API, its located in layers/vector-tile.js. When I try to integrate this resource in my build, I have a dojo build error : Missing include module for layer missing: js/layers/vector-tile.js layer: dojo/dojo Maybe some mapbox-gl prefix are not bound or something like that. Did someone experience that ?
... View more
03-18-2016
08:28 AM
|
0
|
2
|
1251
|
POST
|
Hi Mike, We are experiencing the same problem when loading an SQLite geodatabase (saved from ArcGIS Online) into a FeatureTable Source. The feature table contains a Date Range domain. Do you have any idea about this problem ? The stack trace : Message : TimeSpan does not accept floating point Not-a-Number values.. Source : mscorlib. StackTrace : at System.TimeSpan.Interval(Double value, Int32 scale) at Esri.ArcGISRuntime.Internal.DateUtils.FromMillisecondsSinceEpoch(Double milliSeconds) at RuntimeCoreNet.BinaryReaderExtensions.ReadRowVariant(BinaryReader r, RowValueType type) at RuntimeCoreNet.BinaryReaderExtensions.ReadRowVariant(BinaryReader r) at RuntimeCoreNet.CoreFeatureSource.GetDomainInfo(String domainName) at Esri.ArcGISRuntime.Data.FeatureTable.SetSource(CoreFeatureSource source) at Esri.ArcGISRuntime.Data.GeodatabaseFeatureTable..ctor(CoreFeatureSource source, Geodatabase owner) at Esri.ArcGISRuntime.Data.Geodatabase.<get_FeatureTables>d__0.MoveNext() at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source) at SOMaps.Manager.Offline.OfflineDataManager.<HasOfflineDataForLayerAsync>d__83.MoveNext() The Code: Geodatabase gdb = await Geodatabase.OpenAsync(path); gdb.FeatureTables.Count() I can share you the sqlite geodatabase if you need, Thank you for your help, Tony
... View more
01-18-2016
02:45 AM
|
0
|
1
|
520
|
POST
|
Hi, It looks great ! I try to download the api for working locally, but there is only 3.12 and lower on SDK Downloads | ArcGIS for Developers When do you planned to make available the new API for download ? Thank you, Tony
... View more
03-10-2015
01:06 AM
|
0
|
0
|
401
|
POST
|
Thank you Antti it works ! private void Button_Tapped(object sender, TappedRoutedEventArgs e) { // stuff e.Handled = true; } I supposed the event is not handled naturally because overlay visual tree is outside the visual tree of the map view ? Tony
... View more
11-10-2014
11:01 AM
|
0
|
1
|
746
|
POST
|
Hi, I'm trying to catch events into overlay popups and MapView always catch it before my overlay. Did someone experience the same issue ? Best regards, Tony
... View more
11-10-2014
09:35 AM
|
0
|
8
|
3682
|
Title | Kudos | Posted |
---|---|---|
1 | 11-28-2016 12:28 AM | |
1 | 09-10-2019 07:36 AM |
Online Status |
Offline
|
Date Last Visited |
4 weeks ago
|