I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
filters: [{dimension: “pe”, items: [{id: “201510”}]}], // period
// All following options are optional
classes: 7,
colorLow: “02079c”,
colorHigh: “e5ecff”,
opacity: 0.9
}],
baseLayer :“gs”
});
});
···
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
Thank you for your quick answer, I tried that but I have the same problem. (I don’t think it’s a problem of authentication since my script is inside the platform (it’s an HTML standard report)).
However, I got on the console some other errors but I don’t know if it’s related.
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
By looking at your screenshoot, it seems like you’re loading version 2.22 (or before) of the GIS app.
This version is no longer supported. Could you test with DHIS 2.26?
Bjørn
···
On Mon, May 15, 2017 at 4:51 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hi Bjørn,
Thank you for your quick answer, I tried that but I have the same problem. (I don’t think it’s a problem of authentication since my script is inside the platform (it’s an HTML standard report)).
However, I got on the console some other errors but I don’t know if it’s related.
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
By looking at your screenshoot, it seems like you’re loading version 2.22 (or before) of the GIS app.
This version is no longer supported. Could you test with DHIS 2.26?
Bjørn
On Mon, May 15, 2017 at 4:51 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hi Bjørn,
Thank you for your quick answer, I tried that but I have the same problem. (I don’t think it’s a problem of authentication since my script is inside the platform (it’s an HTML standard report)).
However, I got on the console some other errors but I don’t know if it’s related.
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
update: That works ! At you said, if I specify the height in the css that works ! But I have to do it directly on the html div (style=“height: 300px”) because the plugin overwrites the class of the div
Thank you for your help !
···
2017-05-23 9:36 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hi Bjorn !
Thank you for your answer.
Yes it is, It’s running on v2.26 but I don’t see why the 2.26 map plugin would use the 2.22 version of the Web API.
I changed the basemap to googleStreets but nothing changed.
The div is already 400x300px in CSS.
Thank you for your help.
I see you added a task to make work the sample site:
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
Yes the map load in the GIS App, but when I call it in another App that i’m developping I have this error.
When I set up a simple map whithout facilities it works good, so the problem is showing the facilities but I don’t see any solution.
Please find attached the custom map that I’m trying to show and the codes.
Thank you again.
Diao
···
On Wed, May 31, 2017 at 4:00 PM, Bjørn Sandvik bjorn@dhis2.org wrote:
Hi Diao,
So the maps load in the GIS App, but not as a plugin?
Could you email me code you use to create the map?
On Mon, May 15, 2017 at 2:44 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hello !
I am able to show a map when doing a custom map but there’s a permanent message saying “loading” and no data. I dot that with that code. Hay anyone been successful using maps ?
Thanks !
Here the code :
Ext.onReady( function (){
DHIS.getMap({
url: base,
el: “map1”,
mapViews: [{
columns: [{dimension: “de”, items: [{id: “ABCD…”}]}], // data
2017-05-08 15:10 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:
Hello,
I am trying to put a custom map in a web page. I experimented some issued and I decided to start doing the most basic case: an existing map. There’s no errors on the webpage but the map doesn’t appear on the div.
HI @software_developer20,
Would you please explain the issue further with a bit more details and maybe a screenshot. The topic you are responding to is 4 years old so things eventually get updated. Thank you!
Hello @Gassim. Thanks in advance
I am trying to embed dhsh2 map in my javascript application but as you are aware the links in the documentation are no longer working, so I downloaded the chartPlugin and the mapPlugin contents and it worked perfectly when I pull a chart but anytime I try to pull a map i get an error which tells DHIS is not defined, I think this might be a problem relative to my links. I am going attached the screenshot of the code, the links and the error I am getting.