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: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5293213.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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 +no_defs");

The $PROJ4JS_DEF you can manually get from http://epsg.io/$EPSG_CODE

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5292691.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5291442.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5291064.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5291038.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5290208.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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 archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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
https://github.com/jumpinjackie/mapguide-react-layout/blob/827358d6aa5fbb4313d6d90d33f3655507dcb492/src/components/map-viewer-base.tsx#L775
Setting it to 1 should make it request the same image size as the viewport?

Alternatively, to allow large requests with normal quality WMS layers,
increase these values in serverconfig.ini:
MaxRasterImageHeight = 2048
MaxRasterImageWidth = 2048

However, this only works if the WMS server also allows large requests.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5290177.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5290164.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5290071.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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 message in context: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288715.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288626.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288570.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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 the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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 operation is invalid.*

Is it because I am using AIMS2014?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288546.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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 message in context: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288527.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288521.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288511.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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 :
https://github.com/jumpinjackie/mapguide-react-layout/blob/master/KNOWN_ISSUES.md#viewer

Hope this helps.

Georges



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288247.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288245.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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;

My request is:
http://localhost/mapguide/viewer/index.html?WEBLAYOUT=Library://Layouts/test.WebLayout=en
 

What did I do wrong?

MG OS 3.0, W2012, Browser Firefox 48

Thanks svlad



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288186.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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 :
http://ip:8008/mapguide/viewer/sidebar.html?resource=Library://LayoutFolder/WeblayoutName.ApplicationDefinition
I'm using Mapguide 3.0 and Apache webserver.

What I'm doing wrong?





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288185.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

[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 Server. It is built on the best-of-breed modern
web technologies (React, OpenLayers 3, TypeScript) and can be considered as
the logical successor to the Fusion and AJAX viewers.

It is driven by the same Web Layout (and in a future release, Application
Definition) documents that currently drive the AJAX and Fusion viewers,
ensuring a development and authoring experience that is identical to our
current viewer offerings.

You can find the source at my github repo:
https://github.com/jumpinjackie/mapguide-react-layout

An initial introduction to mapguide-react-layout can also be found on my
blog:
http://themapguyde.blogspot.com.au/2016/09/introducing-mapguide-react-layout.html

Questions, comments, feedback, pull requests. All welcome.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users