Loading...
 
Features / Usability

Features / Usability


minimal example of using native tikiwiki support to show a OpenLayers map?

posts: 2

Hi

I am trying to use tikiwiki (13.0) to show a basic map (e.g. of Africa). I searched the tiki-wiki online documentation at https://doc.tiki.org/OpenLayers

There was a mention that "Native support for OpenLayers" was introduced in Tiki 7, but there is no example or any other information.

I was wondering if someone could help provide a minimal complete example of using OpenLayers (and OpenStreetMap) to show a map of Africa?

P.S.

Not finding a means to show any map on Tiki 13.0, I reverted back to Tiki 12.2 LTS. I still cannot find any map features. According to this documentation: https://doc.tiki.org/Tutorial%3A+Navigating+Maps?structure=Tutorials
, there should exists a "maps" menu somewhere in the tiki menu. But this is not the case for my installation. Any suggestions on how to show a map on tiki 12/13?

Many thanks,

posts: 838 United Kingdom

Hi - most of the map documentation is at doc.tiki.org/PluginMap - although as the page 'confesses' because of the many changes that have been made in the map area this page does need some substantial updating.

I have however just done some limited tidying up of this page and you will now find a simple worked example that you should be able to adapt.

I'm planning to add some more worked examples of the more recent functionality to be able to add objects to maps in many, very flexible ways - and the background to these updates is at dev.tiki.org/Map under the "Work done upto mid-April 2014" section

Hope this gets you going

geoff


posts: 2

Hi Geoff,

Thanks a lot. The contents you added to dev.tiki.org are tremendously helpful. I can see now how to create a map easily.

One question I am still not clear about though, is how to give the map control an OpenLayers URL as an input. As far as I can find, the only options are from a *fixed* set including, OpenStreetMap, MapQuest OpenStreetMap, and other 5 options.

I was wondering if this is all that it is meant by "Native support for OpenLayers" or is it possible to add a *custom* OpenLayer URL/layer to wrap Google map or a purely openlayers layer like " OpenLayers.Layer.MapServer( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'})" in an example linked in https://dev.tiki.org/Map?

If not currently supported, will the use of a custom openlayers url supported in future versions?

Thanks in advance