|
POST
|
Youtube location results are still broken on their part. We'll probably have to remove YouTube if this remains broken. https://developers.google.com/youtube/2.0/developers_guide_protocol_api_query_parameters#locationsp https://code.google.com/p/gdata-issues/issues/detail?id=4234
... View more
01-09-2014
05:36 PM
|
0
|
0
|
1085
|
|
POST
|
I've also found that the Locate Button does not work with non-mercator projections. The fairly obvious requirement of projecting the lat/long coordinate to the map's spatial reference doesn't seem to be implemented. I added the functionality to the LocateButton by overriding the private _setPosition method using version 3.8 of the API. Since it's a private method the fix could break with updates of the API though. Hopefully ESRI can incorporate this functionality in future versions of the API, it's literally 3 extra lines of code. require([
"dojo/_base/lang",
"esri/dijit/LocateButton",
"dojo/Deferred",
"esri/config",
"esri/geometry/Point",
"esri/SpatialReference"
], function (
lang,
LocateButton,
Deferred,
esriConfig,
Point,
SpatialReference
) {
lang.extend(LocateButton, {
_setPosition: function (location) {
var deferred = new Deferred;
if (location && location.coords) {
var point = null;
var scale = this.get("scale") || location.coords.accuracy || 5E4;
if (point = new Point([location.coords.longitude, location.coords.latitude], new SpatialReference({ wkid: 4326 }))) {
esriConfig.defaults.geometryService.project([point], this.map.spatialReference).then(lang.hitch(this, function (projectedPoints) {
point = projectedPoints[0];
var event = this._createEvent(point, scale, location);
if (this.get("setScale")) this.get("map").setScale(scale);
if (this.get("centerAt")) {
this.get("map").centerAt(point).then(lang.hitch(this, function () {
deferred.resolve(event);
}), lang.hitch(this, function (err) {
if (!err) err = Error("LocateButton::Could not center map.");
deferred.reject(err);
}));
}
else {
deferred.resolve(event);
}
}), lang.hitch(this, function (err) {
if (!err) err = Error("LocateButton::Could not project point to map's spatial reference.");
deferred.reject(err);
}));
}
else {
var err = Error("LocateButton::Invalid point");
deferred.reject(err)
}
}
else {
var err = Error("LocateButton::Invalid position");
deferred.reject(err);
}
return deferred.promise;
}
});
}); I will add this to the widget for the next update! Thanks for bringing it to our attention.
... View more
01-09-2014
05:32 PM
|
0
|
2
|
1128
|
|
POST
|
I have an accordion legend here if you'd like to use it: http://driskull.github.io/arcgis-dijit-layer-legend-js/ https://github.com/driskull/arcgis-dijit-layer-legend-js
... View more
01-06-2014
09:50 AM
|
0
|
0
|
483
|
|
POST
|
I recommend Brackets (http://brackets.io/) It's still somewhat new but has a lot of good plugins.
... View more
12-17-2013
04:13 PM
|
0
|
0
|
1478
|
|
POST
|
Hey Ben, Looks like it's not working right because you're using require() instead of define() in the custom module. Change it to define() and it should work.
... View more
10-26-2013
11:23 AM
|
0
|
0
|
1269
|
|
POST
|
Most likely, either the widget is not getting assigned to the correct variable or the module path is incorrect. I've updated my simple dijit sample to load a custom module from within another. Here's the code: https://github.com/driskull/arcgis-dijit-sample-js http://driskull.github.io/arcgis-dijit-sample-js/ This is how I added the custom module: https://github.com/driskull/arcgis-dijit-sample-js/commit/23368142f9e8537fb919d0d9aeeae05c8ab785c7
... View more
10-24-2013
03:35 PM
|
0
|
0
|
1269
|
|
POST
|
Thanks Matt, but the result remains. I will make a small project and send you with Esri services. Oren I think I understand your issue. This should fix it.
... View more
10-24-2013
08:10 AM
|
0
|
0
|
974
|
|
POST
|
Hi Oren, It's kind of hard to test since the services are so slow viewing from here. Is it just the first time that's a problem? Can you try the attached? I also see an error with a layer.
... View more
10-22-2013
09:58 AM
|
0
|
0
|
1984
|
|
POST
|
Hi Sunil, It appears that there's a Firefox bug with Geolocation. There is a workaround that should fix it though. Set the geolocationOptions to these values. They seemed to fix the issue while I was testing. [HTML] geoLocate = new LocateButton({ map: map, geolocationOptions: { maximumAge: 0, timeout: 15000, enableHighAccuracy: true } }, "LocateButton"); [/HTML] http://jsfiddle.net/LRpzg/3/ This is the bug I believe is causing the problem: https://bugzilla.mozilla.org/show_bug.cgi?id=732923 Let me know if that fixes it for you. Thanks!
... View more
10-22-2013
09:32 AM
|
0
|
0
|
363
|
|
POST
|
Yes, this is a CSS issue. Try setting the width of the geocoder input box to a smaller value. [HTML] <style type="text/css"> .simpleGeocoder .esriGeocoder input { width:150px; } </style>[/HTML]
... View more
10-22-2013
09:24 AM
|
0
|
0
|
346
|
|
POST
|
Try this file. I think you just need to remove the 'zesri'. That's just there so that it's loaded as a custom module. This file should work though.
... View more
10-17-2013
07:59 AM
|
0
|
0
|
1985
|
|
POST
|
The IE issue should be fixed for next version. You can grab the latest code here if you need it now: https://github.com/driskull/arcgis-dijit-layer-swipe-js Let me know if you still see the issue here: http://driskull.github.io/arcgis-dijit-layer-swipe-js/
... View more
10-16-2013
12:57 PM
|
0
|
0
|
1985
|
|
POST
|
Hi Oren, It sounds like the CSS clip isn't being removed in some IE. I'll dig deeper to see if I can find a solution. Since you already called .disable() that "should" have cleared it up but apparently it isn't working. I will check in an update on github and let you know when there's a fix. there might be a easy solution as well. I just need to figure out the correct way to clear the CSS clip on the layer's node for the IE that is failing. Thanks
... View more
10-16-2013
12:18 PM
|
0
|
0
|
1985
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-14-2024 01:33 PM | |
| 1 | 12-01-2023 11:14 AM | |
| 1 | 06-23-2021 09:54 AM | |
| 1 | 04-12-2018 11:10 AM | |
| 1 | 04-09-2015 03:08 PM |
| Online Status |
Offline
|
| Date Last Visited |
08-21-2025
02:27 PM
|