Adding new place type

7 views
Skip to first unread message

Eric Smith

unread,
Jan 13, 2014, 11:21:39 AM1/13/14
to shareab...@googlegroups.com
I am trying to add a new place type to show up in the add a place page. In the config.yml I see the place types but when I add a new one following the format below by changing the unique fields it does not show up on the page even when refreshing, restarting the server (local for testing) or when using incognito in Chrome.

Any ideas? Are there other areas it needs to be updated?



place_types:
  landmark:
    label: _(Landmark)
    rules:
      - condition: '"{{location_type}}" === "landmark"'
        # Display landmarks as icons

        icon:
          iconUrl: /static/css/images/markers/triangle-0d85e9.png
          iconSize: [17, 18]
          iconAnchor: [9, 9]
        focus_icon:
          iconUrl: /static/css/images/markers/marker-e644b7.png
          shadowUrl: /static/css/images/marker-shadow.png
          iconSize: [25, 41]
          shadowSize: [41, 41]
          iconAnchor: [12, 41]

        # style:
        #   color: '#0d85e9'
        #   radius: 8
        #   weight: 1
        #   opacity: 0.9
        #   fillOpacity: 0.4
        # focus_style:
        #   color: '#0d85e9'
        #   radius: 16
        #   weight: 1
        #   opacity: 0.9
        #   fillOpacity: 0.4

Thank you,
Eric

Frank Hebbert

unread,
Jan 13, 2014, 11:24:54 AM1/13/14
to shareab...@googlegroups.com
Did you include it in the place types dropdown too? Set here: https://github.com/openplans/shareabouts/blob/master/src/flavors/default/config.yml#L181


--
-- --
Shareabouts Developers group.
Unsubscribe: https://groups.google.com/d/forum/shareabouts-dev?hl=en
---
You received this message because you are subscribed to the Google Groups "Shareabouts Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shareabouts-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Frank Hebbert
OpenPlans | http://openplans.org | 720 432-2378 | @fkh

Eric Smith

unread,
Jan 13, 2014, 11:31:11 AM1/13/14
to shareab...@googlegroups.com
I did not, now that I did it works great!

Thanks again for the help Frank.
Reply all
Reply to author
Forward
0 new messages