-
Notifications
You must be signed in to change notification settings - Fork 1.4k
"Start map at my position" gives error #2532
Copy link
Copy link
Open
Labels
Description
Expected Behavior
When enabling 'Start map at my position' the map is expected to start on my position
Current Behavior
On PC it gives the following error in internet explorer but renders the page:
SCRIPT5007: Unable to get property 'style' of undefined or null reference
map.min.js (5,42596)
On Chrome it gives the following error and leaves the map unusable:
jQuery.Deferred exception: Cannot read property 'style' of null TypeError: Cannot read property 'style' of null
at http://mymap.com/static/e6fd1d2/dist/js/map.min.js:5:42947
at sendBackResponse (<anonymous>:17:17)
at <anonymous>:37:21
at Geolocation.navigator.geolocation.getCurrentPosition (<anonymous>:44:13)
at centerMapOnLocation (http://mymap.com/static/e6fd1d2/dist/js/map.min.js:5:42682)
at HTMLDocument.<anonymous> (http://mymap.com/static/e6fd1d2/dist/js/map.min.js:5:56821)
at j (https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:29999)
at k (https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:30313) undefined
Uncaught TypeError: Cannot read property 'style' of null
at map.min.js:5
at sendBackResponse (<anonymous>:17:17)
at <anonymous>:37:21
at Geolocation.navigator.geolocation.getCurrentPosition (<anonymous>:44:13)
at centerMapOnLocation (map.min.js:5)
at HTMLDocument.<anonymous> (map.min.js:5)
at j (jquery.min.js:2)
at k (jquery.min.js:2)
Uncaught TypeError: Cannot read property '238' of undefined
at pokemonLabel (map.min.js:5)
at customizePokemonMarker (map.min.js:5)
at processPokemon (map.min.js:5)
at Object.<anonymous> (map.min.js:5)
at Function.each (jquery.min.js:2)
at processPokemonChunked (map.min.js:5)
at processPokemons (map.min.js:5)
at Object.<anonymous> (map.min.js:5)
at i (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
Possible Solution
Steps to Reproduce (for bugs)
- Enable 'start map at my position'
- Close the page
- Reopen the map
- (2 and 3 can be omitted with a force-refresh of the page)
Context
Your Environment
- Version used: Latest
- Environment name and version (e.g. Python 2.7):
- Operating System and version (desktop or mobile): Desktop
Reactions are currently unavailable