hello,
this looks nice on your site. But I'm not sure how to use it on my own.
Following your documentation I managed to create a map context, see http://d6.ansorg-web.de/node/56
But what I really want is to display a piece of google map (or VE map) and add some points to it. Is this possible with your module? Which of the sub modules is necessary? Do I need the postGis stuff for this? I hope not because my host does not run this.
Using the map assist I got code like <map baselayers="google,none" width="300" height="200" /> but this seems to generate no output at all. (I have a gmap api key). I also tried to use the map context but this made no difference.
One odd thing: on the map context, when I click the "get current context" Button, I get pointed to http://tmp/dmkZKyzEb.xml which is obviously wrong. How to fix this?
thank you
Jens
Comments
Comment #1
jpulles commentedHi, i will later on answer your other questions, but first this one:
The map context is written to the temporary directory which must be browsable in order to be able to download this. Thus, enter your admin/settings/file-system page and if your files folder equals 'sites/default/files' you could define your temp folder as 'sites/default/files/temp'.
Comment #2
jpulles commentedHi Jens,
At the moment, most attention goes to map contexts and overlaying it with other layers. Showing only google maps or ve needs some extra coding since in that case the extent cannot be determined from the context file and extent or center and zoom should be included as attributes.
Adding points should still be done by specifying a path to georss content. The editing on the map is not yet saved. When it will be, PostGIS is not required; at the moment PostGIS is needed for importing shapefiles into PostGIS (Geodata module).
John
Comment #3
ansorg commentedhello and thank you
the temp folder issue is fixed.
Also, the defined maps did not appear due to stupid user error: forgot to switch to the right the input filter. Now I can show a certain area of a map (GE, VE, Yahoo). I define a context where I define the area to display, no WMS layer. Then I create a tag and add one of the three to get something like http://d6.ansorg-web.de/content/map-sample
Great!
Now remains the question, how to overlay markers on this map - I need to create GeoRSS.xml file that I can use in the tag - right? According to http://georss.org/ there are at least two different formats, GML and a simple format - which one do I use?
Lastly, I updated to the dev version from yesterday and now my context does not work anymore, I get javascript error
Oh, and finally, my content types do have a "Location" section now in Edit - what is this used for? (or will be used for?)
thank you!
Jens
Comment #4
jpulles commentedAnd thank you for testing..
If you create a georss file you can probably use either format; OpenLayers understands both GML and Simple.
The OpenLayers error you encountered is discussed in http://trac.openlayers.org/ticket/1515. I myself are using the svn version of OpenLayers and applied the patch attached on that page (WMS.js.patch). OpenLayers doesn't (yet?) use the bounding box from a map context for a maxextent.
The content types have a 'Location' section, which enables adding a location to your nodes. It will be used to add georss information to drupal's rss feeds.
You can also define contexts to be used for node locations or user locations, but both are not very developed.
Regards,
John
Comment #5
jpulles commentedComment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
jmary commentedI still haven't succeed to display a google map with users location, a detailed how to would be appreciated.
Comment #8
jpulles commentedThe how-to at http://aardbodem.nl/?q=node/44 page has been made more detailed. If you still have problems, you could enter your own support request (separate from this one) with more detailed information.
Regards,
John