Download & Extend

How to Add a New Type Map into OpenLayers Module?

Project:OpenLayers
Version:7.x-2.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Ohoshi
Status:closed (fixed)

Issue Summary

I am a beginner of OpenLayers module.

Since I want to do a research about this module, I need to add a new type map of my country into this module.

Although I read a lot of materials about this module, I have no idea about adding a new map into it.

Cause I don't have any experience about developing a module.

Could anyone give me some suggestions or tips to solve this problem?

I am really confused about this!!

Thanks for helping!

Comments

#1

Status:active» postponed (maintainer needs more info)

What kind of map ?

#2

Some basic information is in the documentation: http://drupal.org/node/1636666

Do you mean
* a map that focuses on a specific region, so that mainly your country is visible?
* a different background (base layer) on which your data is displayed?
* a set of points showing locations in your country?
or something different?

#3

Status:postponed (maintainer needs more info)» active

I mean that if I can add a new type of map into OpenLayers module as a base map (like OSM, Bing map...)

I want to add these map as basic layer:

1. http://maps.nlsc.gov.tw/

2. http://gissrv4.sinica.edu.tw/gis/twhgis.aspx

(or other official published map)

then I can use this module with our map in my drupal website more easily.

Since my English is limited, I am not sure if I express my meaning correctly.

There are some screenshots in comment 5.

I hope that it can help me express my meaning.

Sorry for my late reply.

Thank you so much for the response!!!

#4

#5

1. http://maps.nlsc.gov.tw/

1

2

3

2. http://gissrv4.sinica.edu.tw/gis/twhgis.aspx

4

AttachmentSizeStatusTest resultOperations
1.png681.42 KBIgnored: Check issue status.NoneNone
2.png602.28 KBIgnored: Check issue status.NoneNone
3.png1.92 MBIgnored: Check issue status.NoneNone
4.png713.63 KBIgnored: Check issue status.NoneNone

#6

Status:active» fixed

It looks like these are WMS layer that you can add through the OpenLayers UI.

See: http://maps.nlsc.gov.tw/O09/js/qt_map.js

There, I got it working: https://docs.google.com/file/d/0B7ugUjBv1lqHYXEzYkg2YXVFZHc/edit

Good luck.

#7

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#8

Thanks for your response.

I have some problem about your comment.

"It looks like these are WMS layer that you can add through the OpenLayers UI."

Is there a "module" which called "OpenLayers UI"?

Or you mean that I can use OpenLayers module through its UI?

Sorry, I am really confused about this.

and may I e-mail you when I have questions about this?

Sorry for so many questions! Thank you in advance!

#9

OpenLayers is composed of 3 modules.

  • OpenLayers: Core and API
  • OpenLayers UI: The User Interface and the forms
  • OpenLayers Views: All the views related stuff

You have to enabled OpenLayers and OpenLayers UI.

Then, in admin/structure/openlayers, you'll be able to add "layers", WMS type.

I hope it helps. bye.

nobody click here