Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating map areas from file #410

Open
vikobeibe opened this issue Oct 29, 2019 · 0 comments
Open

Updating map areas from file #410

vikobeibe opened this issue Oct 29, 2019 · 0 comments

Comments

@vikobeibe
Copy link

vikobeibe commented Oct 29, 2019

Hello,
I am trying to load areas into the map. To do this I am making an Ajax call to a PHP script which then returns the areas formatted:

{
   "GH":{
      "value":"4",
      "tooltip":{
         "content":"<span style='font-weight:bold;'>GH</span><br />Hits : 4"
      }
   },
   "TR":{
      "value":"27",
      "tooltip":{
         "content":"<span style='font-weight:bold;'>TR</span><br />Hits : 27"
      }
   }
}

The data is stored in a variable msg and I'd like to use this variable when loading the map. However, I am not sure how to do this. In my script, If I simply do

},
areas: msg
...

nothing happens. I guess it should be extremely easy to use the Ajax response and feed it to the map but after a whole day trying I decided to ask for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant