← Back to team overview

dhis2-devs team mailing list archive

Re: Fwd: An issue in the GIS map plug-in - legendSet id

 

Hi Chameera,

which version of DHIS 2 are you using?

If not 2.23, could you try upgrading?

regards,

Lars



On Tue, May 10, 2016 at 9:37 AM, Morten Olav Hansen <morten@xxxxxxxxx>
wrote:

> I'm adding in Jan, I have never actually used the plugin :)
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Tue, May 10, 2016 at 2:28 PM, Chameera Mirihella <
> chameera9019@xxxxxxxxx> wrote:
>
>> Hi Morten,
>>
>> Yes you are correct. i was using the v217 libraries and i changed to v221
>> and api issue solved.
>> but two new errors are there now, after upgrade to v221.
>>
>> 2nd error is quite okay, probably the google map api is included in
>> map.js also, but first one.
>>
>> please let me know whether you are able to identify it.
>>
>> [image: gis-error.png]
>>
>> i did exactly as described in the v221 doc.
>> http://dhis2.github.io/dhis2-
>> docs/2.21/en/developer/html/dhis2_developer_manual.html
>>
>>
>>  pre-defined maps are working fine with no errors.
>>
>> according to what I tried so far, I suspect the "columns" property in the
>> mapViews.
>>
>> (everything is hard coded for testing purpose)
>>
>> [image: gis-error-code.png]
>>
>> Thanks,
>> Chameera.
>>
>> On Tue, May 10, 2016 at 12:40 PM Chameera Mirihella <
>> chameera9019@xxxxxxxxx> wrote:
>>
>>> Hi Morten,
>>>
>>> Yes you are correct. i was using the v217 libraries and i changed to
>>> v221 and api issue solved.
>>> but two new errors are there now, after upgrade to v221.
>>>
>>> 2nd error is quite okay, probably the google map api is included in
>>> map.js also, but first one.
>>>
>>> please let me know whether you are able to identify it.
>>>
>>> [image: gis-error.png]
>>>
>>> i did exactly as described in the v221 doc.
>>> http://dhis2.github.io/dhis2-
>>> docs/2.21/en/developer/html/dhis2_developer_manual.html
>>>
>>>
>>>  pre-defined maps are working fine with no errors.
>>>
>>> according to what I tried so far, I suspect the "columns" property in
>>> the mapViews.
>>>
>>> (everything is hard coded for testing purpose)
>>>
>>> [image: gis-error-code.png]
>>>
>>> Thanks,
>>> Chameera.
>>>
>>>
>>> On Mon, May 9, 2016 at 4:41 PM Chameera Mirihella <
>>> chameera9019@xxxxxxxxx> wrote:
>>>
>>>> Thank you so much bharath sir.
>>>>
>>>> On Mon, May 9, 2016 at 4:39 PM Bharath <chbharathk@xxxxxxxxx> wrote:
>>>>
>>>>> ok, Feel free to write ot me if you have any questions.
>>>>>
>>>>> On Mon, May 9, 2016 at 4:29 PM, Chameera Mirihella <
>>>>> chameera9019@xxxxxxxxx> wrote:
>>>>>
>>>>>> Hello Bharath Sir,
>>>>>>
>>>>>> oh I didn't know that, I tried with this only,
>>>>>>
>>>>>> http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s29.html#d5e3740
>>>>>>
>>>>>> but the code is same in both docs and source files included in there,
>>>>>> are old, v215 only.
>>>>>> I changed to v221, now the api issue is fixed but another issue
>>>>>> raised.
>>>>>>
>>>>>> I will come up with full details, after I make sure it cannot be
>>>>>> fixed in  the code.
>>>>>>
>>>>>> Thanks,
>>>>>> Chameera.
>>>>>>
>>>>>> On Mon, May 9, 2016 at 2:48 PM Bharath <chbharathk@xxxxxxxxx> wrote:
>>>>>>
>>>>>>> Hi Chameera,
>>>>>>>
>>>>>>> Hope u r referring to this manual:
>>>>>>>
>>>>>>> http://dhis2.github.io/dhis2-docs/2.21/en/developer/html/dhis2_developer_manual.html
>>>>>>>
>>>>>>> On Mon, May 9, 2016 at 2:18 PM, Chameera Mirihella <
>>>>>>> chameera9019@xxxxxxxxx> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Thanks for the reply.
>>>>>>>>
>>>>>>>> legend set uid is correct. I think the issue is with the api call.
>>>>>>>>
>>>>>>>> currently system calls to this url
>>>>>>>> ../dhis/api/*mapLegendSets*/legendSetUID.json
>>>>>>>>
>>>>>>>>
>>>>>>>> but actual legend set resource is available with this url
>>>>>>>> ../dhis/api/*legendSets*/legendSetUID.json
>>>>>>>>
>>>>>>>> is this a bug ?
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Chameera.
>>>>>>>>
>>>>>>>> On Mon, May 9, 2016 at 1:53 PM Morten Olav Hansen <morten@xxxxxxxxx>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi
>>>>>>>>>
>>>>>>>>> Seems you are getting a 404.. which means that the object UID is
>>>>>>>>> not correct, maybe you need to double check it?
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Morten Olav Hansen
>>>>>>>>> Senior Engineer, DHIS 2
>>>>>>>>> University of Oslo
>>>>>>>>> http://www.dhis2.org
>>>>>>>>>
>>>>>>>>> On Mon, May 9, 2016 at 3:21 PM, Chameera Mirihella <
>>>>>>>>> chameera9019@xxxxxxxxx> wrote:
>>>>>>>>>
>>>>>>>>>> please see the forwarded message.
>>>>>>>>>> any suggestion is appreciated.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Chameera.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ---------- Forwarded message ---------
>>>>>>>>>> From: Chameera Mirihella <chameera9019@xxxxxxxxx>
>>>>>>>>>> Date: Fri, May 6, 2016 at 2:46 PM
>>>>>>>>>> Subject: An issue in the GIS map plug-in - legendSet id
>>>>>>>>>> To: dhis2-devs@xxxxxxxxxxxxxxxxxxx <
>>>>>>>>>> dhis2-devs@xxxxxxxxxxxxxxxxxxx>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hello team,
>>>>>>>>>>
>>>>>>>>>> We try to embed a map with the GIS map plug-in as explained in
>>>>>>>>>> this article.
>>>>>>>>>>
>>>>>>>>>> http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s29.html#d5e3740
>>>>>>>>>>
>>>>>>>>>> system version is DHIS 2.21
>>>>>>>>>>
>>>>>>>>>> everything works fine other than this legendSet object in
>>>>>>>>>> mapViews property. when we include legend set with predefined id, it gives
>>>>>>>>>> this error in the console and stop further processing.
>>>>>>>>>>
>>>>>>>>>> [image: gis map plug-in error.png]
>>>>>>>>>>
>>>>>>>>>> our requirement is to generate a particular map with predefined
>>>>>>>>>> legendSet using gis map plug-in.
>>>>>>>>>>
>>>>>>>>>> any suggestion is appreciated.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Chameera.
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>>>>>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>>>>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>>>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> Regards,
>>>>>>> Bharath Kumar. Ch
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Regards,
>>>>> Bharath Kumar. Ch
>>>>>
>>>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
lars@xxxxxxxxx
http://www.dhis2.org <https://www.dhis2.org/>

PNG image

PNG image

PNG image


Follow ups

References