accès aux groupes de discussion, consultation et publication d'articles, recherche de "newsgroups"...
membres, identifiez-vous
é-mail Mot de passe
nouveau ? mot de passe oublié ?
Chargement... Chargement en cours...

Groupes français belges canadiens suisses internationaux Nétiquette
Échangez opinions et commentaires dans les forums de discussion.

openlayers + google maps + wlasny mapserver = dziwne przesuniecie

 [  Nouvelle Discussion Nouvelle discussion  |  Répondre au groupe Répondre au groupe  |  pl.comp.gis ] 

Retour : Accueil du site pl comp gis  


  Sujet:   openlayers + google maps + wlasny mapserver = dziwne przesuniecie  
 De: fat...@poczta.onet.eu (fatman)
 Groupes: pl.comp.gis
 Organisation: Onet.pl
 Date: 21. Jul 2008, 19:46:40
Hej, doda³em sobie googlow± warstwê do openlayers, do tego chcia³em 
dodaæ WMS z w³asnego mapservera. ¦ci±gn±³em shapefile'a polski z 
http://www.cdc.gov/EPIINFO/europe.htm. Mam jaki¶ problem z uk³adami, 
mapa polski jest przesuniêta. W dodatku, je¶li ju¿ na stronie j± 
wy³±czê/w³±czê pojawia siê w innym miejscu (wy¿ej lub ni¿ej - w pionie 
po³o¿enie zawsze jest OK).

Problem wygl±da tak:
http://img357.imageshack.us/img357/2684/gmapze6.jpg

A konfiguracja wygl±da tak:

MAP:

NAME "First"
   SIZE 800 600
   IMAGECOLOR 255 255 255
   IMAGETYPE JPEG
   SHAPEPATH "../data/"
   EXTENT -125.00 20.00 -65.00 50.00

   PROJECTION
     "init=epsg:4326"
   END

   LAYER
     NAME "states"
     STATUS default
     TYPE line
     DATA "epi/pl"

     CLASS
       STYLE
         COLOR 0 0 0
       END

       LABEL
         COLOR 0 0 0
         SIZE SMALL
       END
     END
   END

END

html (fragment)
var gsat = new OpenLayers.Layer.Google(
"Google Satellite", {type: G_SATELLITE_MAP}
);

var myLayer = new OpenLayers.Layer.WMS(
  "Borders",
"http://localhost/cgi-bin/mapserv.exe?map=/map/first.map",
{layers: "states", format: "image/png", srs:"EPSG:4326", transparent: 
"true"});

map.addLayers([gsat, myLayer]);

Pro¶ba o pomoc

S.


DateSujet  Auteur
21.07.
*   openlayers + google
fatman
22.07.
+- Re: openlayers + google
fatman
24.07.
`- Re: openlayers + google
fatman
Groups Explorer contact votre avis comment ça marche? rechercher un groupe suggérer un groupe abuse accueil du site   Imprimer cette page   Envoyer cette page à un(e) ami(e)
Usenet Gratuit