[mapguide-users] Mapguide Fusion Legend Feature Count

2021-01-11 Thread makoychan
Hi,

Is there a function or script to get feature count of each legend? i would
want to display count of features by legend category.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] MapGuide OpenLayers 6 Example without NODE

2021-01-11 Thread GordonL
Thanks for the tips Jackie.
Yes, I had to tweak some legacy code without NODE so this does come in
handy.





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] MapGuide OpenLayers 6 Example without NODE

2021-01-11 Thread Jackie Ng
Another tip *if you have to use ol.js*

When looking at their API docs, to figure out what the equivalent browser
global API is for their documented ES6 modules, just mentally translate
every instance of "/" to "."

So if you want to create a GeoJSON driver. Their ES docs say to import as
so:

import GeoJSON from "ol/format/GeoJSON";
...
const driver = new GeoJSON();

The browser global equivalent (after including ol.js in the script tag) is:

var driver = new ol.format.GeoJSON();

Most classes in OpenLayers are structured in this manner.

But seriously, you should be using node, webpack, et al to do frontend web
dev. Not because it's cool or fashionable. But because it's the is de-facto
standard way to do frontend dev in our current year.

The only reason you'd go with ol.js is if you're trying to integrate
OpenLayers into a "legacy" web site or web application that is not
compatible with modern frontend webdev.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] mgTileSeeder Zoom Levels

2021-01-11 Thread Jackie Ng
Oh I see. I thought XYZ layers only went up to 19 but according to this
(https://wiki.openstreetmap.org/wiki/Zoom_levels) that is clearly not the
case.

Tracking the issue here:
https://github.com/jumpinjackie/mapguide-maestro/issues/95

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] MapGuide 4: Displaying MapboxVectorTiles in OpenLayers

2021-01-11 Thread Jackie Ng
Hi Gunter,

Thank you for pointing out to my attention that the non-OL2 samples still
bundle OpenLayers 4.1 so I would not be surprised that the samples don't
work 1:1 when ported to the latest OpenLayers.

I'll eventually fix up the samples to use the latest OpenLayers as part of:
https://trac.osgeo.org/mapguide/ticket/2834

Until then, the only suggestion I can make is to follow their changelog from
4.1.0 to the current 6.5.0 and observe all breaking changes relating to MVT
tile support.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users