You are currently browsing the tag archive for the ‘map’ tag.
I prototype a number of techniques to deliver interactive floor maps.
These kind of maps would be very useful navigating large Expos, so here are some demos…
Standard divs approach :
SVG versions, for modern browsers only :
All in all SVG is an incredible format for these kinds of graphics, and I think well see a lot more interactive books, comics and StarTrek inspired custom UIs developed in SVG. Its a sane way to deliver to iPhone, iPad and various Android screen sizes with common code base and one set of graphics assets.
After many years of neglect and non-standards-compliance, I’m looking forward to seeing the upcoming IE9 release of Internet Explorer browser with accelerated graphics and native SVG support. Graphic designers will be set free to create and developers will be empowered to push the boundaries of the web to the next level.
Objective-C can be quite verbose, especially when handling nested data – there is no simple associative array indexing of the kind found in PHP, Ruby etc.
ObjC : verbose : id value = [map objectForKey:@”key”];
Using atx functions : concise : id value = at(map, @”key”);
This comes in very handy for deeply nested json data trees, where you might want to index a multidimensional array or nested tree – vis :
id pop = at(at(at(stats, @”USA”), @”NewYork”), @”popn”);
Not quite as simple as pop = stats[“USA”][“NewYork”][“popn”]; but more readable than several objectForKey’s. Note, I propagate the nulls up so if an item is not found at any level, it can be checked once at the top level without crashing the app.
The small suite of related functions can be found at google code here, under BSD licence – http://code.google.com/p/xathack/