Changeset 62124 in spip-zone


Ignore:
Timestamp:
Jun 4, 2012, 4:28:19 PM (7 years ago)
Author:
brunobergot@…
Message:

fix : matcher les bons mapetypeid pour google

Location:
_plugins_/gis/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/gis/trunk/formulaires/configurer_gis.html

    r62121 r62124  
    124124                var base_layer = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',{attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'});
    125125                ][(#VAL|gis_api_utilisee|=={googlev3}|oui)
    126                 var base_layer = new L.Google('[(#GET{maptype}|=={PHYSICAL}|?{TERRAIN,#GET{maptype}})]');
     126                var base_layer = new L.Google('[(#GET{maptype}|replace{ROAD,ROADMAP}|replace{PHYSICAL,TERRAIN})]');
    127127                ]
    128128               
  • _plugins_/gis/trunk/modeles/carte_gis.html

    r62121 r62124  
    8989                var base_layer = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',{attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'});
    9090                ][(#VAL|gis_api_utilisee|=={googlev3}|oui)
    91                 var base_layer = new L.Google('[(#GET{maptype}|=={PHYSICAL}|?{TERRAIN,#GET{maptype}})]');
     91                var base_layer = new L.Google('[(#GET{maptype}|replace{ROAD,ROADMAP}|replace{PHYSICAL,TERRAIN})]');
    9292                ]
    9393               
  • _plugins_/gis/trunk/modeles/carte_gis_preview.html

    r62121 r62124  
    1919                var base_layer = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',{attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'});
    2020                ][(#VAL|gis_api_utilisee|=={googlev3}|oui)
    21                 var base_layer = new L.Google('[(#GET{maptype}|=={PHYSICAL}|?{TERRAIN,#GET{maptype}})]');
     21                var base_layer = new L.Google('[(#GET{maptype}|replace{ROAD,ROADMAP}|replace{PHYSICAL,TERRAIN})]');
    2222                ]
    2323               
  • _plugins_/gis/trunk/saisies/carte.html

    r62121 r62124  
    107107                var base_layer = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',{attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'});
    108108                ][(#VAL|gis_api_utilisee|=={googlev3}|oui)
    109                 var base_layer = new L.Google('[(#GET{maptype}|=={PHYSICAL}|?{TERRAIN,#GET{maptype}})]');
     109                var base_layer = new L.Google('[(#GET{maptype}|replace{ROAD,ROADMAP}|replace{PHYSICAL,TERRAIN})]');
    110110                ]
    111111               
Note: See TracChangeset for help on using the changeset viewer.