开发者

Use single static image as map

开发者 https://www.devze.com 2022-12-25 22:24 出处:网络
I have a single image (a flattened out image of the worl开发者_如何学Cd map), I want to be able to plot some coordinates in this image without having to create a map server or whatever per se, Idon\'t

I have a single image (a flattened out image of the worl开发者_如何学Cd map), I want to be able to plot some coordinates in this image without having to create a map server or whatever per se, Idon't know where to begin, whats the easiest approach


This will absolutely position links within a containing div with a background image: (inline css used to simplify concept).

<div style="width:500px;height:400px;position:relative;background-image:url('image.png')">
    <div style="top:20px;left:35px;position:absolute;">
       <a href="www.google.com">link</a>
    </div>
    <div style="top:120px;left:65px;position:absolute;">
       <a href="www.google.com">link</a>
    </div>
</div>


Use OpenLayers.Layer.Image.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号