Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-10-28 Thread Minh.Ng
Hi, My map application is working within Intranet network. It is not allowed to access Internet so can not reach http://epsg.io/. So how can I do register epsg code for the react viewer? Many thanks, Minh - Minh Nguyen -- View this message in context:

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-10-25 Thread Jackie Ng
Insert this into the script of the entry HTML file before the call to viewer.mount() MapGuide.Externals.proj4.defs($EPSG_CODE, $PROJ4JS_DEF); For example (for EPSG:28355): MapGuide.Externals.proj4.defs("EPSG:28355","+proj=utm +zone=55 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-10-19 Thread Jackie Ng
I've just released 0.6.1, which should allow maps with raster layers to be loaded. https://github.com/jumpinjackie/mapguide-react-layout/releases/tag/v0.6.1 - Jackie -- View this message in context:

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-10-17 Thread svlad
Hi, it is still not possible to include raster layers. CREATERUNTIMEMAP returns ScaleRange null for raster layers. That leads to an error in deArrayifyScaleRanges. -- View this message in context:

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-10-17 Thread Jackie Ng
I've put out a new version (0.6) of mapguide-react-layout. I've made a ton of changes and fixes since the initial release. http://themapguyde.blogspot.com.au/2016/10/announcing-mapguide-react-layout-06.html - Jackie -- View this message in context:

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-10-11 Thread Jackie Ng
Ah, good find. The OL code was originally from the ol3 mapguide example, which used a ratio of 2. This slipped under my radar when I brought the code across. I'll get this fixed ASAP: https://github.com/jumpinjackie/mapguide-react-layout/issues/73 - Jackie -- View this message in context:

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-10-11 Thread svlad
Hi, I have set the ratio to 1 in map-viewer-base.tsx (lines 763 and 775) and evrything is good. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5290181.html Sent from the MapGuide Users mailing list

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-10-11 Thread morkl
The requested image size to viewport size ratio is explicitly set to 2: https://github.com/jumpinjackie/mapguide-react-layout/blob/827358d6aa5fbb4313d6d90d33f3655507dcb492/src/components/map-viewer-base.tsx#L763

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-10-11 Thread Jackie Ng
This is a problem somewhere in OpenLayers because using OpenLayers by itself with MapGuide exhibits the same problem. Do your image requests get bigger as you zoom in while the viewport remains the same size? - Jackie -- View this message in context:

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-10-10 Thread svlad
Hi, the viewer sends map requests with double the width and height of the canvas. Is this wanted? OPERATION=GETDYNAMICMAPOVERLAYIMAGE=2.0.0=en=ol.source.ImageMapGuide%20source=1=96=2840=1958=47162.08831294861 -- View this message in context:

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-10-04 Thread GordonL
Works great with AIMS 2017 for me. And MGOS 3.0 Love the new wrapper. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5289193.html Sent from the MapGuide Users mailing list archive at Nabble.com.

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-30 Thread Jackie Ng
As Web Layouts do not carry external base layer information, you have to currently add/uncomment the externalBaseLayers configuration element that is passed when the viewer mounts https://github.com/jumpinjackie/mapguide-react-layout/blob/master/viewer/index.html#L24 - Jackie -- View this

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-30 Thread svlad
That works! How can I include raster or WMS layers? I tryed raster sources with the same coordinate system like the map, with coordinate system override, WMS removed all other srs from the config.xml and so on... but in all cases I got errors. -- View this message in context:

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-29 Thread Kajar
Now I tired it with Mapguide latest 3.1beta and then I got it working. But how to use Opestreetmap and Stamen baselayers, which I found in index or sidebar.html? Those baselayers must work? -- View this message in context:

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-29 Thread Jackie Ng
What's the major.minor version of AIMS 2014? It sounds like older than 3.0 therefore won't be supported at the moment. - Jackie -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288550.html Sent from

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-29 Thread RenoSun
I am using AIMS 2014, and I got following messages: http://maps.qualicumbeach.com/qbmap/mapagent/mapagent.fcgi?MAPDEFINITION=Library://Test/Maps/Test.MapDefinition=7=...=CREATERUNTIMEMAP=3.0.0=en=application/json *The requested

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-29 Thread Jackie Ng
For EPSG codes not in 4326 and 3857 you currently have to locate the matching proj4js definition (check out http://epsg.io/) and register it with the viewer before it mounts like so: https://github.com/jumpinjackie/mapguide-react-layout/blob/master/viewer/index.html#L18 - Jackie -- View this

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-29 Thread svlad
It seems that the viewer works with maps and layers if they are both in EPGS:4326. If I change the coordinate system of a layer or a map I get errors in viewer.js. -- View this message in context:

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-29 Thread Kajar
Under installation there is note: Map the viewer directory as a child virtual directory under the MapGuide's wwwroot in your web server of choice (IIS or Apache) Does putting viewer folder into Mapguide root folder isn't enough? -- View this message in context:

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-28 Thread GeorgesK
To Kajar, Did you download the viewer.zip from the Releases section ? If you download the master(.zip) file, it will not work, since it doesn't have the dist/viewer.js file. Second, do you use a specific coordinate system ? If yes, check this url :

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-28 Thread svlad
Hi, now I get t is null in viewer.js Line 24 Row 25281 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288246.html Sent from the MapGuide Users mailing list archive at Nabble.com.

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-28 Thread Kajar
For me its still not working. When I have layout named "X" in folder Layouts, do I had to need to add WebLayout at the end and request must looks like: http://localhost:8008/mapguide/viewer/sidebar.html?resource=Library://Layouts/X.WebLayout -- View this message in context:

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-28 Thread Jackie Ng
If I hadn't made it clear, Application Definition support is not implemented yet. It only works with Web Layouts at the moment. - Jackie -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288201.html

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-28 Thread svlad
Hi Jackie, I installed the viewer and get the following error: "NetworkError: 559 MgInvalidRepositoryTypeException - http://localhost/mapguide/mapagent/mapagent.fcgi?SESSION=1e45a244-8548-11e6-8000-080027d1d906_en_MTI3LjAuMC4x0AFC0AFB0AFA=GETRESOURCECONTENT=undefined=1.0.0=en=application/json;

Re: [mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-28 Thread Kajar
Hi! I'm experiencing problem launching the new viewer. I downloaded and copied this viewer folder to my mapguide www root directory. Tried both template URL's, but can view only blank page(using Firefox, Chrome). My url looks like :

[mapguide-users] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-27 Thread Jackie Ng
Hi All, For those of you that follow my blog, you will have known about a modern map viewer I have been working on. It has reached a point where it is ready for me to reveal it to the public. mapguide-react-layout is a modern map viewer for MapGuide Open Source and Autodesk Infrastructure Map