map

Alternative Map API's (Like Google Maps)

Trying to shortlist online map tools that can be used for a business. So far I've got: Google Maps Bing Maps Yahoo Maps Openstreetmap.org Map quest Can anyone think of any others? ...

Mapping Windows drive path to a RESTful API for cental file storage

Is this possible? Is there a programme that will allow this to happen? I have a program that needs to access a lot of data from a central storage, but the likes of Amazon S3 only allows access via RESTful API which is no good for this program. Only UNC or drive letters are acceptable... Help! Bernard ...

Help using MFC CMap (or std::map) please.

Hi, a C++ noob here. I am trying to tweak some code, with the following key lines (meaning they are not the only ones, but they are the only ones that should matter for this question). By the way, I am using Visual Studio 2010 C++ compiler on Windows. CMap<ATL::CAtlString,LPCTSTR,UINT,UINT> mapForDuplicates; // "dict" definition ATL::CA...

Mapping COM VARIANT Types to actual types using a map

I am writing a COM wrapper for a COM object that sends different types of values from a client and want to map these types in a Map to their actual C++ type, such as VT_BSTR to a wstring, etc. I was thinking of defining an enumuration of all COM Variant types and then using a map to have that Enum as the key and the actual type containi...

displaying tiled map in Gtk+ app

Hi I am about to embark on a project that will involve a GUI application that will need to display a map interface, generated from a global map tile cache (on local disk) at different levels of zoom. The app will be written using Gtk, and while I am fairly familiar with the basic Gtk widgets, I am unsure how to approach the map interfa...

XSLT : Creating a Map in XSLT

Hi, I want to have a key value map in xsl and so defined a variable which has an xml fragment, but later when i try to access the xml nodes in the variable i get an error that type of the xpath xpression cannot be resolved. Below is the xsl- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; <xsl:template...

Why postal code is not coming on address dictionary?

Hi Guys, I am developing application based on geocoder. In my app, to get the user current address, i am using placemark address dictionary method inside geocode delegate method and then, i could able to get all the details (street, city, state, county, countrycode and all) except postalcode. Why postal code is not coming?. Now i am wor...

IntMap changes type after innocent mapping

consider this piece of code:Welcome to Scala version 2.8.0.r0-b20100714201327 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_20). scala> val a = IntMap((1,1)) a: scala.collection.immutable.IntMap[Int] = IntMap((1,1)) scala> a.map(x => (x._1,x._2 + 1)) res23: scala.collection.immutable.Map[Int,Int] = Map((1,2)) header of IntMap.map says t...

Fast hash for std::set<int> of two values?

I am using a std::set<int> for the key of a std map (std::unordered_map<std::Set<int>,float>). I need a hash for this set. The set will always be only two integers, whose values could be up to 2 million. Any ideas on a good and fast hash for such a key as performance is critical? ...

Java Map::hashCode() collision - why?

The following code results in the same hash code being generated for the two maps, any ideas? import java.util.HashMap; import java.util.Map; public class Foo { @SuppressWarnings("unchecked") public static void main (String[] args) { Map map; map = new HashMap(); map.put("campaignId", 4770L); ...

Efficient pointer to integer mapping and lookup in C++.

I want to map pointer to integer for purpose of serialization. The pointers may be of different types and may point to polymorphic objects possibly using multiple inheritance. I need to query the map to know if the pointer is stored in it and if it is, then what is the associated integral value. What is the correct way to do it? The si...

Map<String, Map<String, Boolean>> myMap = new HashMap<String,HashMap<String,Boolean>>();

Why doesn't that work in java, but this does Map<String, Map<String, Boolean>> myMap = new HashMap<String,Map<String,Boolean>>(); Just to clarify the below alteration of the nested HashMap shows a compiler error, whereas the above does not not; with a Map (not hashmap) Map<String, Map<String, Boolean>> myMap = new HashMap<String,Hash...

[cocos2d-iphone] Infinite maps/scrolling question

I'm using cocos2d for the iPhone to create an infinitely scrolling horizontal tile map. To achieve this, I've generated a library of 'segments', which are basically horizontal chunks of levels that I randomly choose from and append to the end of that particular levels tile map. When tiles scroll off of the left of the screen they are rem...

How to correctly use HashMap?

HashMap savedStuff = new HashMap(); savedStuff.put("symbol", this.symbol); //this is a string savedStuff.put("index", this.index); //this is an int gives me the warning: HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized ...

Implementing a map_keys_iterator by derivation: a single compiler error

Hi everyone. I was working again with C++ during the weekend and came to notice something that I'm not sure where does it come from. Following the advice in this thread, I decided to implement a map_keys_iterator and map_values_iterator. I took the -- I think -- recommended-against approach of deriving a class from std::map<K,V>::itera...

Extend google.maps.Map.Class

Hi, I would like to extend google.maps.Map (v3). I have read that the Map-Class implements the MVCObject(). So what i have already done is the following code: function MyMap(id) { google.maps.Map.call(this, document.getElementById(id)); } MyMap.prototype = new google.maps.MVCObject(); Is this the correct way? thx ...

Andorid Draw route path Draw function

Hi, In my android application I use this method in "draw" Overlay class for draw route on map. Can someone tell me if this method is good (in terms of performance) for route draw on map or I must to put code in Thread ?? I'm new to android. ` public synchronized void draw(Canvas canvas, MapView mapView, boolean shadow) { if (points...

good example liftweb app using Google Map API?

Anyone know of any good examples of using Google Map API from within a scala liftweb app? ...

Problem with bird's eye view or 2.5D rendering of Map

I'm developing a turn-by-turn navigation software and I'm using the following solution to make my lines of roads into 2.5D or 3D View http://stackoverflow.com/questions/2808393/draw-2-5d-or-3d-map-with-c-from-lines However, above solution is quite okay for lines within the view port which is 0 < x < width and 0 < y < height . However t...

What is MAP in web computer science?

Hi, everyone, I want to ask a question about the 'MAP' in Web technology. What is the meaning of the 'MAP', I only know this is related to the web 2.0 , but don't have any idea, can anyone help me or give me some reference to me? Thank you. // ---------- Update ---------- thank you very much. I found the answer is the MAP = Mail Admi...