title: Unable to add Pushpins with Options with Bing Map V7
body: <p>I was able to add seven numbered pushpins using the Bing Maps V7 Interactive SDK at <a href="http://www.bingmapsportal.com/ISDK/AjaxV7#Pushpins4" rel="nofollow">http://www.bingmapsportal.com/ISDK/AjaxV7#Pushpins4</a>.</p>
  
  <p>The code was copied to our website but instead of showing the seven numbered pushpins the map was zoomed out completely with no pushpins.  How do I get the map to display correctly?</p>
  
  <p>Here is the code that is currently in place:</p>
  
  
  
  <pre><code>  &lt;script type="text/javascript"&gt;
    var map = null;
  
    function getMap()
    {
      map = new Microsoft.Maps.Map(document.getElementById('myMap'), {credentials: 'MyCredentialString'});
    }
  
    function addPushpinWithOptions()
    {
      map.entities.clear(); 
      var offset = new Microsoft.Maps.Point(0, 5);
      var pushpinOptions = {icon: virtualPath + '/Content/poi_custom.png', text : '1', visible: true, textOffset: offset}; 
      var pushpin= new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(39.597619, -104.803023), pushpinOptions);
      var pushpinOptions2 = {icon: virtualPath + '/Content/poi_custom.png', text : '2', visible: true, textOffset: offset}; 
      var pushpin2= new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(38.835701,-104.823429), pushpinOptions2);
      var pushpinOptions3 = {icon: virtualPath + '/Content/poi_custom.png', text : '3', visible: true, textOffset: offset}; 
      var pushpin3= new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(39.686367, -104.942632), pushpinOptions3);
      var pushpinOptions4 = {icon: virtualPath + '/Content/poi_custom.png', text : '4', visible: true, textOffset: offset}; 
      var pushpin4= new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(40.525520,-105.026337), pushpinOptions4);
      var pushpinOptions5 = {icon: virtualPath + '/Content/poi_custom.png', text : '5', visible: true, textOffset: offset}; 
      var pushpin5= new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(39.710943,-105.085228), pushpinOptions5);
      var pushpinOptions6 = {icon: virtualPath + '/Content/poi_custom.png', text : '6', visible: true, textOffset: offset}; 
      var pushpin6= new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(39.535295,-104.882056), pushpinOptions6);
      var pushpinOptions7 = {icon: virtualPath + '/Content/poi_custom.png', text : '7', visible: true, textOffset: offset}; 
      var pushpin7= new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(39.964544,-105.163545), pushpinOptions7);
      map.setView( {center: new Microsoft.Maps.Location(39.786367, -105.142632), zoom: 8}); 
      map.entities.push(pushpin);
      map.entities.push(pushpin2);
      map.entities.push(pushpin3);
      map.entities.push(pushpin4);
      map.entities.push(pushpin5);
      map.entities.push(pushpin6);
      map.entities.push(pushpin7);
    }
    &lt;/script&gt;
  </code></pre>