maps

scala Map filterKeys: Projection cannot be assigned to a Map reference

The following code: var m: Map[String, Int] = Map("A" -> 1, "BB" -> 2, "CCC" -> 3) m = m filterKeys { s => s.length < 3 } Does not compile. I get the following error: error: type mismatch found: collection.this.Map.Projection[scala.this.Predef.String,scala.this.Int] required: collection.this.Map[scala.this.Predef.String,scala...

Yahoo maps API, autoexpand labels clipping

The labels added by YMarker.addAutoExpand are always clipping off the top or right edge of the map if they are added near the edge. Is there some way to prevent this? Ideally I'd like to be able to do something like set CSS overflow=visible for them. I tried setting overflow visible for the whole map, but that causes the map to show h...

Java: Spring Framework: Declaring Nested Maps

I get an error at 4th line saying: cvc-complex-type.2.4.d: Invalid content was found starting with element 'map'. No child element is expected at this point. <util:map id="entirePayTypesMap"> <entry key="34"> <value> <map> <entry key="default"> <v...

How to load a Google Static Maps Image using Javascript

Right now I can use this URL to request a Google Static Maps image successfully: http://maps.google.com/staticmap?center=37.687,-122.407&amp;zoom=8&amp;size=450x300&amp;maptype=terrain&amp;key=[my key here]&sensor=false However, the second I use JQuery or any direct javascript to set an image's src to the above url, Google passes back...

Virtual Earth won't render properly in ASP.NET MVC view.

The following code: <body onload="GetMap()"> <script type="text/javascript" src="https://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6&amp;s=1"&gt;&lt;/script&gt; <script type="text/javascript"> var map = null; function GetMap() { map = new VEMap('myMap'); map.LoadMap(); }...

Convert Lat/Longs to X/Y Co-ordinates

I have the Lat/Long value of New York City, NY; 40.7560540,-73.9869510 and a flat image of the earth, 1000px × 446px. I would like to be able to convert, using Javascript, the Lat/Long to an X,Y coordinate where the point would reflect the location. So the X,Y coordinate form the Top-Left corner of the image would be; 289, 111 Things ...

Mapping API for Flex/Actionscript application?

I'm working on an application in Flex will utilize mapping features. I have experience with the Google Maps API in Flex, but it seems sort of limited to me (as compared to other APIs and the Javascript API). In particular, I'm interested in developing some clustering (grouping places together to prevent too many points from being on the ...

Does any map api allow you to retrieve an exact area?

I'd like a way to obtain a static map (an image file) based on two coordinates representing the desired rectangle or area. Suggestions? ...

Using scroll wheel to zoom in/out

I know this is available in version 2.x of Google Map API. But I couldn't find how to use it in v3, I'm not even sure if it's implemented yet. So I was just wondering if someone had the idea. Thanks. ...

Building density maps with large geocoded datasets?

I have a data set with over 50,000 geocoded points (lat-long). Each point has a set of data associated with it -- things like quality, status, etc. I'd like to make a set of density maps showing the distribution of data by those metrics. For example, one map would show the density of all items with a quality of "good". With a smaller ...

Finding the lat-long of the corners in a Google Maps window

Using the Google Maps API, how can I get the latitude and longitude of the corners of the map display area? That is, if my map is 300px wide and 400px tall, how can I find the lat-long of the points at (0,0) and (300,400)? ...

STL maps with user-defined objects

I'm wondering why I can't use STL maps with user-defined classes. When I compile the code below, I get this cryptic error message. What does it mean? Also, why is it only happening with user-defined types? (primitive types are okay when it is used for the key) C:\MinGW\bin..\lib\gcc\mingw32\3.4.5........\include\c++\3.4.5\bits\stl_f...

Convert ESRI projection coordinates to lat-lng

I have a large dataset of x,y coordinates in "NAD 1983 StatePlane Michigan South FIPS 2113 Feet" (aka ESRI 102690). I'd like to convert them to lat-lng points. In theory, this is something proj is built to handle, but the documentation hasn't given me a clue -- it seems to describe much more complicated cases. I've tried using a python...

What is the best map implementation to use when storing integers with char keys?

I have a set of flags which are part of a huge text data file as single characters. Before processing the file I map each flag to the id of a property it represents. While processing the file I need to look up these mappings as fast as possible (I do it a lot). Currently I store these in a HashMap. And the code looks like this: pri...

How can I get latitude, longitude from x, y on a Mercator map (JPEG)?

I have a Mercator projection map as a JPEG and I would like to know how to relate a given x, y coordinate to its latitude and longitude. I've looked at the Gudermannian function but I honestly don't understand how to take that function and apply it. Namely, what input is it expecting? The implementation I found (JavaScript) seems to t...

bing maps cost money?

hi I am building a new web site in asp.net, and im newbie with using maps. For my web site i will need the following functionality: display a map of specific location. display route map between two or more location calculate distance between 2 locations. I found most of the functionality at the Bing Maps interactive SDK site: and...

Javascript based interactive map application

Greetings, I'm looking for a quick way of slicing the map of a country by regions and when clicked on a specific region, showing some gui with the info of the region. I am looking for a quick framework, plugin or such to achieve this swiftly. I know it can easily be achieved using flash but I want to rely on javascript instead. Cheers ...

Stop bing maps simplifying polygons

Bing maps currently simplifies each polygon shape that gets put on the map. While that's good for most things, I need to show the full resolution polygons and I'll sort out the simplification myself. Any ideas on how to do this, I can't seem to find a way to turn it off and finding documentation on Bing/live/VE/MS/whatever maps is a ni...

using google map after logging

I have a project witch is using googleMap, when I used localhost googleMap works correctly and anythings is OK, but when I deploy it on the other computer the site can not work(don't show google map!!!). I got a valid key but stil this problem exists! please help me! ...

VEMap Pan triggers VEMap.onclick

I'm using the Virtual Earth (or Bing!...) SDK and need to attach an event when someone clicks the map. Unfortunately panning the map also triggers the onclick event. Does anyone know of a work around? function GetMap(){ map = new VEMap('dvMap'); map.LoadMap(new VELatLong(35.576916524038616,-80.9410858154297), 11, 'h',false); mapIsInit...