|
DOC
|
02-13-2019
08:52 AM
|
0
|
0
|
846
|
|
POST
|
This topic has been discussed so many time in the past. As I pointed out before and Robert stated here, the only way is to have the "widget to open Google maps in a new window at the desired location" So, I scripted a widget that uses Google Street view and Google Earth as well. When user clicks on a location, another windows opens up from a google server and displays the streetview for that location. It works similarly for GE as well. Just add it to your main config. Let me know how that works for you. Not authorized to view the specified document 13037 UPDATE: The file has been removed since it violates Google's TOS
... View more
02-12-2019
03:38 PM
|
2
|
1
|
4178
|
|
POST
|
Hello Robert. It seems that your widgets are based on 3.x JS API. Any plans to move to 4.x? Thank you.
... View more
02-11-2019
10:15 AM
|
0
|
1
|
3067
|
|
POST
|
Capture the coords at the point you click. The function will pass the coords to a google app to open the streetview in a popup window. this.map.on("click", lang.hitch(this, this.getstreetview)) getstreetview:function(evt){
var url1= "http://maps.google.com/maps?q=&layer=c&cbll="
var theX = evt.mapPoint.x.toFixed(5)
var theY = evt.mapPoint.y.toFixed(5)
var thelonglat = webMercatorUtils.xyToLngLat(theX, theY, true);
var thelong= thelonglat[0].toFixed(5);
var thelat= thelonglat[1].toFixed(5);
var comma=",";
var width = 800;
var height = 600;
console.log(screen.availWidth);
var left = parseInt((screen.availWidth/2) - (width/2));
var top = parseInt((screen.availHeight/2) - (height/2));
console.log("left: " + left + " top: " + top);
var curentzoom = this.map.getZoom();
if (curentzoom <16 ){
alert("Please zoom in until the scale is at least 600ft or less.")
} else {
var windowFeatures = "width=" + width + ",height=" + height + ",left=" + left + ",top=" + top;
window.open(url1.concat(thelat,comma,thelong),"Google StreetView", windowFeatures);
}
}
... View more
12-04-2018
08:52 AM
|
0
|
0
|
2592
|
|
POST
|
Thank you. So clicking on a map to capture the xy and create the url on the fly like this: https://www.google.com/maps/@36.5949014,-119.649611,3a,75y,90t/data=!3m6!1e1!3m4!1soHx-Wlfwao0UGy1Q5DuGxA!2e0!7i13312!8i6656 or like this https://3planeta.com/sv.html?0,40.71207163502554,-74.00533101455102,1303.6655622000706,22.255778144986493 Similarly, a user can access the Google Earth by capturing the xy like this: https://earth.google.com/web/@36.58851,-119.64300,333.18185645a,5099.21240811d,35y,19.67176885h,46.25600605t,-0r Developers can control the size and the tools display on the external window.
... View more
11-16-2018
10:48 AM
|
0
|
2
|
2592
|
|
POST
|
Understood. That's why I am thinking the new process that a user clicks on a location (on an ArcGIS basemap) just to capture the xy info and pass it on the url to open an external Google application with the Google basemap and the street view.
... View more
11-16-2018
10:22 AM
|
0
|
4
|
2592
|
|
POST
|
Darn...I did just that on one of the apps. I included the Google (sttreet and hybrid) basemaps in the basemaps widget and users have to select a Google basemap, before they could use the street view or the Google Earth. Sorry, to prolong the discussion, but I have more question. So, if a user clicks on a location on the ArcGIS app, and pass on the coordinates to open an external app with a Google map and streetview will that be ok? Thanks. Current widget.
... View more
11-16-2018
09:34 AM
|
0
|
6
|
3223
|
|
POST
|
I have this simple code that it displays a graphic. So, geometry is ok. When I attempt to calculate the area of the graphic (line 5) I get this error. Why? Thanks. var newbuffer = geometryEngine.difference(buffer,polygongeom);
newbuffer.setSpatialReference(new SpatialReference({ wkid: 102110}));
var buffergraphic = new esri.Graphic(newbuffer, bufferSym);
var thebufferarea= geometryEngine.geodesicArea(geometryEngine.simplify(buffergraphic.geometry), 'acres');
console.log(thebufferarea)
bufferGraphicsLayer.add(buffergraphic);
------------
this.map.addLayer(bufferGraphicsLayer) the root of the error is at line 559, which is line 5 above.
... View more
11-07-2018
05:55 PM
|
1
|
5
|
3057
|
|
POST
|
On another website, it was stated that examining objects via console.log happens in an asynchronous manner. That explains it.
... View more
10-23-2018
05:21 PM
|
0
|
1
|
1898
|
|
POST
|
THis is proven harder than I thought. I did just that, added a property at the end and run a timeout function until it reads that last property but still I get the i symbol! What I don't understand is that JSON.parse() is a synchronous method, meaning that once it's called it will execute fully, before code execution continues. Why the console.log is not complete? sessionsToLoad = JSON.parse(sessionsString);
console.log(sessionsToLoad);
... View more
10-22-2018
06:21 PM
|
0
|
3
|
1898
|
|
POST
|
I located the problem in JSON.parse. The console.log still shows the i symbol. Perhaps the sessionsString is too large to be parsed? sessionsToLoad = JSON.parse(sessionsString);
console.log(sessionsToLoad);
... View more
10-18-2018
12:32 PM
|
0
|
1
|
1898
|
|
POST
|
Understood. The layerSettings is an object created from reading a local json file. However, it can have a lot of elements depending the polygon that is stored in the file. So, the layerSettings.options needs to be complete before it can be used.
... View more
10-18-2018
09:31 AM
|
0
|
3
|
1898
|
|
POST
|
I modified the code to use promise but still line 16 in the console.log shows the i symbol which means that the graphic was still not ready! console.log(layerSettings.options.geom)
console.log(layerSettings.options.symbol)
console.log(layerSettings.options.attr)
var graphic = new esri.Graphic();
promise1 = graphic.setGeometry(layerSettings.options.geom)
promisesArray.push(promise1)
promise2 = graphic.setAttributes(layerSettings.options.attr)
promisesArray.push(promise2)
promise3 = graphic.setSymbol(layerSettings.options.symbol)
promisesArray.push(promise3)
var handleAllPromises = Promise.all(promisesArray);
handleAllPromises.then(function (values) {
features.push(graphic)
console.log(graphic)
console.log("All the promises are resolved", values);
});
handleAllPromises.catch(function (reason) {
console.log("One of the promises failed with the following reason", reason);
});
... View more
10-17-2018
07:14 PM
|
0
|
5
|
1898
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | 06-08-2026 12:12 PM | |
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|