maps

ColdFusion.navigate alternative?

In another question, "Using Google Map with ColdFusion", I ran into a problem of not able to display a google map using CF. After much experimenting, I found out that if you use ColdFusion.navigate to point to a page from one cflayoutarea to another cflayoutarea, the map in the destination cflayoutarea would not show. (However, if you ju...

Is there any way to Add Extra Details to the route on Google Maps?

Is there a way on Google Maps to specify a Long & Lat reference of an intersection and should the route intersect these coordinates, that extra information be provided in an info Bubble? The problem we are having is that the current route information is too basic, i.e. "Turn Left 26km" , we would like to have extra details about the t...

Determining if a lat-long circle and a circle on a sphere overlap

I am creating an application with Geo Proximity Search capability using PHP as server scripting language and MySQL as Databse. Consider a situation: Where we have certain set of objects having latitude and longitude positions assosciated with respective objects. On specifying location details like country and/or city along with range/r...

Using markers and polylines with google maps api

I have a map and it has both markers and polylines. Now I need to seperate these polylines and the markers on different layers I.E When i want to remove the polylines i just execute the method with layer name that removes the polyline's layer can you please help me with this? ...

How to create a tiled map in Java?

So I have a tile image tile.png and I'm trying to create a tiled map all across the window. I'm building this as an applet. This is what my paint method looks like, but its not effective. When I run the applet it takes about 2 seconds and the entire screen is painted from left to right with the image, rather than everything rendered at o...

How to represent a 400x400 window as a map in a Java game?

I'm building a pacman game. Basically, I want to have a map representation of this window consisting of blocks/tiles. Then as the pacman character/ghost moves i would change their position on the map to represent what's on the screen, and use that for collision detection etc. How can I build this map, especially since the screen is made...

Any disadvantage to using arbitrary objects as Map keys in Java?

I have two kinds of objects in my application where every object of one kind has exactly one corresponding object of the other kind. The obvious choice to keep track of this relationship is a Map<type1, type2>, like a HashMap. But somehow, I'm suspicious. Can I use an object as a key in the Map, pass it around, have it sitting in anothe...

How do slippy maps work?

Slippy maps are web widgets which allow the user pan around a two dimensional plane by grabbing and dragging it. This control was made popular by Google maps, and can be seen on many modern mapping systems today. It's obvious as you watch them load that they are actually a grid of images which are loaded as-needed as the user pans. My qu...

Best way to create a Map in Classic ASP

I'm currently rewriting some PHP 4 code to Classic ASP (don't ask) and trying to work out if there's a better way to load a large Map into memory than just hard coding each pair in. To give you an idea, there's around 300 unique key value pairs in the hashed array definition (or whatever it's called) in the PHP. I'm tempted to just do t...

Java: Google Maps alternative

Hi! I'm really tired of using the Google Web Toolkit for accessing Google Maps in Java using Netbeans... Does anybody know of a good alternative providing a simple(r) API? Any help would really be appreciated! ...

Best way to get free driving instructions

Is there a simple way to get driving instructions? Something like: I call "http://someservice/?start=NYC&amp;target=Washington" and then the service returns a XML file containing routing information? Has anybody ever tried to access such a web-based service from a standalone desktop application? Any help would really be appreciated! ...

Scala Map: mysterious syntactic sugar?

I have just found out this syntax for a scala Map (used here in mutable form) val m = scala.collection.mutable.Map[String, Int]() m("Hello") = 5 println(m) //PRINTS Map(Hello -> 5) Now I'm not sure whether this is syntactic sugar built in to the language, or whether something more fundamental is going on here involving the fact that a...

Good books on cartography/GIS programming?

I'm looking for some recommendations on good books that cover cartography and GIS from a programming perspective. I'm not talking about books that concentrate on some concrete GIS technology or GIS product. Ideally the book should cover stuff like map projections coordinate systems image rectification and georeferencing (GeoTIFF, world...

Looking for image rectification resources

I'm looking for some good resources (articles, algorithm descriptions, SW libraries...) on image rectification for GIS purposes. Are there any .NET-accessible open source libraries for this? Thanks in advance ...

Flash + MySQL Communication

I have a flash map application that I want to rebuild on the new flash platform (AS3). It will pull in a load of records at the beginning of the application and then run without needing to communicate again. Given this scenario, what would you recommend be the best (and most flexible) way to get this set of records into flash? This is...

Maps API for looking up businesses near co-ordinates.

Hi, I'm currently working on an iPhone application to take GPS coordinates to find the closest electronic stores of my choosing and display them to the the user. I'm familiar with http://stackoverflow.com/questions/683817/google-maps-find-nearest-utilities, but this isn't exactly what I'm looking for. It's also a javascript API. I'd pre...

How to use BOOST_FOREACH with two std::maps?

I have code that looks essentially like this: std::map<int, int> map1, map2; BOOST_FOREACH(int i, map1) { // do steps 1-5 here... } BOOST_FOREACH(int i, map2) { // do steps 1-5 (identical to above) here... } Is there any way to concatenate the maps to eliminate the duplicate code in the second loop? Or a way to extend BOOST_FO...

Dynamically coloring a US map with Javascript

I need to write a webpage which starts with a blank map of the US and colors the states according to data it receives from various Ajax requests. The map needs to change over time without the page reloading, and the user can click on various controls to instantly change how the map is colored. This all needs to be done locally, so I ca...

Google Maps Directions call problem

Hi. I've got a problem with calling a function that should draw a route on a map. For some reason it just returns null. My code from maps.js (some of it) var map = null; var gdir = null; function initialize() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(55.86...

Google Maps Geocoding problem

Hi. I am playing around with Google Maps for the first time. And I am struggling to extact some information about the location where the marker is. I have set up an example for you to see. The problem happens when I drag the A-node, the getGeocode() returns undefined? I need to extract zip-code, city, and address from the node when I ...