How to change MapTile in ofxMaps

Hi! Thanks for seeing this topic. I’m an oF newbie.

I’m trying to run the example in ofxMaps Add-on , and It succeeded.
Then, I want to change MapTile in this map next.
I have some URLs of MapTile for example -> * http://www.toolserver.org/tiles/bw-mapnik/{z}/{x}/{y}.png and changed “provider.json”, but I couldn’t get tile images in this project. (I think I have to add more change in this add-on.)
Do you know about how to change MapTile in this add-on? Thanks.

Well… Could you help me @bakercp or anyone?

It worked for me by changing the providers json to:

{
    "tilejson": "1.0.0",
    "name": "OpenStreetMap",
    "description": "A free editable map of the whole world.",
    "version": "1.0.0",
    "attribution": "(c) OpenStreetMap contributors, CC-BY-SA",
    "scheme": "xyz",
    "tiles": [
        "http://www.toolserver.org/tiles/bw-mapnik/{z}/{x}/{y}.png"
    ],
    "minzoom": 0,
    "maxzoom": 18,
    "bounds": [ -180, -85, 180, 85 ]
}

Sorry! It was a sooooooo easy mistake! (comment-out in JSON thoughtlessly). Thanks so much and thanks for nice add-on :smiley:

1 Like