map

How to display the direction properly by bounding the map with 2 cities with google map in Qt?

Hi, I have tried with the following code to properly display the direction line between 2 cities, however the line between 2 cities is not properly set. If distance between 2 cities is long enough then one city icon is displayed and to get see the other city icon displayed on the map, I have to go to the place. please check the code be...

Open Street Map tile by http request

does anyone know how to get a tile from OpenStreetMap by http? i mean something as static google map , where i can pass in the query string lat lon and zoom , nothing more ... Sure it is me, but i m losing a lot of time looking for online doc without success ... maybe someone of you know it on the fly Thanks a lot ...

Java: is there a map function?

I need a map function. Is there something like this in Java already? (For those who wonder: I of course know how to implement this trivial function myself...) ...

Google Maps: Store locator

I am about to start designing a store locator for a business. I had a few questions on the best route to take. The main questions are located in bold. There will be two columns, 1 with the map itself and 1 with the list of all stores currently located in the view of the map. I am hoping to have the google map to be loaded zoomed onto a ...

ICU Probe All Currency Symbols

Is there a way to probe the ICU library for all UChar's representing currency symbols supported by the library? My current solution is iterating through all locales and for each locale, doing something like this: const DecimalFormatSymbols *formatSymbols = formatter->getDecimalFormatSymbols(); UnicodeString currencySymbol = formatSymbo...

Is there a JavaScript library that adds missing standard iteration methods (filter, map, reduce, some...) to Array?

Is there a JavaScript library which just adds some methods of Array, Object and other standard objects which have been standardized, but that are not available in all browsers? I am thinking of iteration methods in Array such as filter(), map(), reduce(), some(), or keys() in Object. Note that I don't want the library to introduce anyth...

Managing usb-serial converter device name

Hello everyone: I have a problem with USB-serial converters.I'm developing an app for a stand-alone surveillance station,connected to several peripherals trough serial port. My embedded PC has only one serial port, so i must use at least 2 usb-serial converter. When i plug one of them, ubuntu automatically generates the device name in...

Map dataset to objects

Hi, I have stored procedures that return couple of tables, and i want to map objects to the tables. Until now, i worked with type data set, and i want to stop working with them. I am looking for suggestions on how to do that, i thought about reflection, or iterate through each table in the data set and populate my object, or split the p...

How to get ZIP code of any location by providing the City name or State name in googlemap using Java Script?

Hi, I am willing to get the ZIP code of a location by providing only the City name or State name in google map using Java script. Is it possible to get the ZIP Code only? Please let me know. Thanks.... ...

Can I define a map whose key is a structure?

and how can I do it in C++? ...

recursive stl map

I'm trying to make a tree of maps (or just have values of a map point to another map), but I'm not too sure how to approach this. I found a discussion about this: http://bytes.com/topic/c/answers/131310-how-build-recursive-map but I'm a little confused on what's going on there. For example, my key is a char, and my value is the next ma...

Using map to process a list-of-objects in python

I want to calculate the center-of-mass using the map function. I don't want to use for loops. Help with bottom two lines? class Obj(): def __init__(self, mass = 0., x = 0., y = 0.): self.mass = mass self.x = x self.y = y # Create List of Objects objList = [] n = 0 for i in range(0...

Sphere Mapping Non Spherical Objects

Hi, I am facing a problem more or less similar to the post http://stackoverflow.com/questions/1513383/texturing-error-on-a-sphere The difference is I am trying to sphere map non spherical objects.I will describe my problem in detail. I am writing an application which generates 3d models out of system fonts.I am using the gluTesselato...

How to convert this SVG file to an HTML map?

I want to convert this svg map to an HTML map (area coords). I have tried to do it by hand, but the coordinates don't match. I want every zone to be selectable (not just the one highlighted). I can't find a way to do it... ...

map.setUIToDefault(); error

below code is working fine in fire fox and google chromo but in Internet explore 9 is not working. its getting error in "map.setUIToDefault();" var map = null; var geocoder = null; if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById('map_canvas_big')); map.setUIToDefault(); map.disableSc...

Python - removing items from lists

# I have 3 lists: L1 = [1, 2, 3, 4, 5, 6, 7, 8, 9] L2 = [4, 7, 8] L3 = [5, 2, 9] # I want to create another that is L1 minus L2's memebers and L3's memebers, so: L4 = (L1 - L2) - L3 # Of course this isn't going to work I'm wondering, what is the "correct" way to do this. I can do it many different ways, but Python's style guide says t...

Google Map icon (pin) - how to define color?

hello, is it possible to change color of pin placed on google map creatted by it's api? or have to use custom icon to do that? it's google map api v3. tnx in adv! ...

What is the best way to create a map with mouse over?

What is the best way to create a 2D plot, with different points in different coordinates (x/y coordinates) such that they are represented using different shapes on the plot, and whenever we click on one of them, or go with mouse over them, we see a text changing in a small window next to the plot? If I could do this in HTML, that would ...

c++ STL map copy setting boolean value to true.

Hi All, I'm having a problem with stl map. Initially I fill the map with data like so. //loop pair< int, int > xy (x,y); currentMap.insert( make_pair(xy), value); //map< pair<int, int>, bool> prevMap.insert( make_pair(xy), value); // End Loop Then I delete an element according to some rules like so. currentMap.erase( make_pair(xy) )...

JS: how to algorithmically highlight a diamond-shaped selection of x/y coordinates?

If given an array of arrays creating an n x n map of tiles, is there a way to loop through an algorithm that would highlight tiles which form a diamond shape? (the key problem is not to hardcode it, so it could work for any sized map) For example: if the map was 5x5 tiles like so: XXXXX XXXXX XXXXX XXXXX XXXXX How could an algorithm ...