Rebonjour à tous.
Encore un petit problème et ensuite j'arrête de vous embêter.
Maintenant que ma carte s'affiche normalement j'ai un soucis avec la couleur du texte qui s'affiche dans le label. En effet ce dernier s'affiche en blanc sur fond blanc... Ce qui est d'autant moins facile pour lire!!!
Il est toutefois bien présent car si on surligne avec la souris il apparait...
Je mets le code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>API Geoportail - votre carte personnelle</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
div#viewerDiv {
width:800px;
height:600px;
background-color:black;
background-image:url(http://api.ign.fr/geoportail/api/js/.../loading.gif);
background-position:center center;
background-repeat:no-repeat;
}
div#footer {
font-size-small;
text-align:center;
width:800px;
}
div#footer a, div#footer a:link, div#footer a:visited, div#footer a:hover {
text-decoration:none;
color:black;
}
/*]]>*/--></style>
</head>
<body>
<div id="viewerDiv"></div>
<script type="text/javascript"><!--//--><![CDATA[//><!--
window.onload= function() {
Geoportal.load(
// div's ID:
'viewerDiv',
// API's keys:
['mon code'],
{// map's center :
// longitude:
lon:0.371877,
// latitude:
lat:45.205456
},
14,
{
label:'MOTOLOISIR24 - Les Meynards - St Martin de Ribérac',
}
);
};
//--><!]]></script>
<script
type="text/javascript"
src="http://api.ign.fr/geoportail/api/js/1.2/Geoportal.js">
<!-- -->
</script>
</body>
</html>
Partager