Find A Tutor
Navigation |
GMap Module Filter capabilities DemoSubmitted by james on January 31, 2006 - 2:24pm.
This page will give some demos on what can be done with the gmap filter module. We are still working on doing some significant changes to the way that the macro creator works. However, in the meantime, to use many of the features manual editing of the (Note: XMaps is no longer compatible with the latest version of the Google Maps API (and therefore the gmap module. Hopefully either XMaps will be updated, or this circles, and dashed line ability will be rolled into the gmap module.) In order to create this map a number of steps were used Map LayoutThe available tags for map charecteristics are:
Any of these can be left blank and the default value in the settings will be used. This map layout above was created with: MarkersWhen you click on the map, the macro creator will add markers. you can then customize the markers with a few options:
It should be noted that you can have multiple sets of markers on the same map. The two sets of markers in the sample map were created using the following: StylesFor the lines and the shapes there are some styles that can optionally be set. Where these are not set, the defaults for google are used. These styles are separated by a "/" and preceed the points and are separated by the series of points by a ":". The possible style settings are:
LinesLines can be created with the macro generator and then the styles above can be used. The seabus line in the above map uses the following:
It should be noted that in order to see the text the line must be a certain length on the screen therefore to see "seabus" you must zoom in on the seabus line a couple of time. Circle/rpolygon (requires xmaps)A circle is specified with the centre point and then the diameter of the circle separated by a "+" symbol, a third optional parameter, for number of sides can be added. (By default the circle has 32 sides, but you can specify more or less and create a different regular polygon. A regular polygon uses the same criteria excep that it uses two points the first being the centre, and the second being a point on the regular polygon, agian the number of sides is an optional third parameter. Circles can of course have any style information above added and can be filled. The circle showing 10 km from the airport is created with the following:
It is often easiest to use the macro creator to set the point for the centre and then edit the macro to make this into a circle. Polygon (requires xmaps)A polygon is just a filled line. The following shades in the UBC area: There seems to be a bug that isn't allowing the style information to be parsed correctly for polygons... FeedsThe newest ability of maps created with the gmap.module is to have feeds that takes the information from a local rss feed with location information. For a demo see: photo-tips.ca/gmapfeeddemo. Yes there seems to be a problem with it. It had worked fine before, so Google must have changed something. I haven't been involved in gmap development lately so I'm not sure if the problem has been corrected with the latest version of the module. I will be trying to update it soon. - James Thanks for creating a great module!! I am using it with 4.7. I need to be able to put more than one word on a line in the marker popup window...eg for typing in an address. If I put more than one word on a line, with a space in between, the second word breaks to the next line. It does this in both IE and Firefox. I notice that your demo is doing the same thing. Perhaps this is current bug in module? Please advise. Also how can I modify code so popup opens automatically? Thanks! |
Is it just me or is there no map showing in this page? I am using Firefox on a Mac OS X, all I see is a blank space.