Closed FrancisG-Massey closed 8 years ago
what browser are you using?
Chrome
You may want to check what the behaviour is when coord_lat and coord_long have unrealistic values, e.g. way too high or low, off the map, off the world
If one trap is "located" on the other side of the world, will it try to display it on the map? Will it try to load every map tile on the earth?
I was using first trap's existing lat and lang coords to set the view as default. I am creating the map view to take the center it around the max / min long / lat values at the moment.
Hmm well you map want to dump the coordinates to console right before the map is loaded, even just to check that they'll all consistent and what the map API expects:
Cannot read property 'coord_lat' of undefined.
possibly coord_lat has a bad value, or the object which stores it could be null pointering?
When pressing "view map" on the trap-admin page, the following error gets logged:
As a result, only the top-left map tile gets loaded & the trap icons don't properly fill the screen (as they did previously):