[OpenLayers-Users] can't get a right german map as an overlay
working
jopix
jdev at lucky-day.de
Sun Aug 16 11:41:44 EDT 2009
i am working on a project for information for german elections - try to get a
map with several category layers working.
Base should be an image: a map of germany
(http://de.wikipedia.org/w/index.php?title=Datei:Bundestag_Wahlkreise_2009.svg&filetimestamp=20081010175633)
All logic seems to be ok, can add layers with categories on top of the image
- > but i can't get the right view (maybe projection?) of the map.
It is allways a compressed view.
There are only the image, xml-files - no mapserver, no backend.
What's wrong with my code?
Any Idea to let it look like the original image?
Thank you.
*******MAP********
// Map options:
// start with no controls, restrict view to just Germany, allow 4
different zoom options
var map_options = {
controls: [],
scales: [5000000, 4000000, 3000000, 2000000,
1300000],
maxResolution: 30000/1024,
projection:"EPSG:4326",
maxExtend: new OpenLayers.Bounds(5.25075, 47.2441, 15.425, 55.0317)
}
// Generate the map
map = new OpenLayers.Map('map', map_options);
var graphic = new OpenLayers.Layer.Image(
'Deutschland',
'hts/g_election_districts_2005_02_v1.png',
new OpenLayers.Bounds(5.25075,
47.2441, 15.425,55.0317),
// Not sure exactly what Size controls
new OpenLayers.Size(80, 110),
{});
*********************
--
View this message in context: http://n2.nabble.com/can%27t-get-a-right-german-map-as-an-overlay-working-tp3453890p3453890.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list