Discussion:
[mapguide-users] The customization story in mapguide-react-layout
Jackie Ng
2017-03-07 14:50:02 UTC
Permalink
Hi All,

I've been getting more questions lately about "How do I do X" with
mapguide-react-layout.

So I've written a blog post about what customization options are currently
available and what to expect for upcoming releases on the
customization/extensibility front.

http://themapguyde.blogspot.com.au/2017/03/react-ing-to-need-for-modern-mapguide.html

Hopefully this blog post will address whatever question you might have on
this matter.

If not? Feel free to ask on this thread and I'll see if I am able to answer
to the best of what I know.

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/The-customization-story-in-mapguide-react-layout-tp5311221.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
Jamo
2017-03-14 02:11:36 UTC
Permalink
Hey Jackie,

I'm completely new to the whole GIT pull request clone build thing (this
could be painful).

I think I've done this right but just want to check I've not messed
something up.

I've downloaded VSCode used gitgui to clone the master branch repository and
installed yarn and node.js

Next up I've made some minor changes to the "selection-panel.tsx"
add a href link when the property name is "Readings" opened the terminal
within VSCode and run yarn install

everything looks like it passed and built then i copy the viewer folder to
the web server and run it ....
and get the error below

using the release version 0.8 works though ..... I must be doing something
wrong

yarn install


web server error




-----
MapGuide Maestro 6.0.0.8587
MapGuide Opensource 3.0.0.8701
Fusion, PHP, Apache
Windows 7 Pro SP1

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/The-customization-story-in-mapguide-react-layout-tp5311221p5312175.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
Jackie Ng
2017-03-14 06:31:52 UTC
Permalink
In Chrome/Firefox dev tools, it should pick up the source map for viewer.js
and you should get back a friendlier looking stack trace.

Actually, if you want a friendlier dev experience, you should make an IIS
virtual dir from /mapguide that points to the viewer directory of the git
clone:

eg. /mapguide/viewer-dev -> C:\tools\git\mapguide-react-layout\viewer

And then either put a copy or symlink of webconfig.ini into C:\tools\git

From there, you can run "yarn run watch:dev" that will make a full debug
viewer bundle and webpack will continuously monitor and live-rebuild this
bundle on any change of any .ts or .tsx file in the viewer source. A browser
reload afterwards will pick up the live-rebuilt bundle.

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/The-customization-story-in-mapguide-react-layout-tp5311221p5312185.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

Loading...