The mapsettings.json file contains two separate types of information:
Mapbox GL viewer settings (center, bounds, etc.)
Vector styles (colour of roads etc.)
The viewer settings are defined under the options key of mapsettings.json, this is where you need to make sure appropriate values are used for the mapdata.mbtiles you are using:
Hi, Rich,
Thank you for your advise. I think this is the point of the map issue from. However I don’t know where to get my country map related values like you said: center and bounds.
in fact, I did it by follow the topical Customising the map web page and copy the mapsetting file from there. Please let me know where and how to get my map appropriate values. Thanks
I have tried to use Singapore location coordinate value to put in as center value. However it is still not come out my map. Can you please to advise what are the correct values for my map? Thanks
What is interesting though is that your latitude settings were out of bounds as they should be within -90 and 90. I would expect some kind of error in logs. Nevertheless, I’m glad you’ve got it running and can proceed.
I am not real understand what is -90 and 90 meaning. the bound value I set as
“bounds”: [ 101.78, 1.203, 105.84, 1.52 ]
which are not more or less 90. Sorry for me confuse on the value come from. by the way, I answer your question is I would like to view as Singapore on center and include Malasia and Indonesia area as well because we may install the devices on those countries as well in the future. Please advise on it. Thanks again.