Integrate Js Apis in AngularJs

36 views
Skip to first unread message
Assigned to acruc...@gmail.com by me

Alessio Cruciani

unread,
Sep 6, 2017, 12:47:23 PM9/6/17
to mapstore-users, Giovanni Sammarco
Hi everybody,
I am new to MapStore2, and as i am really interested in this project and especially about Javascript APIs, i spent few days trying to implement Mapstore in a maven project based on Angular, but my test weren't successful.

I have read the documentation but have not found anything that could be helpful to me.

So my question is: Did anyone try to implement MS2 in angular? How can React be compatible with Angular? Any experiences about this that you'd like to share?


Thanks in advance to you all, any help would be appreciated.
Alessio.

Mauro Bartolomeoli

unread,
Sep 7, 2017, 6:04:12 AM9/7/17
to mapstor...@googlegroups.com
Hi Alessio,
there are bridges to use ReactJS components in AngularJS. Here are some I found googling:


Basically what you need to do is to wrap a ReactJS component into an AngularJS directive.

I don't know if this is still applicable to Angular2.

That said, MapStore2 is not only a set of ReactJS components, but you can use them ignoring the rest of the project, if you want. It really depends on what you want to do with MS2. For example if you only need an agnostic map (that can switch from OL3 and Leaflet seamlessly), you can play with the components in web/client/components/map, but if you need more, things could get more complicated.
If you need an embedded map, you can probably use the JS API, as you mentioned, so try to describe the issues you had and we'll try to help.

Could you describe a little bit your scenario and where you got stuck so that we can understand if there is a viable way for you?

Thanks
Mauro

--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-users+unsubscribe@googlegroups.com.
To post to this group, send email to mapstore-users@googlegroups.com.
Visit this group at https://groups.google.com/group/mapstore-users.
For more options, visit https://groups.google.com/d/optout.



--

Regards,

Mauro Bartolomeoli

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information.
==

Dott. Mauro Bartolomeoli
@mauro_bart
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


Reply all
Reply to author
Forward
0 new messages