maps

Mapstraction as a library to access Google maps

Do you suggest Mapstraction (library) as a layer to access Google maps? Is it an actively maintained project? Do I stand to again/ lose anything by using this library apart from the primary reason that its provider independent? ...

How to simplify (reduce number of points) in KML?

I have a similar problem to this post. I need to display up to 1000 polygons on an embedded Google map. The polygons are in a SQL database, and I can render each one as a single KML file on the fly using a custom HttpHandler (in ASP.NET), like this http://alpha.foresttransparency.org/concession.1.kml . Even on my (very fast) developmen...

What is the best way to read, represent and render map data?

I am interested in writing a simplistic navigation application as a pet project. After searching around for free map-data I have settled on the US Census Bureau TIGER 2007 Line/Shapefile map data. The data is split up into zip files for individual counties and I've downloaded a single counties map-data for my area. What would be the b...

Is there an easy way to plot Polyline Area, i.e. service coverage area, and also check to see if visitor's address lies within that area using Google Maps API and PHP?

Hello. I am the owner of a business that is building a new website application. My partner is the programmer who is doing the development and neither one of us has any real in-depth experience with Google Map API or it's polyline/polygon area capabilities. We need an easy way to capture inputs within our user admin area where our locati...

iterator adapter to iterate just the values in a map?

I'm just getting back into C++ after a couple of years of doing a lot of C#, and recently Objective C. One thing I've done before is to roll my own iterator adapter for std::map that will deref to just the value part, rather than the key-value pair. This is quite a common and natural thing to do. C# provides this facility with its Keys ...

C++ map access discards qualifiers (const)

The following code says that passing the map as const into the operator[] method discards qualifiers: #include <iostream> #include <map> #include <string> using namespace std; class MapWrapper { public: const int &get_value(const int &key) const { return _map[key]; } private: map<int, int> _map; }; int main() { ...

Any implementation of Map<K1, K2, V>, i.e. two keys?

I need a map that has two keys, e.g. Map2<String /*ssn*/, String /*empId*/, Employee> _employees; So that I can _employees.put(e.ssn(), e.empId(), e) And later _employees.get1(someSsn); _employees.get2(someImpId); Or even _employees.remove1(someImpId); I am not sure why I want to stop at two, why not more, probably because th...

Yahoo maps api, version 3.8 doesn't display custom image?

I used the following code to display custom marker on Yahoo Maps : <Script type=text/javascript> var map=new YMap(document.getElementById('map')); // Create a map object Get_Lat_Lon() ...

javascript - associative array without toString, etc...

I want to create an associative array: var aa = {} //equivalent to Object(), new Object(), etc... and I want to be sure that any key I access is going to be a number: aa['hey'] = 4.3; aa['btar'] = 43.1; I know JS doesn't have typing, so I can't automatically check this, but I can ensure in my own code that I only assign strings to ...

Calculate longitude/latitude

Given the following input: known longitudes/latitudes of 1..n locations known distance between locations 1..n and another location "m" How can I calculate the longitude/latitude of the location "m"? ...

Google Maps API: Get position over Sealevel

Hi! is there a way to get the position over sealevel from a given position using the google Maps API? Any Help would really be appreciated! ...

Looking for a google-analytics-style map creating app or api

Hello, I am looking for a google-analytics-style map creating app or api based on visitor IP addresses, any suggestions? thanks, nicoperez ...

Which is your favorite Maps API and why?

I was looking at Google's, Yahoo's and Microsoft's mapping APIs. Are there major feature differences? Are there others I should be seriously looking at? ...

std::list with std::map properties?

Basically, I want to have a std::list but with std::map properties such as find(), do I really need to loop through every single list entry to find what I need? ...

google maps flex API: handle both double and single clicks?

how do you tell a single mouse click from a double click? my single click listener seems to be trapping all the double clicks as well: tz locator it's a known issue for the flash/flex API but the js workaround doesn't seem to handle both either: code.google.com ...

Display a map in a Windows Form app

I built a Winform app several months ago that schedules appointments for repair techs. I'd like to update the app by adding a map for the customer's address on the customer form, and then print that map on the report the techs take when they leave the office. I've been looking around but I haven't found a good solution for this yet. I ...

What's the difference between ConcurrentHashMap and Collections.synchronizedMap(Map)?

I have a Map which is to be modified by several threads concurrently. There seem to be three different synchronized Map implementations in the Java API: Hashtable Collections.synchronizedMap(Map) ConcurrentHashMap From what I understand, Hashtable is an old implementation (extending the obsolete Dictionary class), which has been ad...

Where can I find a map control for Delphi?

I am trying to build an option in a application that let user see a map. This map must be editable, and tag enabled. It should also be possible to see sub regions in different colors, and highlight the one under the mouse. ...

Can I limit users to a specific range and zoom level on Google Maps?

I'm implementing a Google Map on a web-page. For the purpose of this project, I want to limit how far users can drag the map, so that they can only view a certain area that falls within two co-ordinates (one specifies north-west, the other, south-east, if you get my meaning). What's the best way to implement this using the Google Maps A...

How to Invoke iPhone Maps for Directions with Current Location as Start Address

Hi all. I know it's possible to start the iPhone maps application by calling openURL on a google maps URL with parameters saddr and daddr with location strings or LatLong (see ex. below), but I'm wondering if it's possible to make the start address be the "Current Location" maps bookmark so that I can use the maps app's location handlin...