[Geomoose-users] Is there much interest in GM rendering vectors?

Brent Fraser bfraser at GeoAnalytic.com
Fri Jun 26 07:35:49 PDT 2020


Hi Chris,
  
   The MapBox GL Style spec is quite extensive (it's more like a JavaScript 
version of our mapbook considering what it covers), and it wasn't clear to 
me what portion of that was implemented in GeoMoose, and what was available 
in the underlying library ol-mapbox-style 
(https://github.com/openlayers/ol-mapbox-style).
  
 So today I tried the MapBox example 
https://docs.mapbox.com/mapbox-gl-js/example/data-driven-circle-colors/ 
with our demo geojson data (Cities and Villages):
   

     <map-source name="places" type="geojson" title="Cities and Villages" 
minresolution="100" maxresolution="5000">         
<url>./places.geojson</url>         <layer name="default">             
<style><![CDATA[             {                 "line-color" : [             
      "match",                   ["get","name"],                   
"Hastings",                   "red",                   "Bloomington",       
            "green",                   "black"                 ],           
      "line-width" : 5             }             ]]></style>    

  
 And it worked! (note the "black" color def is the default if feature 
property doesn't match).
  
 Brent
  

  
  
 -------- Original Message --------
> From: "Christopher Hughes" <chughes at co.lincoln.or.us>
> Sent: June 25, 2020 10:23 AM
> To: "Dan Little" <theduckylittle at gmail.com>
> Cc: "Brent Fraser" <bfraser at geoanalytic.com>, "GeoMoose Users" 
<geomoose-users at lists.osgeo.org>
> Subject: Re: [Geomoose-users] Is there much interest in GM rendering 
vectors?
>
> Regarding styling definitions in the mapbook, it may be useful to have 
an
> example styling a dataset based on attributes.
> (For example, as in this email thread:
> 
http://osgeo-org.1560.x6.nabble.com/Geomoose-users-AGS-vector-and-styling-td
5398651.html
> ,
> I think the recommendation here was to create a map-source for each 
style,
> I was able to create a layer for each style within a
> single map-source, which was a bit less clumsy)
>
> On Thu, Jun 25, 2020 at 8:13 AM Dan Little <theduckylittle at gmail.com> 
wrote:
>
> > We have all the basics ready to go, in fact, I'm surprised we don't 
have a
> > basic MVT example already!
> >
> > I'd also have some interest in doing some more testing with styling
> > definitions in the mapbook. I am not sure we captured it in a way 
that's
> > easy on users to grasp.
> >
> > On Wed, Jun 24, 2020 at 10:26 AM Brent Fraser 
<bfraser at geoanalytic.com>
> > wrote:
> >
> >> Hi All,
> >>
> >> Currently GeoMoose has the ability to render vectors from a few 
source
> >> (GeoJSON files, AGS, WFS). Is there any interest in enhancing GM to
> >> handle
> >> Vector Tiles and more advanced styling?
> >>
> >> Thanks for your input!
> >>
> >> Best Regards,
> >> Brent Fraser
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Geomoose-users mailing list
> >> Geomoose-users at lists.osgeo.org
> >> https://lists.osgeo.org/mailman/listinfo/geomoose-users
> >
> > _______________________________________________
> > Geomoose-users mailing list
> > Geomoose-users at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/geomoose-users
>
>
>
> --
> Chris Hughes
>
> GIS Analyst
> Lincoln County Surveyor Department
> 880 NE 7th St. l Newport, OR 97365
> Tel: (541) 574 1283




More information about the Geomoose-users mailing list