Home » Javascript » maplight library multiple ploygon images with js, PHP and localstorage

maplight library multiple ploygon images with js, PHP and localstorage

Posted by: admin August 19, 2018 Leave a comment

Questions:

Actually i am working on the multiple images with respect to a specific camera i have all the images with the directory path so when i choose the camera then all the images rows will comes from as json response from php file. And then this response saved in the localstorage with specific id like camera0Images Object and by using this object we can access the images for a specific camera. Everything is working the images are showing on choosing the camera. an image contains the ploygon edges points (x1,y1,x2,y2……).
I am also using maphilight js library https://github.com/kemayo/maphilight in which the ploygon paramters accepts the ploygons points which are attached with each image. But i have stuck in a problem it always hover the last inserted image. I am looking for a solution that all the images should show the ploygon point hovering so that a user can select the different styling of images.
I think i am missing some points can anybody guide me. enter image description here

Answers: