Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6141051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:11:51+00:00 2026-05-23T18:11:51+00:00

I first coded using Markers (with success) then realizing it was no more recommended

  • 0

I first coded using Markers (with success) then realizing it was no more recommended (especially for clustering).

Having read the examples given in Openlayers doc and this question, I’ve created my Vectors, added some style etc…

But, they are all put in around the LngLat(0,0) instead of their proper coordinates.

You could see below their geometry properties are ok. I don’t know what I’m missing there.

sreenshot

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:11:52+00:00Added an answer on May 23, 2026 at 6:11 pm

    The problem is that while Google Maps projection is EPSG:900913, coordinates of your vector features are in EPSG:4326.

    So you have to either specify coordinates in Google Maps projection or use OpenLayers to transform coordinates on the client side. Here’s how you do it:

    feature.geometry.transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913"))
    

    Once you transformed features you can add layer to the map and it should display features correctly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using this code with great success to pull out the first
I'm trying to draw on a map using markers. The problem I'm having is
I have an AXIS2/JAX-WS web service using a code first implementation (yes I know,
I am trying to parallelise a code using scala actors. That is my first
I'm using the STL map data structure, and at the moment my code first
A bit of background first: I am using base code from a remote SVN
Let me first put the code snippets here. I am just using the ASP.NET
I am using the following code to get an alphabetic number of a first
After checking out code for the first time from a repository into Eclipse using
I'm browsing source codes from two applications sharing one queue using MSMQ. The first

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.