DORIAN COLLIER
MAR 10
We were recently asked to add dynamic Bing maps into a website. "No problem" we said - having no clue of the heartache that lay ahead. After beating our head against the wall for a while we eventually figured out how to use javascript to add Bing maps into a webpage, and we thought we'd share.
WHY BING
Before we begin, let's explore why we might want to use Bing maps instead of Google maps.
- Bing has more accurate results (according to our client - a luxury real estate company)
- Bing maps looks better (again, according to our client)
- Bing maps have more features (you guessed it - our client said so)
THE PROBLEM
After a quick web search I thought that I would be able to use Bing's built in "Embed In A Webpage" feature. Wrong! I quickly discovered that it doesn't allow for dynamic addresses. In fact, the only to display dynamic addresses is to pass the latatude and longitude of the location. (click here to learn more about Bing's Build in Embed a Map feature)
Next I tried using the Bing Maps SDK to get the map. After a little time, and a little javascript, I got it to work. Yes!!...wait...NO!! This map displayed correctly, but it uses funky little PushPins created by some designer in the mid 90s. This will not do. We're modern web developers right? We create modern websites, and these fugly pushpins just will not do. Nothing but the best, right!??
THE SOLUTION
The answer is to use the Bing Maps SDK to get the longitute and latitude of the address, and then insert that into the code from Bing's Emed a Map feature. It works great!! We created the original solution in ASP.NET MVC, but I converted it to pure javascript so that you can use it on any platform.
Click here to view the demo
Click here to download the files
Enjoy!!
DORIAN COLLIER
MAR 08
We opened our doors in 2009 with the intent to build a world class virtual team of hot-shot asp.net web developers. We've done quite well over the past year and have completed projects for household names and mom-and-pop shops alike.
That said, it hasn't been easy. Through this blog I intend to share some of the lessons we've learned along the way. I'm here to share what I've learned about finding and hiring the best talent around the globe, managing a remote workforce, and communicating effectively across great distances and time zones.
If you're interested in learning more, please subscribe to our RSS feed, or email us to be added to our upcoming newsletter. Also, feel free to add comments letting me know what topics you're most interested in.
DORIAN COLLIER
JAN 27
Have you ever needed to print different web page than the one being viewed? This is a requirement for one of our current projects. In searching for an answer I found a lot of forum posts that didn't quite do the trick. I created a lil' Javascript function that'll get the job done. Hopefully somebody, somewhere, finds it useful.
The basic idea is to dynamically create an iframe, load your content, set focus on the iframe, then trigger the browser print function for that iframe.
You can download the code here...
http://deesea.com/keep/PrintUrl.js.zip
Tested in FF3 and IE 7 and 8.
NOTE: The function uses jQuery, but you shouldn't have much trouble un-jQuerying it if you need to.
DORIAN COLLIER
DEC 31
Today is the last day of 2009, the year that Deesea was founded. It's been a great year, and I'm looking forward to things to come.
2010, here's lookin' at you!