[Spanish] Medir sobre Capa Google y propias

Antonio Santiago asantiagop at gmail.com
Wed Sep 29 04:08:19 EDT 2010


Hola
yo tengo capas de google, yahoo, bing y WMS y todo fuciona ok.

Hecha un vistazo a:
http://docs.openlayers.org/library/spherical_mercator.html
<http://docs.openlayers.org/library/spherical_mercator.html>tal vez te
olvidaste de la opcion sphericalMercator.


var options = {
    projection: new OpenLayers.Projection("EPSG:900913"),
    units: "m",
    maxResolution: 156543.0339,
    maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
                                     20037508.34, 20037508.34)};
map = new OpenLayers.Map('map', options);
// create Google Mercator layersvar gmap = new OpenLayers.Layer.Google(
    "Google Streets",
    {'sphericalMercator': true,
     'maxExtent': new
OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34)
    });
// create WMS layervar wms = new OpenLayers.Layer.WMS(
    "World Map",
    "http://labs.metacarta.com/wms/vmap0",
    {'layers': 'basic', 'transparent': true});
map.addLayers(gmap, wms);



2010/9/29 Agustin García Pérez <agarcia at avalon.com.es>

>  Buenos días
>
> Estoy empezando con desarrollos sobre Openlayers y llevo unos días
> peleándome con el tema de medidas tanto de longitudes como de areas. Cuando
> solo utilizo capas mías no tengo problemas, pero a la hora de añadir una
> capa de Google, el cursor a la hora de empezar las medias, se me desplaza
> aproximadamente unos 200m hacia el norte.
>
> ¿Alguien sabe como podría solucionar esto?
>
>  Agustín García Pérez Avalon Tecnologías de la Información S.L.
> Tlf. 91 781 42 26 Ext.108
> E-mail: agarcia at avalon.com.es
>
>
> _______________________________________________
> Spanish mailing list
> Spanish at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/spanish
>
>


-- 
|-----------------------------------------------------------
| http://www.astracanada.net
| http://acuriousanimal.orggeo.net
|-----------------------------------------------------------
| http://acuriousanimal.blogspot.com
| http://theballoonproject.blogspot.com
|-----------------------------------------------------------
|  _      __
| /_|    (  _  _/'_ _
|(  |.  __)(//)//(/(/()
|                   _/
|-----------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/spanish/attachments/20100929/ad641423/attachment.html


More information about the Spanish mailing list