AWS Lambda function: Wrapper around Mapbox Map generator for GEOJSON

已完成 已发布的 7 年前 货到付款
已完成 货到付款

I want to be able to POST a GEOJSON string to an endpoint and get back an URL to a static image where the GEOJSON geometry is rendered on top. The static image is useful to send by email, share in a chat etc compared to a interactive JavaScript map.

The heavy lifting is done by Mapbox:

[login to view URL]

The API allows you to just put the GEOSJON in the URL. So why not just do that? I would like the function to do 2 things, that Mapbox does not do:

1) Calculate where to center and zoom in on the map

The map needs to match the polygons in the GEOJSON file. Luckily Mapbox already provides inspiration of how to do that:

[login to view URL]

2) Store the image on a shorter URL

Some browsers have issues with URLs longer than around 2000 chars. And some GEOJSON strings will be longer. So we need to store the generated image somewhere.

I'm open to suggestions, but [login to view URL] or just S3 might work. I don't think an URL shortener will work, as it redirects to the real and potentially long URL.

Implementation

I would like this to be implemented in server side JavaScript (node) as a AWS Lambda function.

I've attached a sample GEOSJON file.

Amazon Web Services JavaScript

项目ID: #11412793

关于项目

6个方案 远程项目 活跃的7 年前

授予:

intelgeek

Hey there, I've got extensive experience with Amazon AWS and other cloud computing services. You can confirm this by checking out my profile page, you will see lots of AWS related projects. I'm well versed in Linux 更多

$260 USD 在5天内
(52条评论)
5.7

有6名威客正在参与此工作的竞标,均价$208/小时

arifjaunpur

Hello, I am Sr. web developer have strong debugging and coding skills. I am full stack developer with good knowledge of Java, PHP, JavaScript, MySQL, MongoDB, AngularJS, JQuery, HTML, Bootstrap, etc. I have creat 更多

$300 USD 在7天内
(86条评论)
6.7
lawSamuels

Hello i can deliver this project. i have done many similar photo editing projects in the past. I am confident of delivery. Please let me know if you wish to take it further

$155 USD 在3天内
(1条评论)
2.4