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'm trying to draw on a map using markers. The problem I'm having is
I'm trying to learn EF using code first, i dont know how to design
When defining a string in a class using Code First, the default for the
I successfully created database on my local server using Code First, migrated it to
I am trying to teach my self MVC3 and EF4 using code first and
I am using EF Code First to create a database on local .\SQLEXPRESS. Among
I'm using the Code First approach to build the database in this problem. I
I'm using EntityFramework code first with migrations. From the package manager console, I'm running
Is there any possibility of using EF Code First for Oracle DB. Even though
I have an AXIS2/JAX-WS web service using a code first implementation (yes I know,

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.