Vanilla JS Tutorials

JsIso Tutorials

RSS feed

01 - Creating a simple Map with JsIso

A very simple example of creating a flat 2D map. By change two values, a Boolean (isometric: true), and a Number (tileWidth: 40) as seen in the instructions, you can easily change this 2D map into an Isometric 2D.5 map.

A basic JsIso Tile Field feature shown is .rotate(); this takes the argument either "left" or "right". This is similar to .flip(); which accepts "vertical" or "horizontal".

The map is built from RGBA colors.

    function(CanvasControl, TileField) {

      // RGBA of color to use
      var tileColor = "(158, 154, 255, 1)";

      // Our Tile Map
      var tileMap = [
        [tileColor, 0, tileColor, 0, tileColor],
        [tileColor, tileColor, tileColor, 0, tileColor],
        [tileColor, 0, tileColor, 0, tileColor]

      // X & Y drawing position, and tile span to draw 
      var xrange = 8;
      var yrange = 8;

      // use CanvasControl to create a simple canvas element
      var context = CanvasControl.create("canvas", 600, 300, {}, "main");

      var tileLayer = new TileField(context, CanvasControl().height, CanvasControl().width);

        layout: tileMap,
        isometric: false, // Flag used to layout grid in non isometric format
        tileHeight: 80,
        tileWidth: 80 // Try setting isometric to true and half tileWidth to 40, for an isometric map

      // Rotate our entire Map 
      // Loop through our tiles and draw the map  
      for (i = 0; i < xrange; i++) {
        for (j = 0; j < yrange; j++) {

Check out the View Source to see tutorial.

Tutorial Outcome (View & Run Source)


  1. Woah!Thanks for this, man! I owe you a lot. Been struggling with this thing for weeks now/=.

    concrete driveway cincinnati Fri, 17 May 2019

  2. very informative. I wonder why the other experts of this sector don’t understand this. mobile legends pc

    — samuelddarden Wed, 29 May 2019

  3. I will make this as an example for my report this coming Friday. Thank you for making it convenient for me. :) Very understandable!

    roof repair cost estimator Tue, 4 Jun 2019

  4. I simply stumbled upon your blog and desired to say that I possess really enjoyed browsing your current posts. keep doing your great job and always gain my support. cheers for sharing this beautiful article. click here

    — Joshua A. Price Mon, 10 Jun 2019

  5. These codes are very important for our website! Superb!

    Washington SEO Tue, 11 Jun 2019

  6. Thank you so much! for sharing this because I've been thinking about this topic weeks already.

    — Daniel Perez Tue, 18 Jun 2019

  7. I appreciate sharing your knowledge regarding about this topic. Thank you!
    | urgent care elite

    — Meggy Mon, 8 Jul 2019

  8. Excellent work, many thanks for sharing

    Rubbish clearance | CCTV Systems

    SEO Agency Durham Thu, 18 Jul 2019

  9. Pretty insightful post. Never thought that it was this simple after all. I had spent a good deal of my time looking for someone to explain this subject clearly and you’re the only one that ever did that. Keep it up. kitchen remodel

    — fredluis Thu, 25 Jul 2019

  10. Thanks a lot for sharing. Keep posting codings and tutorials. begamer

    — Patricia J. Clark Thu, 25 Jul 2019

  11. Thanks so much for sharing the routine in making a map using JsIso. Just what I need.

    — Elvin Holt Fri, 26 Jul 2019

  12. Much better if we can see a video tutorial for this.

    columbia heating and cooling Tue, 30 Jul 2019

  13. Thanks for this tutorial!

    — Connor Shaw Tue, 6 Aug 2019

  14. I've been looking for this kind of article, and here I found this one. Awesome!

    check us out

    — Anna Thu, 8 Aug 2019

  15. That was awesome from jsiso. The multi layered map is just excellent!
    tile and grout cleaning perth

    — Jessin1508 Tue, 13 Aug 2019

  16. Thank God I found this tutorial! Such a huge relief for me this is so helpful. Thanks so much for sharing this!

    random website

    — Matt Tue, 13 Aug 2019

  17. Hmm! seems like we share the same point of view. Gainesville Tree Pro Haile Plantation

    — Cassandra Thu, 15 Aug 2019

  18. Thank you for writing the code, I've been looking for it for a long long time! official site

    — Lori R. Novak Thu, 22 Aug 2019

  19. Thanks for sharing this post, I'll keep updated to your post because it's very informative and useful for future reference. |

    — AnnaSmith Fri, 23 Aug 2019

  20. Thanks for this! We can do so much in applying this to our social security administration website.

    — Earl Bennet Sun, 25 Aug 2019

  21. Thank goodness I found this tutorial! This is really helpful for me. Thank you for publicly sharing this! |

    — Mary Kay Tue, 3 Sep 2019

  22. Hello! I just want to say this is very helpful. esports talent agency

    — Horea Kaii Tue, 3 Sep 2019

  23. Sapling climbing surges are reported to become the most crucial instrument whenever climbing trees and shrubs, electricity poles as well as telephone rods. These surges are combined with the climbing shoes to enable them to enable the actual climber to purchase a ideal grip as well as secure all of them from falling the moment climbing the tree or possibly a post.

    Larry Taylor Thu, 12 Sep 2019

  24. Woods climbing surges are reported to get the key instrument while climbing bushes, electricity poles or maybe telephone poles. These surges are with the climbing shoes to be able to enable your climber to acquire a excellent grip along with secure these people from falling after climbing a new tree or perhaps a person of polish lineage.

    Larry Green Thu, 12 Sep 2019

  25. This routine/procedure gives me an idea on how to create our own map. This is really very helpful. Sun, 15 Sep 2019

  26. Most of us definitely like your own blog site as well as all of your topics.

    — jake Wed, 18 Sep 2019

  27. Again, this is actually one awesome blog website.

    — jake Wed, 18 Sep 2019

  28. Anyway I definitely loving the style and design of your blog.

    — jake Wed, 18 Sep 2019

  29. this is really great,unique and very informative post, i like it. thanks Sun, 22 Sep 2019

  30. Finally found this site. Been searching for this excellent tutorial a year ago. Thanks a lot!

    — Michele Hidalgo Tue, 24 Sep 2019

  31. Any update on these? |

    — Michele Hidalgo Tue, 24 Sep 2019

  32. Creating a simple map is interesting. Champion Forest Exteriors

    Champion Forest Exteriors Wed, 25 Sep 2019

  33. I don't know why I don't understand it. Can someone explain it again? Thank you for your response. Houston 360

    Houston 360 Wed, 25 Sep 2019

  34. I will use this idea in my project report in school. Houston 360

    Houston Louvered Roof Wed, 25 Sep 2019

  35. I've learned a lot. Thanks for sharing. Spring Septic

    Spring Septic Wed, 25 Sep 2019

  36. Our academic pursuits, along with a range of extracurricular activities, help in honing a child's skills and ensuring that he/she grows to be a mature and responsible citizen.

    top school in greater noida

    premium school in greater noida

    — abc Thu, 26 Sep 2019

  37. Pictures look great! Nice job!
    click here
    click here
    click here
    click here

    — Scott Fri, 27 Sep 2019

  38. You have nice codes. Thanks for sharing this!

    — Kirt Wed, 2 Oct 2019

  39. first toggle mode

    function(CanvasControl, TileField) {

    Suryi Priyat Wed, 9 Oct 2019

  40. Great article! Thanks for explaining stuff in such a concise and easy to understand way!

    - Katie from Fencing Lexington KY

    Fencing Lexington Sun, 13 Oct 2019

  41. I'm happy to see the considerable subtle element here!. Clickbank Breaks The Internet

    — Clickbank Breaks The Internet Tue, 15 Oct 2019

  42. Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot. Hero Instinct

    — Hero Instinct Tue, 15 Oct 2019

  43. I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!.. Hero Instinct Review

    — Hero Instinct Review Tue, 15 Oct 2019

  44. It is the intent to provide valuable information and best practices, including an understanding of the regulatory process. Numerologist Review

    — Numerologist Review Tue, 15 Oct 2019

  45. You completed certain reliable points there. I did a search on the subject and found nearly all persons will agree with your blog. Children Learning Reading

    — Children Learning Reading Tue, 15 Oct 2019

  46. I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!.. EZ Battery Reconditioning Review

    — EZ Battery Reconditioning Review Tue, 15 Oct 2019

  47. wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated. Jack Blowjob Lessons

    — life link Tue, 15 Oct 2019

  48. this blog was really great, never seen a great blog like this before. i think im gonna share this to my friends.. Unlock Her Legs

    — Unlock Her Legs Tue, 15 Oct 2019

  49. It should be noted that whilst ordering papers for sale at paper writing service, you can get unkind attitude. In case you feel that the bureau is trying to cheat you, don't buy term paper from it. lamp recycling companies

    — lamp recycling companies Fri, 18 Oct 2019

  50. I’m excited to uncover this page. I need to to thank you for ones time for this particularly fantastic read !! I definitely really liked every part of it and i also have you saved to fav to look at new information in your site. smart mold

    — smart mold Fri, 18 Oct 2019

  51. Great post! I am actually getting ready to across this information, is very helpful my friend. Also great blog here with all of the valuable information you have. Keep up the good work you are doing here. General Contractor

    — General Contractor Sat, 19 Oct 2019

  52. cool you write, the information is very good and interesting, I'll give you a link to my site. Auto Tinting

    — Auto Tinting Sat, 19 Oct 2019

  53. I think this is a standout amongst the most critical data for me. What"s more, i"m happy perusing your article. Be that as it may, ought to comment on some broad things Construction

    — Construction Sat, 19 Oct 2019

  54. This is such a great resource that you are providing and you give it away for free. Auto Tinting

    — Auto Tinting Sat, 19 Oct 2019

  55. I was taking a gander at some of your posts on this site and I consider this site is truly informational! Keep setting up.. Auto Tinting

    — Auto Tinting Sat, 19 Oct 2019

  56. If you don"t mind proceed with this extraordinary work and I anticipate a greater amount of your magnificent blog entries General Contractor

    — General Contractor Sat, 19 Oct 2019

  57. They're produced by the very best degree developers who will be distinguished for your polo dress creating. You'll find polo Ron Lauren inside exclusive array which include particular classes for men, women. Auto Tinting

    — Auto Tinting Sat, 19 Oct 2019

  58. I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts. General Contractor

    — General Contractor Sat, 19 Oct 2019

  59. This is also a very good post which I really enjoy reading. It is not everyday that I have the possibility to see something like this. General Contractor

    — General Contractor Sat, 19 Oct 2019

  60. Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging, General Contractor

    — General Contractor Sat, 19 Oct 2019


    — Joshua L. Maloney Sun, 20 Oct 2019

  62. Thanks for the great information on this - so helpful!

    - Katie from Fencing Bowling Green KY

    Katie Thu, 31 Oct 2019

  63. Easily build complex isometric 2D.5 layouts or flat ... Simple player device interaction; Apply the same code accross tile formats ... soy

    — andre volvi Sat, 2 Nov 2019

  64. Thanks for the information on this - this is great for building layouts or flats! Appreciate it!

    - Fencing Louisville KY

    Fencing Louisville Mon, 4 Nov 2019

  65. Thanks for every other informative site. The place else may just I get that kind of information written in such an ideal means? I have a venture that I’m just now operating on, and I have been on the look out for such information on fitnessbond.

    fitnessbond Tue, 5 Nov 2019

  66. this takes the argument either "left" or "right". This is similar to .flip(); which accepts

    — andre volvi Sat, 16 Nov 2019

  67. Number (tileWidth: 40) as seen in the instructions, you can easily change fotoi

    — george hivte Sat, 16 Nov 2019

  68. Good to hear this from a friend such a informative site

    — Philips Mon, 18 Nov 2019

  69. Try setting isometric to true and half tileWidth to 40, for an isometric map

    dados maldo Mon, 18 Nov 2019

  70. Yea this is pretty good. Great resource.

    pool service Fri, 22 Nov 2019

  71. I just used this and it was pretty cool. We learned this in 202 CSCE in my post-bac course last semester.

    pool cleaning company costa mesa Fri, 22 Nov 2019


    beetv apk


    sdfg Fri, 22 Nov 2019

  73. This tutorial will go over the basics of building a simple web map using Mappa, p5.js and Leaflet. If this is your first time working with web maps, you should ...

    fapacne Sat, 23 Nov 2019

  74. useful site this can help you
    carpet cleaning surrey bc

    — Philip Tue, 26 Nov 2019

  75. Happy to know this site which is very useful
    medicine hat towing

    — John Michael Tue, 26 Nov 2019

  76. good to know this site this has help me a lot
    mold test kit

    — Billy Jones Granger Tue, 26 Nov 2019

  77. We know the ins and outs and nooks and crannies of what a digital marketing campaign entails. We are passionate about what we do and hence, we are also quite good at what we do!

    seo consultant in delhi

    seo agency in delhi

    ppc services in delhi ncr

    top smo agency in delhi

    — Jewish Thu, 28 Nov 2019

  78. Such a very useful site , this has an accurate, relevant information.

    — Laura Denise Fri, 29 Nov 2019

  79. thank you fo creating such a highly relevant, accurate informative site .

    — Dominic Pablo Fri, 29 Nov 2019

  80. this will actual help you dont hesitate to visit this site
    stuctured water filter

    — Lawrence Clarkson Wed, 4 Dec 2019

  81. this could actually help you try to visit this site

    — Chatelaine Thu, 5 Dec 2019

  82. Interesting article! I enjoyed reading it.
    Local Handyman
    Call Center Philippines

    — Chris Smith Mon, 9 Dec 2019

  83. This was always kind of issue for me and now with this explanation I can work something out

    sex in schleswig holstein Tue, 10 Dec 2019

  84. We offers end-to-end technical consultancy and know-how as well as know-why to broad spectrum of different requirements of broadcasting industry.

    broadcast consultancy

    apple reseller in guwahati

    apple authorized service center in kolkata

    radio station consultants

    ipad mini 4 reseller in delhi

    mac pro reseller in kolkata

    — agc Tue, 10 Dec 2019

  85. Nice Post thanks for the information and very helpful for others.
    Haldiram Franchise
    Hamdard Distributorship
    Dabur Distributorship
    Amul Franchise,
    Amul Franchise


    — Amul Franchise Wed, 18 Dec 2019

  86. Remember that lean weight can burn as much as 20 times more calories than fat weight. Cinderella Solution

    fitnessbond Wed, 18 Dec 2019

  87. Nice post thanks for the very informative post.
    hardwood floors
    Mckinney pool design
    hardwood flors
    New braunfels custom cabinetry
    san antonio weeding planner
    wood fence
    PVC vinyl

    jame karl Thu, 26 Dec 2019

  88. hobby nutten is the best place for having nice chat

    hobby nutten Tue, 14 Jan 2020

  89. Great blog! Do you have any tips and hints for aspiring writers? I'm hoping to start my own blog soon but I'm a little lost on everything. Would you advise starting with a free platform like Wordpress or go for a paid option? There are so many choices out there that I'm completely overwhelmed .. Any suggestions? Bless you!| а

    sony acid pro 7 serial keygen Mon, 20 Jan 2020

  90. Welcome to the world of gaming, where life is fast paced and interesting. There is always an adventure waiting for you online.

    csgo smurf

    — agc Fri, 24 Jan 2020

  91. Our approach brings together best-in-class virtualized compute, storage, and networking infrastructure.

    IT services company in uae

    cloud partner in uae

    Virtualization Partner in uae

    AWS partner in uae

    — selfie Fri, 24 Jan 2020

  92. We provide the cheapest and most reliable csgo accounts compared to anywhere on the internet. This site is run by people who have boosted their way up the ladder.

    cheap csgo accounts for sale

    — fdf Fri, 24 Jan 2020

  93. We provide the best primary care services in Chicago.
    family practice geneva Il

    family practice geneva il Mon, 27 Jan 2020

Please insert the result of the arithmetical operation from the following image:

Please insert the result of the arithmetical operation from this image. =