Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9230485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:50:13+00:00 2026-06-18T05:50:13+00:00

I have a problem with my popup google map. I’m parametered all the text

  • 0

I have a problem with my popup google map.
I’m parametered all the text “contenuInfoBulle.”
So the text is displayed correctly but not html why?
I want the text to appear in var popup=$('<div/>', {
id:+name,
text:'slt'+contenuInfoBulle

But I wondered if it was possible to put html in the popup

$(function(){function initialize() {




    var mapOptions = {
      zoom: 4,
       disableDefaultUI: true,
      center: new google.maps.LatLng(45.35, 4.98),
      mapTypeId: google.maps.MapTypeId.TERRAIN
    }
    var map = new google.maps.Map(document.getElementById('map_canvas'),
                                  mapOptions);

    addMarkerWithWindow("Lemans", new google.maps.LatLng(48.006922, 0.20874), map);
    addMarkerWithWindow("Paris", new google.maps.LatLng(48.856291, 2.352705), map);
}




function addMarkerWithWindow(name, coordinate, map) {
var popup=$('<div/>', {
     content: contenuInfoBulle
});

var image = 'rss.png';
var marker = new google.maps.Marker({
  map: map,
  icon: image,
  position: coordinate
});




    var styles = [
   {
      featureType: "all",
      stylers: [
        { saturation: -15 },
        { lightness: -10 },
      ]
    },

            ];
map.setOptions({styles: styles});



var contenuInfoBulle = '<h1>Cité Royale de Loches</h1>' +   
                        '<h2>Royale et imprenable</h2>' +
                        '<img id="lettrineImage" src="http://static.touraineverte.com/apigooglemapv3/photo_monument-loches.jpg" title="La cité royale de Loches" />' +
                        '<p>Remontez le temps pour découvrir l\'une des plus belles cités fortifiées de France.</p>' +
                        '<p>Le <b>DONJON</b>, haut de 36 mètres, a été construit par un comte d\'Anjou, Foulques Nerra, au début du XIe siècle. S\'il figure parmi les plus imposants de son époque en Europe, il est aussi l\'un des mieux conservés. Modèle d\'architecture militaire, il est transformé en prison royale par Louis XI.</p>' +
                        '<p>Le <b>LOGIS ROYAL</b> se trouve à proximité. Ce joyau de la Renaissance française, haut lieu de l\'Histoire de France, a été une résidence de prédilection de la dynastie des Valois. Sa façade ouverte en terrasse domine la ville et la vallée de l\'Indre. Le logis a accueilli notamment Jeanne d\'Arc, Agnès Sorel et Anne de Bretagne. Pour en savoir plus : <a href="http://www.cg37.fr/index.php?media=106" title="La cité royale de Loches" target="_parent">La cité royale de Loches</a></p>';//  jQuery var popup=$('<div/>', {
id:+name,
text:'slt'+contenuInfoBulle}).dialog({
'autoOpen':false,
'width': 600,
'height':600,
'resizable':false,
'modal':false,
'title':name});

       var div = document.createElement('DIV');
    div.innerHTML = 'hello';google.maps.event.addListener(marker, 'click', function(e) {
popup.dialog('open');});}initialize();});//]]> google.maps.event.addDomListener(window, 'load', initialisation);

http://jsfiddle.net/cJbad/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:50:14+00:00Added an answer on June 18, 2026 at 5:50 am

    Change this:

    text:'slt'+contenuInfoBulle
    

    to:

    html:'slt'+contenuInfoBulle
    

    Working example

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem SIMILAR to preventing form data reposting, but not quite the same
I have a problem: When I enter a text into suggestion text box, popup
I'm trying to display a Popup using jQuery Mobile, but I have a problem
I have a google map to embed using the simple iframe code. my problem
I have some problem with my open new window popup which it can read
I have problem while loading data into html select when users press or click
I have a height problem with Sexy Combo ( google 'Sexy Combo' ), a
So i am building a 'like' button but i have a small problem after
I have a problem with a JComboBox popup. My JComboBox has an autocompletition implementation
I have a height problem with Sexy Combo ( google 'Sexy Combo' ), a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.