[mapguide-users] Loading Shapefile on fly using add layer manager

pierre.cardinal at sympatico.ca pierre.cardinal at sympatico.ca
Thu Sep 21 17:30:59 PDT 2023


Hi, 

 

As a suggestion, perhaps you can ask your users to convert Shp files to Geojson files with the ogr2ogr converter https://gdal.org/programs/ogr2ogr.html.

 

As another suggestion, try programming your viewer including the shp2geojson.js module https://github.com/gipong/shp2geojson.js.

 

Regards,

 

Pierre

 

 

De : mapguide-users <mapguide-users-bounces at lists.osgeo.org> De la part de H A via mapguide-users
Envoyé : 21 septembre 2023 10:42
À : MapGuide Users Mail List <mapguide-users at lists.osgeo.org>
Cc : H A <hadissaalinia at gmail.com>
Objet : Re: [mapguide-users] Loading Shapefile on fly using add layer manager

 

Hi Jackie, 

 

Thank you for your prompt email. Is there any other way like using leaflet, fusion, and MapGuide rest to be able to load shapefiles? 

Hadis

 

 

 

On Thu, Sep 21, 2023 at 6:57 AM Jackie Ng via mapguide-users <mapguide-users at lists.osgeo.org <mailto:mapguide-users at lists.osgeo.org> > wrote:

Most of what mapguide-react-layout can/cannot do is driven by the underlying OpenLayers library we're using.

 

OpenLayers cannot create client-side vector layers from SHP files, so there will not be such support in mapguide-react-layout either.

 

- Jackie

 

You wrote:

Hi
 
I’d like my webpage’s user to load either shapefile or tab file from their
local machine using external layer manager. I use manguide react layout so
the users are enable to add their data in GeoJson, kml and csv which is
good. But I want them to be a ale to load their shapefiles or tab files to
the map. Please advise how to proceed? And if you plan to that as
additional option in the new version of map guide layout? Or let me know
which JS code in the source files should be updated or change from our
side?
 
Thanks
Hadis

-- 

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.

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org <mailto:mapguide-users at lists.osgeo.org> 
https://lists.osgeo.org/mailman/listinfo/mapguide-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20230921/f62863d9/attachment.htm>


More information about the mapguide-users mailing list