locked
Wrap Text RRS feed

  • Question

  • Can anyone tell me (newb) how to wrap the text round a pic in a pushpin popup? At the moment the text comes after the pic and takes up alot of space?

    Heres my current pushpin text:

    var veSouthwell = new VELatLong(53.077269761289195, -0.9560036659240723);
        var veSouthwellDetails = "<img src='../images/minsterextweb.jpg'><br>With its imposing Norman Minster, literary and historical connections and its famous Bramley Apple, Southwell is a place you will want to return to again and again.";
        var veSouthwellPin = new VEPushpin('Southwell', veSouthwell, '../images/icontowntour.gif', 'Southwell', veSouthwellDetails);
        vemap.AddPushpin(veSouthwellPin);

    Thanks

    Tuesday, February 20, 2007 2:21 PM

Answers

All replies

  • Take a look at w3schools - "More Examples":
    http://w3schools.com/html/html_images.asp

    It is simply html layout - for example you could use a 'align ="left"'

    John.

     

    Tuesday, February 20, 2007 11:12 PM
    Moderator
  • Thanks John for your time

    Sorry if this is a completely daft question but wherever i insert the align tag it just crashes the map and wont display.

    If you get time could you offer a solution?

    I thought this would work

    var veSouthwell = new VELatLong(53.077269761289195, -0.9560036659240723);
        var veSouthwellDetails = "<img src='../images/minsterextweb.jpg' align ="left" >With its imposing Norman Minster, literary and historical connections and its famous Bramley Apple, Southwell is a place you will want to return to again and again.";
        var veSouthwellPin = new VEPushpin('Southwell', veSouthwell, '../images/icontowntour.gif', 'Southwell', veSouthwellDetails);
        vemap.AddPushpin(veSouthwellPin);

     

    Thanks again.

    Wednesday, February 21, 2007 1:14 PM
  • Try to insert it into the style parameter:

    "<img src='../images/minsterextweb.jpg' style= 'align:left' >With its imposing Norman Minster, literary and historical connections and its famous Bramley Apple, Southwell is a place you will want to return to again and again.";
    Wednesday, February 21, 2007 4:16 PM
  • Hi Derek

    Thanks for the tip - I've tried this and it doesnt crash the map now but the text still sits at the bottom of the pic and wont wrap??? Beats me. Any more ideas?

     

    Thanks to all

    Wednesday, February 21, 2007 9:21 PM
  • Sorry that was harder then expected hey?

    this works for me:

    map.AddPushpin(new VEPushpin(1,map.GetCenter(),null,'My pushpin',"<img src='http://forums.microsoft.com/MSDN/Themes/default/images/icon_mini_home.gif' style= 'float:left' >With its imposing Norman Minster, literary and historical connections and its famous Bramley Apple, Southwell is a place you will want to return to again and again."));

    John.

    Wednesday, February 21, 2007 10:16 PM
    Moderator
  • John, you're an absolute star - that works a treat. I tried so many options before giving in and asking here. Its people like you guys, that are prepared to spend time to help a complete stranger, that means so much.

    Many thanks

    Crafty

    Thursday, February 22, 2007 12:38 PM