Initial Release
IRIS Geo Map application is a tool to visualize geographic data by generating interactive maps by using Embedded Python functionality.
Application is using Folium Python library
folium builds on the data wrangling strengths of the Python ecosystem and the mapping strengths of the leaflet.js library. Manipulate your data in Python, then visualize it in on a Leaflet map via folium.
folium makes it easy to visualize data that’s been manipulated in Python on an interactive leaflet map. It enables both the binding of data to a map for choropleth visualizations as well as passing rich vector/raster/HTML visualizations as markers on the map.
https://irisgeomap.demo.community.intersystems.com/csp/irisgeomap/index.csp by using SuperUser | SYS
Read related documentations
To start coding with this repo, you do the following:
git clone https://github.com/mwaseem75/iris-geo-map.git
docker-compose build
docker-compose up -d
zpm "install iris-geo-map"
To get geographic data details we will use GetGeoDetails() function of dc.IrisGeoMap.Folium class. Function requies one address parameter.
Let invoke the function and get the details of “Cambridge MA 02142”
do ##class(dc.IrisGeoMap.Folium).GetGeoDetails("Cambridge MA 02142")
Below is the output
Let us Mark some locations and save it to HTML file.
we will use MarkGeoDetails() function of dc.IrisGeoMap.Folium class.
Function requies two parameter:
1-location/locations(We can pass multiple location by adding “,” in between)
2-HTML file path
Let us run below command to mark Cambridge MA 02142,NY,London,UAE,Jeddah,Lahore and Glasgow on the Map and save it as “irisgeomap_locations.html” file
do ##class(dc.IrisGeoMap.Folium).MarkGeoDetails("Cambridge MA 02142,NY,London,UAE,Jeddah,Lahore,Glasgow","d:\irisgeomap_locations.html")
Below is the view of irisgeomap_locations.html file
Navigate to http://localhost:52773/csp/irisgeomap/index.csp by using SuperUser | SYS
Web application demonstrate below functionlity: