is there a plugin to sync with lat/long map view?

General discussion about MantisBT Plugins

Moderators: Developer, Contributor

Post Reply
amiens80
Posts: 3
Joined: Aug 14, 2019 12:51 pm

is there a plugin to sync with lat/long map view?

Post by amiens80 » Aug 15, 2019 1:24 am

hi,

i wish to add to every bug a geographic position and show them on a google map (with pin icon).
is there such feature or a plugin to perform that kind ?
Imagine you're a chief of construction and want to collect any problem at several place in the city, we need each bug being associated with a x/y coord position and if we can have a global view on a google map, it would be just PERFECT !

any information of such system with mantis ?

I guess we can add 2 customize user field (longitude + lattitude), but the system to display them such a map remains to develop & code....

i search a system liek that :
red : urgent bug
green : solve
orange : not urgent
Image
Clicking on a pin would display the mantis detail would be very useful !

Thank you for reading me and ever to reply me or advice.

Have a good day

cas
Posts: 687
Joined: Mar 11, 2006 11:08 am
Contact:

Re: is there a plugin to sync with lat/long map view?

Post by cas » Aug 15, 2019 4:26 am

This is a typical example where a plugin is needed. I am not aware of an existing one.
A nice challenge.

MrMaker
Posts: 3
Joined: Jul 01, 2019 6:04 pm

Re: is there a plugin to sync with lat/long map view?

Post by MrMaker » Aug 16, 2019 2:06 am

I think it would be easy enough to create a plugin that could define the custom fields, show a single bug location on a map in details view, and maybe even allow setting location by placing a marker on a map in edit view.

The map with all the bugs shown though would probably be best done outside mantis, using the REST API (or maybe even direct database access to make use of spatial SQL).

Edit: I guess you could do this part as a plugin that adds something to the top or bottom of the bugs list page. Or even a separate page.

cas
Posts: 687
Joined: Mar 11, 2006 11:08 am
Contact:

Re: is there a plugin to sync with lat/long map view?

Post by cas » Aug 16, 2019 4:17 am

Sound like we have a volunteer :D

amiens80
Posts: 3
Joined: Aug 14, 2019 12:51 pm

Re: is there a plugin to sync with lat/long map view?

Post by amiens80 » Aug 16, 2019 10:14 am

MrMaker wrote:
Aug 16, 2019 2:06 am
I think it would be easy enough to create a plugin that could define the custom fields, show a single bug location on a map in details view, and maybe even allow setting location by placing a marker on a map in edit view.

The map with all the bugs shown though would probably be best done outside mantis, using the REST API (or maybe even direct database access to make use of spatial SQL).

Edit: I guess you could do this part as a plugin that adds something to the top or bottom of the bugs list page. Or even a separate page.
a longtime ago, i saw a documentation of the API of google map. you could display pins/marks passing coordoonates into the URL like something like that :
googlemap.htm?t1=45456&l1=1231321&label1=mypin&link=mylinkurl...Etc
maybe it could help to test a easy integration with mantis...
if mantis can "concatenate" bugs from a same category and make a string with url, it would be "easy" to code it!

Post Reply