[OpenLayers-Users] can't get a german map overlay working
jopix
jdev at lucky-day.de
Mon Aug 17 13:58:29 EDT 2009
As a follow up to my ask for help on the proportion problem i add this
example map: http://lucky-day.de/site/expl/map.html
When i set the boundaries to a square-value (eg. 5,5,5,5) - image will show
up right but naturally the markers wouldn't show up.
Does anybody has a hint for me?
jopix wrote:
>
> 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-german-map-overlay-working-tp3453890p3460951.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list