I’m focused right now on determining what DAL I should use for a new web mapping application I’m writing using the ArcGIS API for Silverlight. I quickly came across Shawn Wildermuth’s excellent post on Choosing a Data Access Layer for Silverlight 3 after Googling the subject. According to Shawn:
The three major candidates in Silverlight3 are Web Services (WCF/ASMX), ADO.NET Data Services and RIA Services. In any situation, any of these will work. But they are suited to different styles and requirements. Here’s the abridged differences between the stacks:
I’ve been over in Java land for over a year now and ADO.NET Data Services and RIA Services are new territory for me. After doing some research to get an architectural understanding of each service, I realized that both rely on the ADO.NET Entity Framework, an ORM for ADO.NET that’s equivalent to Hibernate on the Java side. Unfortunately, you can’t use the Entity Framework with Oracle unless you purchase a 3rd party driver from Devart or DataDirect. If you are running another RDBMS flavor other than SQL Server, refer to Microsoft’s full list of 3rd party ADO.NET Entity Providers.
I don’t plan to purchase any provider licenses since I can still utilize WCF web services without incurring extra cost or 3rd party software points of failure, but others might want to take that route if ADO.NET Data Services or RIA Services are valuable enough. I have to say RIA looked promising since it’s geared around line of business applications for Silverlight, and even provides a Visual Studio template. Finally, something to keep in mind before choosing the ADO.NET Entity Framework is the vote of no confidence movement.
Yeah, one of those new features everyone doesn’t care for unless you’re making money off the ads. Evidently though, it’s been reported that the iPhone Maps application is now displaying advertisements on iPhone OS 3.1. There is nothing shocking about the new advertisements, given the Maps application makes use of Google Maps.
Maybe even more interesting is Apple may be trying to replace Google Maps with their recent acquisition of Placebase. One can only speculate if the ads had a part in the decision. Apple does like complete control…
Enjoy the upgrade!
The government spending watchdogs are having a heyday thanks to the release of Where Is the Money Going, a new web map put up by the feds for tracking who and where Recovery Act monies are going. The application thematically maps out $13,060,137,875 by state, county, zip and congressional district. In addition, pushpins for contracts, grants and loans can be identified for recipient and monetary award. Other notables are export to KML.
ESRI’s biggest advantage versus Google Maps and other mapping providers is that ESRI is seen as the platform to use if you’re serious.
Good thing I develop with Google Maps and ArcGIS Server, otherwise I’d almost take offense to that comment.
On the lighter side, I just had to find out who received the most dough from Uncle Sam (and of course the location). And the winner is…
I tried unsuccessfully to find some Cash for Clunkers ArcIMS replacement grants. I’m sure at least a tiny fraction of the $13 trillion will be spent on ArcIMS phaseouts even if they have to be replaced by Google Maps.
I recently switched to Komodo Edit from Aptana Studio for the following reasons:
- Wanted better code completion
- Aptana is built on Eclipse
- Komodo Edit supports vi
Visual Studio isn’t an option yet for me, as I’m doing development on my new MacBook Pro. Eventually I’ll get Windows 7 running virtually in order to reap VS benefits. In the meantime I’m satisfied with Komodo Edit, which also has a paid version called Komodo IDE providing extra goodies.
So let’s roll…
- Download your desired flavor (Win, Mac, Linux) of Komodo Edit and go through the typical install.
- Launch it.
- Open the Preferences dialog through the menu. If you are running Windows, go to Edit–>Preferences. For Mac, Komodo–>Preferences.
- Select Code Intelligence in Category, then check dojo_v130 under API Catalogs. Note the other libraries like Ext, jQuery, Prototype and YUI.
- Close and reopen Komodo.
- Create another js file in Komodo Edit and paste the source that was copied in the previous step. When you save the file you might get a warning that some of the characters can’t be saved with the current encoding. Go ahead and force the save and ignore other warnings that you may get. It’s all good.
Because Google obfuscates their Maps API it’s useless to try and grab their source and use it like we did with ESRI. Luckily somebody out there stubbed out the Maps 2.0 API for us, which you can grab at http://www.codeplex.com/GMapJS/Release/ProjectReleases.aspx?ReleaseId=19490.
- Download GMAPJSHelper_Release.js.
- Test the code completion.
- Go to http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2 and copy the last line starting at ‘this.CreditsFor=function(a,i,j,h)‘.
- Close and reopen Komodo.
- Open up your js file used to test code completion.
- Type ‘VEMap.’ and you should be golden. Bing also lacks namespaces similar Google Maps 2.x. Gotta love the old ‘VE’ prefixes!
I’ve shown how to set up Komodo code completion for three of the most popular mapping APIs. However, there is no reason you couldn’t apply the same techniques to add Yahoo Maps, Open Layers, or any other web mapping kit.