Hola,
-
*Configurar para que se vean desde cerca todas las capas vectoriales,
fuera de Europa:*
Editar archivo ../pmapper5/js/src/pm.ol.theme.js modificar el valor del
ZoomLevel a true en línea 16
applyGlobalNumZoomLevels: true,
*El PM.overviewMapOptions *en archivo ../config/default/js_config.php
dejarlo por default*, modificar en PM.mapOptions, *por ejemplo:
PM.mapOptions = {
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326"),
units: "m",
numZoomLevels: 25, //
restrictedZoomLevel: 20, // settings should be: restrictedMinZoom +
restrictedZoomLevel = numZoomLevels
restrictedMinZoom: 3, //
maxResolution: 'auto',
//maxResolution: 4891.9698095703125,
maxExtent: new
OpenLayers.Bounds(-6194245.89808,-3625040.119249,-6173627.009703,-3614816.666717)
//maxExtent: new OpenLayers.Bounds(800000,4500000,2500000,6200000)
};
*El árbol de capas, *archivo ../pmapper5/config/config_default.xml ej*:*
<map>
<mapFile>inicio.map</mapFile>
<tplMapFile>common/template.map</tplMapFile>
<projection>EPSG:900913</projection> <!-- likely not needed...
-->
<categories>
<category name="Cartografía Base" imgFormat="png"
olTheme="base" state="closed" buffer="0" themeType="PMTile">
<group>Parcelas</group>
<group>txt_parcelas</group>
<group>Parcelas_limite</group>
<group>ejes_calle_cerca</group>
<group>nombres_calle</group>
<group>nro_puerta</group>
<group>ejagua</group>
<group olTheme="urbanthm" imgFormat="png8"
name="urban"></group>
</category>
<category name="Infraestructura" olTheme="infra"
imgFormat="png8" description="Infrastructure" state="closed"
themeType="PMTile">
<group>Canteros_Plazas</group>
<group>areas_deportivas</group>
<group>puentes</group>
<group>fervia</group>
<group>cota192</group>
</category>
<category name="Ordenamiento" olTheme="base"
imgFormat="png" state="closed" description="Ordenamiento">
<group>zonas_plan_dir</group>
<group>suelos_18308</group>
</category>
<category name="Administrativas" olTheme="base"
imgFormat="png" state="closed" description="Divisiones Administrativas">
<group>Barrios</group>
<group>Localidades</group>
</category>
<category name="cat_osm" description="OSM">
<group olTheme="osmmapnik" name="osmmapnik"
description="OpenStreetMap" themeType="OSM" ></group>
</category>
<category name="cat_google" description="Google">
<group olTheme="gsat" name="gsat" description="Google
Satellite" themeType="Google" gmapType="SATELLITE"></group>
<!-- gmapType: SATELLITE | HYBRID | STREETS | TERRAIN
-->
</category>
<!--
<group olTheme="bing_test" name="bing"
themeType="OL"></group>
-->
</categories>
........................................................................................................................
<tocdomains>
<domain id="domain1" description="Capas Rivera" >
<category>Cartografía Base</category>
<category>Infraestructura</category>
<category>Ordenamiento</category>
<category>Administrativas</category>
</domain>
<domain id="domain2" description="Capas Google"
state="close">
<category>cat_osm</category>
<category>cat_google</category>
</domain>
</tocdomains>
Con estos cambios mínimos ya debería andar bien en tu zona geográfica,
obvio, modificar capas y nombres por las de tu archivo.map.
Saludos
Richard.
2012/9/27 Aníbal Pacheco <[email protected]>
> Hello I'm hacking pmapper5 from the example.
>
> The most difficult parts are:
>
> - Changing the overviewMapOptions (can't move the reference map from
> europe)
> - Try to change the layer tree (minimal changes brake it all)
>
> Any advice or reference doc?
>
> thank you
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://ad.doubleclick.net/clk;258768047;13503038;j?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> pmapper-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users