Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mapshader/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from flask import request
except ImportError:
raise ImportError('You must install flask `pip install flask` to use this module')
from flask_cors import CORS

from mapshader import hello
from mapshader.core import render_map
Expand Down Expand Up @@ -202,6 +203,8 @@ def index_page(services):

def configure_app(app, user_source_filepath=None, contains=None):

CORS(app)

view_func_creators = {
'tile': flask_to_tile,
'image': flask_to_image,
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'matplotlib',
'descartes',
'flask',
'flask-cors>=3.0.10',
'rasterio',
'jupyter',
'pyarrow'],
Expand Down