<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.gmailsignatureprefix
        {mso-style-name:gmail_signature_prefix;}
span.EmailStyle26
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Please remove.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> mapguide-users <mapguide-users-bounces@lists.osgeo.org> <b>On Behalf Of </b>Sympatico via mapguide-users<br><b>Sent:</b> Thursday, September 21, 2023 9:56 AM<br><b>To:</b> 'MapGuide Users Mail List' <mapguide-users@lists.osgeo.org><br><b>Cc:</b> Sympatico <pierre.cardinal@sympatico.ca><br><b>Subject:</b> Re: [mapguide-users] Loading Shapefile on fly using add layer manager<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><span lang=EN-CA>Hi, <o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-CA>As a suggestion, perhaps you can ask your users to convert Shp files to Geojson files with the ogr2ogr converter <a href="https://gdal.org/programs/ogr2ogr.html">https://gdal.org/programs/ogr2ogr.html</a>.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-CA>As another suggestion, try programming your viewer including the shp2geojson.js module <a href="https://github.com/gipong/shp2geojson.js">https://github.com/gipong/shp2geojson.js</a>.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-CA>Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-CA>Pierre<o:p></o:p></span></p></div><div id=ms-outlook-mobile-signature><div><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p></div></div><div id=mail-editor-reference-message-container><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span lang=FR-CA><hr size=2 width="98%" align=center></span></div><div id=divRplyFwdMsg><p class=MsoNormal><strong><span lang=FR-CA style='font-family:"Calibri",sans-serif'>De :</span></strong><span lang=FR-CA> mapguide-users <<a href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>> de la part de H A via mapguide-users <<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>><br><strong><span style='font-family:"Calibri",sans-serif'>Envoyé :</span></strong> jeudi, septembre 21, 2023 10:42:13 a.m.<br><strong><span style='font-family:"Calibri",sans-serif'>À :</span></strong> MapGuide Users Mail List <<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>><br><strong><span style='font-family:"Calibri",sans-serif'>Cc :</span></strong> H A <<a href="mailto:hadissaalinia@gmail.com">hadissaalinia@gmail.com</a>><br><strong><span style='font-family:"Calibri",sans-serif'>Objet :</span></strong> Re: [mapguide-users] Loading Shapefile on fly using add layer manager<o:p></o:p></span></p></div><p class=MsoNormal><span lang=FR-CA><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-CA>Hi Jackie, <o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-CA>Thank you for your prompt email. Is there any other way like using leaflet, fusion, and MapGuide rest to be able to load shapefiles? <o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-CA>Hadis<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p></div></div><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p><div><div><p class=MsoNormal><span lang=EN-CA>On Thu, Sep 21, 2023 at 6:57 AM Jackie Ng via mapguide-users <</span><span lang=FR-CA><a href="mailto:mapguide-users@lists.osgeo.org"><span lang=EN-CA>mapguide-users@lists.osgeo.org</span></a></span><span lang=EN-CA>> wrote:<o:p></o:p></span></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><div><p class=MsoNormal><span lang=EN-CA>Most of what mapguide-react-layout can/cannot do is driven by the underlying OpenLayers library we're using.<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-CA>OpenLayers cannot create client-side vector layers from SHP files, so there will not be such support in mapguide-react-layout either.<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-CA>- Jackie<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p></div><p class=MsoNormal><span lang=EN-CA>You wrote:<o:p></o:p></span></p><div><pre><span lang=EN-CA style='color:black'>Hi<o:p></o:p></span></pre><pre><span lang=EN-CA style='color:black'><o:p> </o:p></span></pre><pre><span lang=EN-CA style='color:black'>I’d like my webpage’s user to load either shapefile or tab file from their<o:p></o:p></span></pre><pre><span lang=EN-CA style='color:black'>local machine using external layer manager. I use manguide react layout so<o:p></o:p></span></pre><pre><span lang=EN-CA style='color:black'>the users are enable to add their data in GeoJson, kml and csv which is<o:p></o:p></span></pre><pre><span lang=EN-CA style='color:black'>good. But I want them to be a ale to load their shapefiles or tab files to<o:p></o:p></span></pre><pre><span lang=EN-CA style='color:black'>the map. Please advise how to proceed? And if you plan to that as<o:p></o:p></span></pre><pre><span lang=EN-CA style='color:black'>additional option in the new version of map guide layout? Or let me know<o:p></o:p></span></pre><pre><span lang=EN-CA style='color:black'>which JS code in the source files should be updated or change from our<o:p></o:p></span></pre><pre><span lang=EN-CA style='color:black'>side?<o:p></o:p></span></pre><pre><span lang=EN-CA style='color:black'><o:p> </o:p></span></pre><pre><span lang=EN-CA style='color:black'>Thanks<o:p></o:p></span></pre><pre><span lang=EN-CA style='color:black'>Hadis<o:p></o:p></span></pre></div><p class=MsoNormal><span class=gmailsignatureprefix><span lang=EN-CA>-- </span></span><span lang=EN-CA><o:p></o:p></span></p><div><div><p class=MsoNormal><i><span lang=EN-CA style='font-size:7.5pt'>Please Note: I no longer create new posts or post replies to any OSGeo mailing list through nabble. As a result, you most likely won't see this message appear on nabble's view of any OSGeo mailing list and may only see this message through mailing list archives or depending on your mailing list subscription settings, through daily message digests or automated notifications from the mailing lists.</span></i><span lang=EN-CA><o:p></o:p></span></p></div></div></div><p class=MsoNormal><span lang=EN-CA>_______________________________________________<br>mapguide-users mailing list<br></span><span lang=FR-CA><a href="mailto:mapguide-users@lists.osgeo.org"><span lang=EN-CA>mapguide-users@lists.osgeo.org</span></a></span><span lang=EN-CA><br></span><span lang=FR-CA><a href="https://lists.osgeo.org/mailman/listinfo/mapguide-users"><span lang=EN-CA>https://lists.osgeo.org/mailman/listinfo/mapguide-users</span></a></span><span lang=EN-CA><o:p></o:p></span></p></blockquote></div><p class=MsoNormal><span lang=EN-CA><o:p> </o:p></span></p></div></div></body></html>