How to use external data when using ArcGIS API for JavaScript - arcgis

I am building a dashboard(web app) to present the landslide related data. I have some external maps (slope, drainage and etc). I want to show them as layers in the web app. I was unable to find a correct way of doing so. Can someone suggest a solution?

You mentioned in your comment that you're trying to map Shapefiles. If you want to load your Shapefiles into the map from the JavaScript API, there's a sample here that shows you how to load that file into the map.
If you'd like to add it to your Web Map so that you can view it in an app, you can do that too, just go to the Arcgis.com Map page and click Add > Layer from File (more info).

Related

How to get Labels to appear on markers in ArcGis Maps webpart for SharePoint?

I'm using the Arcgis Maps web part for SharePoint. I can get my markers / pins to appear, now I'm trying to get labels to appear identifying each. How do I go about this?
Please see screenshot below:
I've managed to find work around by simply building the map using Arcgis's Online tool (Arcgis Online) I'm not sure if the webpart is buggy, but the Online version is simple and intuitive. I pulled the map into a Web Page Viewer web part. It works very well.

How to load a local shape or geojson file in to leaflet in Asymmetrik/ngx-leaflet?

I am using Asymmetrik/ngx-leaflet to build a map based application which can load and view external shape files. Is there any way to show local shape files?
It looks like there's a Leaflet plugin for shapefiles. I don't know if it's up to date, but you might start there.
There's also a tutorial on how to integrate third party plugins with #asymmetrik/ngx-leaflet.
Read through the examples to get a sense of how to get the plugin loaded into your Angular app. Then, you probably just need to create your shapefile layer and add it to the layers array that is bound to ngx-leaflet just like any other layer.

Image Panel that Displays Images Based on Spatial Extent in ArcGIS WebAppBuilder

Does anyone know of a way of possibly making a side panel in a webapp for ArcGIS Online that would allow images to be displayed that are either attached to point location data, or have a URL in the table. I would like to images to appear based on the current extent of the map and disappear when no longer in view on the map.
I'm not aware of any widgets that would do this out-of-the-box, but I think it would be a great case to create a custom widget for use with Web AppBuilder Developer Edition.
As you start working with Web AppBuilder more, some other useful resources include the GIS StackExchange, and the Web AppBuilder Custom Widgets GeoNet Group.

Extract graph image using PhantomJs

I use jqplot to create a complex data graph for a clinical web application using IE7. Now, I need to create a PDF and the graph is part of the PDF.
Since it is IE7, I can't export jqplot graph as an image.
My plan is:
From the web app, user clicks on a button to send the graph data (JSON) to a web service on a remote server.
On the remote server, I will have a HTML page to be built dynamically by PhantomJS using the JSON data passed to the web service.
When the page load is complete, I will "rasterize ??" the page to get the graph image.
I will use this image in building my PDF using package like jsPDF.
Return the PDF URI back to the web app.
Does this make any sense at all? I struggle on how to integrate all the moving parts together. Any suggestions?

Creating a image browser Boxee App

I am writing a Boxee App and I want to list all albums for a picasa account.
The problem I'm facing is that I have no idea of how to list albums and photos in the Boxee app.
The application itself should be fairly simple:
First a main screen where all your albums are listed, then when you click an album you see all your photos in a grid of say 4x5 photos
When you click a photo you go in to a view where one photo is displayed on the whole screen where back and forward lets users go back and forth in that gallery.
I have wrote a simple wrapper arround the gdata photos Python API which I was aiming to use so hopefully all the heavy lifting will be done by the gdata API.
Does anybody have some good links to example applications or tutorials to one or more of the features I want in the application?
Boxee uses an XML based approach for describing an application's interface. You'll need one XML for each screen of your application and you'll connect them together using the API.
You would build this XML screens using various controls defined by the XML API. Basically a control (a button, a list, a label, etc) is described as an XML node with attributes and child nodes. You can check a list of all the available controls here: http://developer.boxee.tv/UI_Controls
You can use the Python API to control various properties of the UI elements you coded in your XML files. For example you could fill a list with photos taken from a server, you could change the label on a button, load another screen and much more. Here are the Python API specs: http://developer.boxee.tv/Python_API
Make sure you read trough the Boxee dev pages and also remember that Boxee originated from the XBMC project so most of the documentation regarding XBMC skinning (http://wiki.xbmc.org/?title=Skinning_XBMC) also applies to Boxee.
Another thing that might help you is looking at other apps. Find an app that is somehow similar to what you want to do, find it in Boxee's app folder and peek at the code there.