Welcome

Welcome to GeoHackr. Our tagline is "Hacking the Science of Geography," and that is exactly what you will find here. We try to see how the advancements in technology can be used to help the science of geography advance just as fast. We will dicuss APIs, different coding languages, different applications, all which create a little fun in our field. Hope you enjoy!

ESRI New JavaScript APIs

written: October 23, 2009

In the newest ESRI ArcNews, there is something that the GeoHackr is going to be very interested in…

New JavaScript APIs!

ArcGIS Web Mapping APIs are now available for free for all noncommercial use, allowing mapping and GIS capabilities to be more easily embedded, consumed, and deployed in Web or desktop applications.

This is super exciting since this is making ESRI a direct competitor to all the other map APIs out there like Google and Yahoo. Over the next couple of weeks, I am going to show some of my trials with the new API. I am going to hopefully create a page with all the trials on them, but you could always subscribe to the RSS feed to keep up to date!

Don’t worry if JavaScript isn’t your cup of tea. ESRI has released APIs for Silverlight and Flex as well. I will focus on JavaScript here at GeoHackr because it is the easiest to run (there is no software installation required). ESRI even give us a few map layers to try our maps with; however, if you can run a map service you can run any layers you want.

We will get into the coding in more depth later, but to get started all you need to do is put your map service url in the below code:

1 	function init() {
2 		var map = new esri.Map("map");
3         var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://your server.com/MapServer");
4         map.addLayer(tiledMapServiceLayer);
5 	}

Get your map services running and stay tuned to see what we can do with ESRI’s new JavaScript APIs!

Bookmark and Share
blog comments powered by Disqus