[Oskari-user] Need Help
Aarnio Timo (MML)
timo.aarnio at maanmittauslaitos.fi
Mon Apr 8 01:15:32 PDT 2019
Hi!
You do need to set up Oskari first unless you have an instance you can use to create an embedded map. If you have an existing instance that you can use you can just create the embedded map there and then start using the RPC API as instructed in the documentation.
Guessing from your use case you might want to check the drawing request, handling the map state (save/load) and feature-related functions/requests/events. Since you want to save/load the users’ input you need to develop those separately and then pass data you get from the RPC API back and forth.
Cheers,
Timo
From: SACHIN GUPTA <sachingupta2206 at gmail.com>
Sent: torstai 4. huhtikuuta 2019 14.19
To: Aarnio Timo (MML) <timo.aarnio at maanmittauslaitos.fi>
Subject: Re: [Oskari-user] Need Help
Hi Aarnio,
Thanks for your reply and time. It will relay help me to understand the things.
Add 1) According to your reply can I assume I need to use only RPC library, No Oskari Backend setup, No Oskari frontend setup and no Oskari server setup?
Add 2) You could draw the features on the map utilizing the RPC API : Is there any function available to set map data? like init function where we can set initial state for map.
Let me explain my requirement with a simple use case:
In my website a logedin user can see the Map screen, he can draw a polygon and saved the map. After some time he can view the previously saved Map with the polygon. He can edit the map and polygon.
Thanks,
Sachin
On Thu, 4 Apr 2019 at 16:10, Aarnio Timo (MML) <timo.aarnio at maanmittauslaitos.fi<mailto:timo.aarnio at maanmittauslaitos.fi>> wrote:
Hello and thank you for your interest in Oskari!
Regarding your questions I’m afraid I cannot give you a definite answer, as it depends on many things. Anyway:
1. If you want to achieve this using an embedded map you just develop the functionality/service utilizing Oskari RPC API, the RPC Example page will help you get started: http://oskari.org/examples/rpc-api/rpc_example.html - see e.g. “Drawing requests” for learning how to be able to draw polygons and how to get the polygon coordinates so that they can be saved in the DB.
2. Not sure what you mean by saved map, but if you refer to the polygons saved in the first question this is something that can be achieved in many ways. You could set up a WMS / WFS interface that serves the saved data and configure that as a map layer in your Oskari instance or you could draw the features on the map utilizing the RPC API.
Hope this helps you get started!
Kind regards,
Timo Aarnio
From: Oskari-user <oskari-user-bounces at lists.osgeo.org<mailto:oskari-user-bounces at lists.osgeo.org>> On Behalf Of SACHIN GUPTA
Sent: torstai 4. huhtikuuta 2019 11.38
To: Oskari-user at lists.osgeo.org<mailto:Oskari-user at lists.osgeo.org>
Subject: [Oskari-user] Need Help
Hello,
I want to integrate your Map service with our Angular project. I have gone trough the API document already. I have some quires regarding API implementation:
(1) I want to display Map screen on our website in which user can draw some polygon and save it to our on DB. How can I do this? Is it possible to use only RPC client library for this purpose?
(2) How can I display saved map? basically where I need to set let,log and polygon information to display previously saved map?
Thanks,
Sachin Gupta
Willing is not enough, We must do....
--
Thanks with kind Regards,
Sachin Gupta
Skype: sachingupta2206
Contact No: +91 9754930813
Willing is not enough, We must do....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/oskari-user/attachments/20190408/fc136cac/attachment.html>
More information about the Oskari-user
mailing list