maps

using BOOST_FOREACH with std::map

I'd like to iterate over a std::map using BOOST_FOREACH and edit the values. I can't quite get it. typedef std::pair<int, int> IdSizePair_t; std::map<int,int> mmap; mmap[1] = 1; mmap[2] = 2; mmap[3] = 3; BOOST_FOREACH( IdSizePair_t i, mmap ) i.second++; // mmap should contain {2,3,4} here Of course this doesn't change anything...

Google Maps - Add two markers (directions)

Hi forum. Playing around with Google Maps these days, with some directions. I have a map that gets the directions and address (reverse-geocoding) when dragging and dropping the markers. If there is two nodes on the map (http://dev.korebogen.dk/gmap/) the script is working fine (click set directions) - but I need to add a click event s...

Dynamic map layer with Mapserver's C# MapScript

I'm developing a web app that will show the location of a project in a map. I have this function add the data I want to show to a map layer. protected void AgregarPunto(DataTable result) { layerObj thislayer = util.MSMap.getLayerByName("poi"); foreach (DataRow dr in result.Rows) { shapeObj shp = new shapeObj(mapscri...

Checking contents of a map in another map in java

I need to write a small snippet of code where I need to check contents of a map (key value) if it exists in another map , remove it from the map E.g Map1: 1=>obj1 2=>obj21 3=>obj3 4=>obj4 Other map Map2: 10=>obj10 20=>obj20 2=>obj2 30=>obj30 3=>obj3 The result of fun (Map1, Map2) after it executes it has the following ouput ...

trigger php function request when google maps marker is moved

When a marker is placed, I want to call a php function (in another file) with the latitude and longitude as input and output the result in a div on the page. So whenever the marker is moved, it updates the div with the latest result of the function. I know I'd need javascript to do this but I'm not very familiar with it and any help wou...

How do I work out which of my markers are visible in my Google map?

Here is what I am trying to do. I have about 160 places of interest. The user enters their address (postcode, full address, whatever) which I use Google to geo-encode. I then create a Google map centred about this point and I add a marker for each of my points of interest to the map (using a MarkerManager). So far so good. I want to dis...

Intranet Live maps Asp.net

Hi all, I'm creating an intranet website and i have a couple of asp.net textboxes/ddl that make up a persons code. What i need help with is displaying a map based on the address. Any examples on how to do this would be very helpfuul. I tried to get a google maps api key but you need a internet web site to get one. Thanks in advance ...

Map technologies for the web (such as Google Maps)

Ok so basically I am talking with someone about building a way for users to post locations to a map and have a pin over the location. I know Google Maps can do this and probably has the best documentation/support. I was just wondering if/what other options there are. I have found Pushpin and Mappy but I really don't know much about ei...

How can I change the value in a pair in maps

I can do: map<char*, int> counter; ++counter["apple"]; But when I do: --counter["apple"] // when counter["apple"] ==2; I got debugger hung up in VS 2008. Any hints? ...

Google Maps Tiles - how to divide 30k coordinates into tiles

Is it possible and effectively divide 30k (and growing) or more coordinates into tiles on Google Maps? My goal is to index all coordinates - assign to a tile and than define a tile size for each zoom level. On the client side marker manager will do the clustering for each tile (which ideally would have less than 200 points) New coordi...

Google Maps: Why does MarkerClusterer not work?

Hello! At first I want to say: I couldn't find a support forum for this library so I would like to try it here. I hope such questions are allowed here and the link to my page needn't be removed. The link is only for seeing how it works and which parts don't work. Please don't remove it. Now to the question :) I want to use the library...

Plotting Address on Virtual Earth

How can I plot a point of an address on a map? I want to basically use VEMap.Find(), but simply get the coordinates of the location. ...

Problem with Google maps with in user control

Hi, I am having a problem with google traffic maps in a usercontrol.I have a usercontrol which has google traffic map with a Zip Code textbox, Search and Clear link buttons. The problem with this usercontrol it displays map with the traffic for on page load(with default zip) but when I try to search for a zip and click search link butto...

Determining whether geographic point is within X meters of a state border (using shapefile for border data)

So I'm writing a Java app, and I've got an ESRI Shapefile which contains the borders of all the U.S. states. What I need is to be able to determine whether any given lat/lon point is within a specified distance from ANY state border line - i.e., I will not be specifying a particular border line, just need to see whether the point is clo...

Using the google maps api for reverse geocoding lat/long from iPhone

I am currently using the google maps' reverse geocoding API to convert long/lat received from an iPhone's CoreLocation API into city/state information on a google app engine server. Would this be considered a violation of the terms? I've done some research and cannot find a direct answer to this question. Right now, we will be distrib...

Openstreetmap: embedding map in webpage (like Google Maps)

Is there a way to embed/mashup the OpenStreetMap in your page (like the way Google Maps API works)? I need to show a map inside my page with some markers and allow dragging/zooming around, maybe routing. I suspect there would be some Javascript API for this, but I can't seem to find it. Searching gets me an API for access to raw map da...

There is a way to use OpenLayers on Flex?

is There a way to use OpenLayers on Flex? By now I've found Open-Scales project, but it is in development (not fully functional). ...

google maps : want to divide the map into number of sub bounds

I want to divide the Google map display into 200 parts , I have this code bounds = map.getBounds(); southWest = bounds.getSouthWest(); northEast = bounds.getNorthEast(); tileWidth = (northEast.lng() - southWest.lng()) / 10; tileHeight = (northEast.lat() - southWest.lat()) / 20; for (x=0; x < 20 ; x++) { for (y=0; y < 10 ; y++) { v...

Get Google Maps data into an iPhone

Programming an iPhone App, I need to use Google Maps api to get directions and routes. Unfortunatelly, Google Maps works around javascript. Any idea how to do this? ...

Geocode database

Hi, Can I download address,city,state,postalcode - latitude/longitude information, that can be loaded to a db for US alone.. Also do comment about their accuracy and coverage.. I suppose all GPS devices do this.. any pointers where I can extract this info?? I tried google maps json api.. and don't like the idea that they rate limit the...