I'd like to display map image as a layer top of the base maps. I now the coordinates of the corners but don't know, how can use them as a parameter. Also saved the image as a KML but it didn't worked either.

CommentFileSizeAuthor
#2 map_overlay.jpg274.05 KBanzolnet
#2 map_overlay.zip509 bytesanzolnet

Comments

jpulles’s picture

Did you have a look at http://aardbodem.nl/?q=node/63 for an example?

anzolnet’s picture

StatusFileSize
new509 bytes
new274.05 KB

Yes, of course I went through all the examples :). I tried this:

[map layers="1" 1="image|http://......removed.by.author....gif|Alcsutdoboz|1581,953" maxextent="18.58451048893344,47.4205039234949,18.59907686456423,47.426444383954" width="580" height="288" projection="EPSG:4326"/]

The image appears as a base layer, but distorted. If I give add baselayer, the basemap and the overlay displays separately.

What I would like to achieve is something like you can see on the attached screenshot. This was created with Google Earth (the KML file also attached).

jpulles’s picture

Sorry it doesn't work. The image seems to be meant as a baselayer itself, and not to display an image on top of e.g. google maps. See also http://openlayers.org/dev/examples/image-layer.html.

anzolnet’s picture

That's a bad news for me :(
And what about a KML, which contains an overlay picture? That shouldn't work either?

jpulles’s picture

At the moment I cannot check it, but you can easily check this by defining a kml layer to show your kml file. See e.g. http://aardbodem.nl/?q=node/72. I don't know if OpenLayers supports all types of kml; I expect only support for points and vectors, and only when not crossing the international date line.

anzolnet’s picture

Checked but failed. :(

Thank you for your effort, and keep up the good work, beside my personal issue the Mapping kit a nice module :)

chrisgnicholas’s picture

Title: Using image as overlay » newbie question; editable WFS, geocoding, etc

greetings - I am an admitted to both Drupal and the mapping kit, trying to follow the examples, and generally trying to establish an editable OpenLayers WFS within this framework. This is for the new UN-SPIDER portal, as per: www.un-spider.org .

So...I see everywhere: 'Maps can be added to content by setting the input format to 'Inline maps' and entering a map definition using square brackets and an appropriate set of parameters. [map param="value" /] '

Maybe I'm stupid, but browsing all the various admin dialogs, I don't see anywhere that I can input free-form text definitions of this nature; but I do see in content building a way to build 'layers', etc. Within this dialog, I want to add a WFS layer, repeatedly select this option and save it, but keep getting 'WMS' as the type. Looking deeper, at the entry in the Drupal DB, in 'mapcontext_layers', I see:

2, 2, 1, 'http://localhost:8070/geoserver/ows?service=WFS', '1.1.0', 'topp:tasmania_state_boundaries', '', 0, 0, 1, 1, 0, 0

turning on debug, I see:

theme mapclient: [map projection="EPSG:4326" extent="-180,-90,180,90" baselayers="none" title="Tasmanian sample" layers="1" 1="wms|http://localhost:8070/geoserver/ows?service=WFS&VERSION=1.1.0 |Tasmanian sample|topp:tasmania_state_boundaries|queryable=true"/]

How do I get it to be WFS, other than manually changing the Mysql entry?

Also, sage advice, RTFMs, etc, as to how to incorporate a text-based dialogue for geocoding greatly appreciated.

thanks!
Chris Nicholas

chrisgnicholas’s picture

ok - found in the administrator dialog where to set to 'inline maps' ....

on safari!
Chris

jpulles’s picture

Status: Active » Closed (fixed)