4 ms·
It would be great if this stored the city as data in the URL so we could share them.
by ynniv 7y ago
It would be great if this stored the city as data in the URL so we could share them.
- kfarr 7y agoI was just looking at the source code, it appears `map` is a global variable that is a 7x7 grid representing your current city (49 arrays of `[0,0]` by default). This could be serialized to a URL hash that could be shared. source: https://github.com/victorqribeiro/isocity/blob/master/js/main.js#L17 https://github.com/victorqribeiro/isocity/blob/master/js/mai...
- atum47 7y agoopen an issue as suggestion, if no one does it, I'll do it later. I'm on a party now
- krokicki 7y agoThis is definitely a fun little project to hack on! I created a pull request to keep the current state in the URL. Here's something I made with it: #IjIqKioyIgoxKioqMQoKMRwZGzEKCjEYARgxCgoxGhkdMQoKMSwsLDEKIzAsLCwwIw==
- atum47 7y agoreally appreciate it. thanks
- ynniv 7y agoAwesome! https://victorribeiro.com/isocity/#IjIqKioyIgoxKioqMQoKMRwZGzEKCjEYARgxCgoxGhkdMQoKMSwsLDEKIzAsLCwwIw== https://victorribeiro.com/isocity/#IjIqKioyIgoxKioqMQoKMRwZG...
- ynniv 7y agohttps://victorribeiro.com/isocity/#AAAAAAYpAgA7Ny4EIwAHBQIHCQIHMhwZKwQiADEYARwVJgIxGhkdFBkfMAAAAAYALw== https://victorribeiro.com/isocity/#AAAAAAYpAgA7Ny4EIwAHBQIHC...