How to plot WKT with Bing Maps RRS feed

  • Question

  • Hey

    I have a large set of WKT from a GIS Shape File, some of the WKT is listed below:

    LINESTRING (43.8659182330805 -78.8875893808625, 43.8658587509627 -78.8875182626143)
    LINESTRING (43.8634499270299 -78.886402999395, 43.863085045641 -78.8880330168896)

    When I use the WellKnownTextModule and Read the LINSTRINGS in, using:

    Microsoft.Maps.loadModule('Microsoft.Maps.WellKnownText', function () {
        var wkt = "LINESTRING (43.8659182330805 -78.8875893808625, 43.8658587509627 -78.8875182626143)";
        var stroke = new Microsoft.Maps.Color.fromHex('#F44336');     
        var area = new, { strokeColor: stroke, strokeThickness: 30 });
        ${ center: new Microsoft.Maps.Location(43.865858, -78.887518), zoom: 16 });  
        $;  // This returns Object                    

    I'm not seeing the LINESTRING on the map.  When I examine Area I get:

    changed: n
    crs: n
    entity: null
    geometry: Object
    geometryType: 2
    _options: Object
    _template: n
    __proto__: n

    I'm calling Bing maps like:

        <script src=''></script>
    What I'm I doing wrong?  Shouldn't map out my line?  I've read that I can loop over <g class="gr_ gr_1005 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="1005" id="1005">area</g> to then push it as area[i], but this won't work it's an object.  

    <g class="gr_ gr_705 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="705" id="705">Docmur</g>

    Friday, July 28, 2017 4:33 PM