Uh oh!
There was an error while loading. Please reload this page.
[ZEPPELIN-1220] Add geographical map as visualization option - #1210
[ZEPPELIN-1220] Add geographical map as visualization option#1210mwpenny wants to merge 22 commits into
Conversation
corneadoug
commented
Jul 21, 2016
@mwpenny Thanks for the PR However, in term of license, I'm still not sure if this could be included or not. |
mwpenny
commented
Jul 21, 2016
@corneadoug, The Esri angular module is used to download and lazy load the JS API and require its various classes. These classes are then used to display the dynamically downloaded map tiles and render the different map layers (i.e., basemap + pin layer). The angular module was developed by Esri and released under the Apache 2.0 license. They state on their website that "The JavaScript API [downloaded by the angular module] is hosted by Esri and is available for free use". Esri also has a public Apache 2.0-licensed repo of samples (Esri/quickstart-map-js) which use the API. |
ErikApption
commented
Jul 22, 2016
@corneadoug This is a great feature! ESRI is by far the most complete mapping component and the base maps are totally free (unlike gg or bing), plus their API is open source. What would be the next step to get this PR accepted? |
mwpenny
commented
Jul 22, 2016
corneadoug
commented
Jul 29, 2016
@mwpenny Sorry for the delay, I got a bit busy. |
mwpenny
commented
Jul 29, 2016
@corneadoug Done |
corneadoug
commented
Aug 2, 2016
Alright, so after taking a look, here are my feedbacks: Overall PR
The Map
Options & Pivot
I will spend more time on checking the code, and would leave inline comments if there is |
mwpenny
commented
Aug 3, 2016
I have made the changes/fixes you mentioned and rebased with master. I can create the PR for the documentation after this is merged. |
corneadoug
commented
Aug 10, 2016
@mwpenny I tested it again, its so much better now. You will need to rebase your branch (conflicts, always conflicts) We could probably improve the marker's popup by adding a bit of padding so that its not too white? Also depending on the paragraph height and the number of infos to show, it seems the popup header is hidden |
| <!-- endbuild --> | ||
| <link rel="stylesheet" ng-href="assets/styles/looknfeel/{{looknfeel}}.css" /> | ||
| <link rel="stylesheet" href="assets/styles/printMode.css" /> | ||
| <link rel="stylesheet" href="//js.arcgis.com/4.0/esri/css/main.css" /> |
There was a problem hiding this comment.
Any way to have this CSS file locally? It seems it is not inside of angular-map-esri and the map is not rendering well without it.
If the license allows it, it would better to include it in the code assets/styles/ since some people do not have access to internet when using Apache Zeppelin
There was a problem hiding this comment.
Actually it doesn't matter, we can't use ESRI maps without internet
…logitude columns in data
… using other graph modes
@corneadoug I'm all too familiar with that magic when trying to reproduce bugs ;) I've made the changes.
|
corneadoug
commented
Aug 12, 2016
@mwpenny With the way we include the css, there is still a risk of not being able to get the css, but having the JS file just fine. Except for that, LGTM, awesome work! |
@corneadoug The CSS and JavaScript come from the same server. Is the CSS timing out for you but not the JS? Or is the CSS just loading late? And good to hear! |
corneadoug
commented
Aug 16, 2016
@mwpenny CSS loading late I guess, but there is also a possibility that the resource is not available for whatever reason. It is not critical for now, but since there is a risk of map not showing for some users without any error message (creating more traffic in the mailing list), it would be nice to try to address it in a different PR maybe. Merging if there is no more discussions |
karuppayya
commented
Aug 17, 2016
@mwpenny Thanks for the awesome work. |
mwpenny
commented
Aug 17, 2016
karuppayya
commented
Aug 17, 2016
@karup1990 Which browser are you using and what is its version? That looks like Chrome. |
karuppayya
commented
Aug 17, 2016
I am using Google Chrome Version 52.0.2743.116 (64-bit) @mwpenny |
karuppayya
commented
Aug 17, 2016
BTw, I tried on Safari just now. And works great :) |
mwpenny
commented
Aug 17, 2016
@karup1990 I have installed the same version of Chrome and am unable to reproduce the issue. Does clearing your browser cache and cookies help? |
karuppayya
commented
Aug 17, 2016
I cleared the browser cache and cookies. Still see only the pins @mwpenny |
mwpenny
commented
Aug 17, 2016
@karup1990 This is very strange. I cannot reproduce the issue using the same browser version and your network doesn't seem to be the problem since it is working for you in Safari. The only other thing I can think of is a browser setting or extension interfering somehow. Try running Chrome with the |
corneadoug
commented
Aug 17, 2016
Could be related to the CSS maybe. Any chance it need the css before rendering the map? |
mwpenny
commented
Aug 18, 2016
@corneadoug When I test it without the CSS, the tiles still load but they're not positioned properly (they extend outside of the paragraph). |
karuppayya
commented
Aug 18, 2016
@corneadoug There are no errors on console. |
mwpenny
commented
Aug 19, 2016
@karup1990 Are you able to test with a fresh Chrome installation (e.g,. using another computer on the same network)? |
tabraiz12
commented
Aug 31, 2016
adding the following css fixed the issue for safari and chrome |
karuppayya
commented
Aug 31, 2016
Works fine for me after the change. Thanks @tabraiz12 |
Dear @mwpenny and Zeppelin PMC. I have reviewed the license of ArcGIS Online https://developers.arcgis.com/terms/ and and http://www.esri.com/legal/software-license.
and
Apache 2 License does not have restriction about monetization of Apache Zeppelin. However ArcGIS Online license has incompatible restriction. Also the client is loading arbitrary code (javascript) dynamically from some remote server on runtime and we can not guarantee what kind of code will be executed on our user's machine. Therefore, unfortunately, we might need to remove this changes from our source tree. |
Leemoonsoo
commented
Oct 10, 2016
Visualizations have incompatible license can be packaged as a Helium application and loaded dynamically. Soon, there will be highlevel api to make visualization easier based on helium. |
… incompatible license ### What is this PR for? According to https://developers.arcgis.com/terms/ and and http://www.esri.com/legal/software-license, current map visualization depends on an online service that has incompatible restrictions to Apache 2 license. Please see #1210 (comment) Possible alternative way is explained [here](#1210 (comment)). I'm very sad to remove this very good contribution. So please anyone review the license and comment here if you have other opinions, or other way around. ### What type of PR is it? [Task] ### Todos * [x] - remove implementation from source tree ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1532 ### Questions: * Does the licenses files need update? yes * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Lee moon soo <moon@apache.org> Closes#1501 from Leemoonsoo/ZEPPELIN-1532 and squashes the following commits: b5ad91a [Lee moon soo] Remove map visualization dad81c4 [Lee moon soo] Remove map visualization from source tree
… incompatible license ### What is this PR for? According to https://developers.arcgis.com/terms/ and and http://www.esri.com/legal/software-license, current map visualization depends on an online service that has incompatible restrictions to Apache 2 license. Please see apache#1210 (comment) Possible alternative way is explained [here](apache#1210 (comment)). I'm very sad to remove this very good contribution. So please anyone review the license and comment here if you have other opinions, or other way around. ### What type of PR is it? [Task] ### Todos * [x] - remove implementation from source tree ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1532 ### Questions: * Does the licenses files need update? yes * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Lee moon soo <moon@apache.org> Closesapache#1501 from Leemoonsoo/ZEPPELIN-1532 and squashes the following commits: b5ad91a [Lee moon soo] Remove map visualization dad81c4 [Lee moon soo] Remove map visualization from source tree
… incompatible license ### What is this PR for? According to https://developers.arcgis.com/terms/ and and http://www.esri.com/legal/software-license, current map visualization depends on an online service that has incompatible restrictions to Apache 2 license. Please see apache#1210 (comment) Possible alternative way is explained [here](apache#1210 (comment)). I'm very sad to remove this very good contribution. So please anyone review the license and comment here if you have other opinions, or other way around. ### What type of PR is it? [Task] ### Todos * [x] - remove implementation from source tree ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1532 ### Questions: * Does the licenses files need update? yes * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Lee moon soo <moon@apache.org> Closesapache#1501 from Leemoonsoo/ZEPPELIN-1532 and squashes the following commits: b5ad91a [Lee moon soo] Remove map visualization dad81c4 [Lee moon soo] Remove map visualization from source tree
volumeint
commented
May 2, 2017
I just published a helium visualization that uses Leaflet. You can find it at (https://github.com/volumeint/helium-volume-leaflet). To get it working, I first had to patch webpack.config.js in zengine 0.8.0-SNAPSHOT to add a test for png files. Leaflet has two png files referenced in their CSS. |
Leemoonsoo
commented
May 2, 2017
@volumeint cool! Do you mind make a pullrequest with modification |
volumeint
commented
May 8, 2017
Just closing the loop. Pull Request #2313 contained the webpack.config.js change. It has been merged into master. |












What is this PR for?
Added a 2D Esri map as a graph option for paragraphs. This makes it easier to visualize relations in geographical data.
Pins are plotted at points in specified longitude/latitude columns and customizable column values are shown when pins are clicked. Is this of interest?
The angular-esri-map module is used, which is released under the Apache 2.0 license, and the JavaScript API is free to use (see https://developers.arcgis.com/terms/).
What type of PR is it?
Feature
What is the Jira issue?
ZEPPELIN-1220
How should this be tested?
Execute a query in a paragraph and select the map pin from the chart type selector.
Set the longitude/latitude (and optionally, pin info) columns, then interact with the map.
Screenshot
Questions: