-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-1220] Add geographical map as visualization option #1210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@mwpenny Thanks for the PR However, in term of license, I'm still not sure if this could be included or not. |
|
@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. |
|
@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 Sorry for the delay, I got a bit busy. |
|
@corneadoug Done |
|
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 |
|
I have made the changes/fixes you mentioned and rebased with master. I can create the PR for the documentation after this is merged. |
|
@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 |
zeppelin-web/src/index.html
Outdated
| <!-- 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
|
|
@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! |
|
@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 |
|
@mwpenny Thanks for the awesome work. |
|
@karup1990 Which browser are you using and what is its version? That looks like Chrome. |
|
I am using Google Chrome Version 52.0.2743.116 (64-bit) @mwpenny |
|
BTw, I tried on Safari just now. And works great :) |
|
@karup1990 I have installed the same version of Chrome and am unable to reproduce the issue. Does clearing your browser cache and cookies help? |
|
I cleared the browser cache and cookies. Still see only the pins @mwpenny |
|
@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 |
|
Could be related to the CSS maybe. Any chance it need the css before rendering the map? |
|
@corneadoug When I test it without the CSS, the tiles still load but they're not positioned properly (they extend outside of the paragraph). |
|
@corneadoug There are no errors on console. |
|
@karup1990 Are you able to test with a fresh Chrome installation (e.g,. using another computer on the same network)? |
|
adding the following css fixed the issue for safari and chrome |
|
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. |
|
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 <[email protected]> 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 <[email protected]> Closes apache#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 <[email protected]> Closes apache#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
|
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. |
|
@volumeint cool! Do you mind make a pullrequest with modification |
|
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: